aboutsummaryrefslogtreecommitdiffstats
path: root/patches/fuel-library
AgeCommit message (Collapse)AuthorFilesLines
2017-03-26FIXME: f-l: compute.pp: Temp disable apparmorAlexandru Avadanii1-0/+40
Apparmor profiles need to be refreshed for Armband specific version of libvirt/qemu/etc.; until updated profiles land, disable libvirt qemu security driver. JIRA: ARMBAND-235 Change-Id: I65d8bbb00e390d34c0c36fef37666e70d06fd31a Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-03-25f-l: Refresh after upstream reverted cobbler rmAlexandru Avadanii5-2294/+13
Remove our revert patches since upstream applied the same changes. Update patch context where needed. JIRA: ARMBAND-237 Change-Id: I6007484ad23f0fceabd8f8ec7625e598aee280c7 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-03-23f-l: Temporary: Revert upstream patchesAlexandru Avadanii2-0/+142
In order for our patches to still apply, revert latest changes from upstream Fuel@Openstack. Change-Id: Icca323a71669b413d9777df889b2e2b8b884e261 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-03-21f-a: bootstrap: /etc/rc.local: force mco startAlexandru Avadanii2-0/+16
Temporary workaround for upstream bug: "Mcollective fails to start in bootstrap of baremetal servers" [1] This should be reverted as soon as upstream merges a fix. While at it, add some missing license headers to patches. [1] https://bugs.launchpad.net/fuel/newton/+bug/1656150 Change-Id: I6d03819bd2df5b8fd9451faedcfd2783847838fa Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-03-21fuel-library: Revert cobbler removalAlexandru Avadanii3-31/+2122
While at it, remove unrelated patch that was merged upstream. JIRA: ARMBAND-237 Change-Id: I01889d100e2f8adab34a60389e602d7d48f5b973 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-03-17Add copyright header to patch filesCatalina Focsa16-0/+128
JIRA: ARMBAND-236 Change-Id: I91c4956b5baa479995bff2f569a321b8a0b421c0 Signed-off-by: Catalina Focsa <catalina.focsa@enea.com>
2017-03-16f-l: Backport: Increase reboot task timeoutAlexandru Avadanii1-0/+23
Temporarily fix deploys until this patch gets merged upstream. Change-Id: I6004fc5d6d178a0405ee7a9819264bad317578e7 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-03-16f-l: build_image: Extract cluster_arch from / URIAlexandru Avadanii1-0/+54
JIRA: ARMBAND-240 Change-Id: If5e7ceb67b6597a2791b352596e52dd63bf32eab Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-02-15fuel-library: Remove tcp_retries2 patch (upstream)Alexandru Avadanii1-51/+0
Change-Id: I0f5553f5caeff4c65cfdad76c117c084057ba773 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-02-09fuel-library: AArch64: nova: Backport NUMA supportAlexandru Avadanii1-0/+90
This functionality was working as expected in Colorado, but the patch was silently discarded by mistake during the Newton rebase. JIRA: ARMBAND-90 Change-Id: Ibd31f68c823cbca6759b5c45d4005201b462b150 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-02-08submodules: Disable ignore=all for OPNFV projectsAlexandru Avadanii1-125/+0
Armband has a number of git submodules, which are hosted: - via Openstack (review.openstack.org, github.com); - via OPNFV (gerrit.opnfv.org); We cannot automatically detect changes in Openstack submodules, but within OPNFV, an "Updated submodule" commit is generated when a change is merged into the submodule git, provided we do not have an "ignore=all" git config directive. Ignoring submodule changes also prevents automatic ISO builds in Armband when Fuel@OPNFV changes are merged, which is something we needed during the D-release development cycle. The downside of removing "ignore" is that submodules are now seen as "modified" by git after apply our Armband patches. While at it, remove one fuel-library patch that got upstream, just to force a new ISO build. Change-Id: I8e81e781cb5c78c920a2a33cd8d584de3d9d4fd7 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-02-07Temp: fuel-library: Increase tcp_retries2 valueAlexandru Avadanii1-0/+51
Change-Id: I6f7e3b291878bb20e51f8100ef3a1ede540e4736 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-02-07Temp: fuel-library: Fix MySQL OCF race (backport)Alexandru Avadanii1-0/+125
JIRA: FUEL-251 Change-Id: I5e6560d494b60721770faf0ed09a72e1a4818d8f Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-01-21Uplift Armband to Fuel NewtonAlexandru Avadanii20-733/+265
[ Dan Andresan ] - puppet: database: Fix Percona XtraBackup sync [ Alexandru Avadanii ] - disable all plugins; - re-enable remote tracking; - remove "Revert: Point to specific snapshot ..."; - patch context adjustments; - obsolete "kernel-bump", linux-image-lts-xenial is now the default; - network-checker iface state check now fixed upstream [1]; - fuel-nailgun-agent hugepage size should also check /proc/meminfo; - fuel-nailgun-agent CPU detection for AArch64; - nova AArch64 hugepage support is now upstream; - obsolete Cirros Test VM direct kernel boot (by switch to AAVMF): * f-l/0001-upload_cirros-Add-direct-kernel-boot-support.patch * f-w/0001-direct-kernel-boot-for-cirros.patch - rework m1.micro RAM size patch after puppet manifest split upstream; - re-enable arch-agnostic plugins which were rebased in Fuel@OPNFV: * f_yardstick-pluginbuild * f_congress-pluginbuild - do NOT retire MySQL SST provider patch series (nack: ARMBAND-186), rebase (and keep for now) MySQL SST provider patches, as trying to use xtrabackup-v2 revelead a regression since Colorado.3.0, and these patches simplify troubleshooting a lot; - AArch64: nova: libvirt: Use host-model cpu (ARMBAND-193); - AArch64: nova: libvirt: Use pointer_model instead of use_usb_tablet; - m1.micro RAM size insufficient for TestVM with AAVMF (s/128/256/) - switch Cirros TestVM to AAVMF from direct kernel boot; - backport nova libvirt driver fix for deleting instances booted with AAVMF firmware from [2]; TODO (later): - Include ISO build time fixes for cirros_testvm in Armband package; TODO (ODL, later): - test & revise leveldb patching; - bring back Qugga patching for arm64; - configure systemd service to automatically respawn; [1] https://review.openstack.org/#/c/417373/ [2] https://review.openstack.org/#/c/357190/ JIRA: ARMBAND-29 JIRA: ARMBAND-32 JIRA: ARMBAND-63 JIRA: ARMBAND-88 JIRA: ARMBAND-116 JIRA: ARMBAND-118 JIRA: ARMBAND-186 JIRA: ARMBAND-193 JIRA: ARMBAND-194 JIRA: ARMBAND-195 JIRA: ARMBAND-196 JIRA: ARMBAND-197 Change-Id: Ia99022e364e61245d109cabab9d0ed7157b4d2f5 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> Signed-off-by: Dan Andresan <dan.andresan@enea.com>
2016-12-14fuel-library: pp: cobbler: Fix CentOS ver detectAlexandru Avadanii2-2/+41
Upstream fuel-library bug report: [1]. Recently, CentOS released version 7.3.1611, which triggered a latent bug in fuel-library puppet scripts related to differentiating between 6.x and 7.x major versions: 7.3.1611 is wrongly detected as 6.x, leading to the wrong packages being attempted to be installed, leaving nailgun server service broken on the Fuel Master node. This change forces the match at the beggining of the version string (e.g. "/^6.+/: {" instead of "/6.+/: {"), so the new CentOS 7.3.1611 no longer matches the condition for 6.x). This patch will soon be obsoleted by the Netwon switch. However, until that happens, we need to ensure CentOS 7.3 is not breaking the deploy. [1] https://bugs.launchpad.net/fuel/+bug/1649895 JIRA: FUEL-238 Change-Id: Iebda7e13d66191614c3552dacb6c80091215baf5 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-10-09build: Rework patch mechanism for Fuel submodulesAlexandru Avadanii18-124/+145
While refactoring the patching mechanism, take care of: - Sync submodule handling with Fuel@OPFNV; - build: Investigate/prepare for moving patches to Fuel@OPNFV; - build: Investigate divergent fuel-mirror; - ISO build: cacheid for Fuel comps should not depend on Armband git commit; CHANGE: Rename/shuffle patches while grouping them in "features", preparing for upstreaming them to Fuel@OPNFV and beyond. CHANGE: Allow linking patches for better representing the dependency between one patch and different features. e.g. 0001-Add-arch-to-nailgun-release-and-target-image.patch: - part of `multiarch-fuel`, because it extends Fuel; - part of `direct-kernel-boot`, as arch is required for that; - part of `cross-bootstrap`, target image is arch-dependent; NOTE: Patch links are not staged to Fuel@OPNFV, they only serve as markers that a specific patch is part of a feature. CHANGE: Kill all Fuel component submodules, now handled in Fuel@OPNFV: - fuel-agent - fuel-astute - fuel-library - fuel-mirror - fuel-nailgun-agent - fuel-web CHANGE: Move armband-fuel-config.mk to armband git root. FIXME: m1.micro-Increase-profile-RAM-size-to-128MB.patch is NOT part of `cross-bootstrap` feature, but patch context says so ... FIXME: 0001-Add-arm64-deb-repositories-setup.patch is broken at `make patches-export` by removing spaces at EOL. v2 -> v3: * Phony patch support (links to show a patch belongs to a feature); * Updated README.md v3 -> v7: * Re-export Fuel submodules & plugins patches (update patch context); * Update Cavium mail addresses (s/caviumnetworks.com/cavium.com/); * Ignore submodule changes; * Add armband git repo info to gitinfo_fuel.txt at build time; Implements: ARMBAND-136 Closes-bug: ARMBAND-95 Closes-bug: ARMBAND-93 Closes-bug: ARMBAND-92 Change-Id: I1a236d9f43b2e6dca22055911f696b43c22b5973 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-09-27Add grub template to cobbler for MAC-filesMatei Valeanu1-20/+47
Change-Id: I9812066f2954cc02a49bfa19dbe9fc74b055e78d Signed-off-by: Matei Valeanu <Matei.Valeanu@enea.com>
2016-09-16fuel-library: nova: AArch64: enable hugepage suppAlexandru Avadanii2-1/+94
This patch adds AArch64 to the hardcoded lists of valid architectures for hugepage support. Closes-bug: ARMBAND-90 Change-Id: I3765e6bc314393a58db70590f3890fde206e3feb Signed-off-by: Veena Lingadahalli <vlingadahalli@mvista.com> Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-09-13Merge "Revert "patches, docs: Remove MySQL WSREP SST provider""Alexandru Avadanii1-0/+58
2016-09-13Revert "patches, docs: Remove MySQL WSREP SST provider"Alexandru Avadanii1-0/+58
This reverts commit 8a696682b3fd0cb5f32ddaca8ede5db7b001a57f. Change-Id: Ib1698643639436243768f4a8209c4d68314a97ca
2016-09-11fuel-library: mysql: Fix spurious install timeoutsAlexandru Avadanii2-0/+150
Backport the following fuel-library fixes from Fuel 9.1: - wrong relationship in clusters mysql manifest - Rsyslog doesn't have write permission to /var/log/mysql/ directory These two bugs manifested as: - random deploy issues waiting for MySQL to sync, without the server being installed; - no MySQL logs were saved due to permission issues; Closes-bug: ARMBAND-78 Change-Id: I317e45d013229145e2ccbd8bb4f76ae03d544098 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-09-02patches, docs: Remove MySQL WSREP SST providerAlexandru Avadanii1-58/+0
xtrabackup issues have been fixed with the latest version of percona-xtrabackup DEBs we added to linux.enea.com, so remove MySQL WSREP SST provider patches and corresponding docs. Closes-bug: ARMBAND-52 Change-Id: I743e9b6ed242cf15e3063d7dcf7e05d0cee198f2 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-07-27Merge "Restore "Bugfix backport: sysctl.conf vrouter namespace"""Alexandru Avadanii1-0/+54
2016-07-27Restore "Bugfix backport: sysctl.conf vrouter namespace""Alexandru Avadanii1-0/+54
After Fuel@OPNFV pinned Fuel components to 9.0.1 version commits, this patch was silently excluded, causing deploy failures. This reverts commit 58d5b149c539d46e294b07a09702f31991e9c81d. Change-Id: Icd583d1050e89ddf2a1a48d9080596d8c2429eb5
2016-07-19Merge "fuel-library: Fix virtlogd not started"Alexandru Avadanii1-0/+33
2016-07-16Revert "Bugfix backport: sysctl.conf vrouter namespace"Alexandru Avadanii1-54/+0
Merged upstream. This reverts commit 31087865b416f0eab066377c76a0d580d3fd8bd1. Change-Id: I60bd902207bb35e244e0e10646226d9f611bd68a
2016-07-15fuel-library: Fix virtlogd not startedAlexandru Avadanii1-0/+33
libvirt >= 1.3.0 installs additional services, including virtlogd, which need to be started explicitly after install, as the Ubuntu UCA package is currently broken. Fuel code already carries a fix for this, but only for UCA libvirt. Refactor the condition for the existing fix to check package version instead of origin. Closes-bug: https://jira.opnfv.org/browse/ARMBAND-37 Change-Id: I651ab48072ddcbfb88ce78a66c25cb524e442981 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-07-14Bugfix backport: sysctl.conf vrouter namespaceAlexandru Avadanii1-0/+54
Upstream bug report [1], proposed change backported from [2]. Temporary backport proposed fix until fuel-library merges it. Currently net.ipv4.ip_nonlocal_bind is not set inside vrouter namespace. This can lead to deployment failure with p_dns error: ocf-ns_dns: INFO: dnsmasq daemon is not running ocf-ns_dns: ERROR: dnsmasq: failed to create listening socket for 10.109.5.1: Cannot assign requested address ocf-ns_dns: ERROR: Error. dnsmasq daemon returned error 0. We had very similar issue in the past: https://bugs.launchpad.net/fuel/+bug/1500871 We need to add ocf_run $RUN_IN_NS /sbin/sysctl -w net.ipv4.ip_nonlocal_bind=1 To get_ns() in ns_dns and ns_vrouter [1] https://bugs.launchpad.net/fuel/+bug/1595957 [2] https://review.openstack.org/#/c/334415/ Change-Id: Id8d3a2e58de4dccc9a79536bd443294e085f70ff Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-22Fix: nova patching: broken puppet chain.Alexandru Avadanii1-1/+1
This was an interesting bug. The code has been broken for a while, but we did not notice because nova was installed before these puppets were ran. With the Mitaka reworks and changes in the puppet manifests, this bug surfaced, but manifested as `virtlogd` service not being started, looking like a libvirt 1.3+ problem. So, just add the missing "->" in the troubling puppet file. Change-Id: Ic702e17e8f732bf7a277714cc4416e0f2ee68cfe Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-18Fix: upload_cirros hash mixup.Alexandru Avadanii1-10/+23
Change-Id: Ibd41229ce744256fc289756708d64c3fedede9f4 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-17Fix: f-l: upload_cirros glance cmd, syntar err.Alexandru Avadanii3-27/+44
While at it split another patch in f-l in two. Change-Id: Ife31a94447176798c3cf7052408ffeddb1e753ff Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-15Rebase: f-l: vga nova patch after upstream change.Alexandru Avadanii1-4/+5
Change-Id: I4f029b00b03c665bef2bbf367953e9d95ed215f1 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-15Fix: f-l: usb_table borked rebase.Alexandru Avadanii1-2/+2
I messed up the identation and missed a semicolon during rebase. Change-Id: I7142721cc57115a72c93bcfd270c03d6cb04c399 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-13Rebase for "Improve reliability of upload_cirros"Alexandru Avadanii3-44/+29
Upstream change "Improve reliability of upload_cirros.rb" [1] allows us to drop the "Increase upload_cirros timeout" patch, and also requires rebasing our direct kernel boot patch. Also squashed in a small context edit for an unrelated patch. [1] https://review.openstack.org/#/c/327792/ Change-Id: I8adc30a74714414fae55bc7b81bc0f69f41735ce Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-12Rework: Move m1.micro RAM bump to post-install.Alexandru Avadanii1-35/+0
Change-Id: I158c58cb01112d2113a75dd425275cf9531d49fc Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-08Fix: f-l: s/nailgun::/fuel::/cobbler::preseed.Alexandru Avadanii1-3/+3
The nailgun puppet module has been replaced with fuel puppet module. This change needs to be reflected in our cobbler preseed function, which I missed during the initial rebase. [1] https://github.com/openstack/fuel-library/commit/ 74a68f493ff215ce8dfc67c3af6d06dd5a2db194 Change-Id: Ie13861ff75fc289ab03190f48fcfb5579499db1e Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-04Rebase: p/f-l: Update VGA defaults patch context.Alexandru Avadanii1-3/+3
Minor change upstream requires us to rebase this patch.
2016-05-24Correct libvirt template patchStanislaw Kardach1-34/+22
Signed-off-by: Stanislaw Kardach <stanislaw.kardach@cavium.com>
2016-05-16Rebase: WSREP rsync patchesAlexandru Avadanii1-105/+36
Signed-off-by: Stanislaw Kardach <stanislaw.kardach@cavium.com> Change-Id: Ic5cc1109df04a95a5e072ab3acb79eb89427a1e0
2016-05-16Merge "Rebase: p/fuel-library: CirrOS direct kernel boot"Alexandru Avadanii2-57/+36
2016-05-16Rebase: p/f-{main,lib}: cobbler-grub-aarch64 dep.Alexandru Avadanii1-0/+35
Since Fuel 9.0 drops containers on Fuel master (see spec "Get rid of docker containers on the master node"), we need to handle the install of cobbler-grub-aarch64 in a different place. So, handle cobbler-grub-aarch64 loader install as a cobbler dependency in puppet. [1] https://blueprints.launchpad.net/fuel/+spec/ get-rid-docker-containers Change-Id: Ia42211b4d0aa54ba67862f30f8c7975d2aa09392
2016-05-16Rebase: p/fuel-library: Update after 96da5b4a.Alexandru Avadanii9-106/+83
Refresh patches after: "Move openstack specific tasks to their own folder structure" NOTE: The qemu-kvm change patch (0003-Make-qemu-kvm-architecture-aware.patch) only affects RedHat systems, so it is optional, at least for the current stage. [1] https://github.com/openstack/fuel-library/commit/ 96da5b4a1eb82a76fb416d93f5249dc32e2499f2 Change-Id: Ibd1fd3f7e45d7947c90336bbe7e2ace101b5802b
2016-05-16Rebase: p/fuel-library: nailgun -> fuel module.Alexandru Avadanii2-84/+75
Upstream introduced two related changes, requiring a rebase: - Remove nailgun module [1] - Remove CentOS based bootstrap image support [2] [1] https://github.com/openstack/fuel-library/commit/ 74a68f493ff215ce8dfc67c3af6d06dd5a2db194 [2] https://github.com/openstack/fuel-library/commit/ 3e1320bfcf4a8688d4bfb577a1330121390bafc0 Change-Id: I27279a2fd76d269d482a3eb25e9dba41bc669280
2016-05-15Rebase: p/fuel-library: CirrOS direct kernel bootStanislaw Kardach2-57/+36
Signed-off-by: Stanislaw Kardach <stanislaw.kardach@cavium.com> Change-Id: I12126a39c90abf8fc5bef449506e87dc190a50ee
2016-05-10UX: Fix: rtc-efi blacklist for Ubuntu targets.Alexandru Avadanii2-51/+0
Previously, rtc-efi module was blacklisted in fuel-library preseed cobbler template, which is not used for Ubuntu target nodes. Fix by instead blacklisting rtc-efi in cloud-init jinja2 template. Change-Id: I325f8d1f411f51d494df7c738f1933445d996ff6
2016-04-20Allow configuring MySQL WSREP SST providerStanislaw Kardach1-0/+129
On some arm64 platforms xtrabackup is broken due to an outdated MySQL/InnoDB code that it uses which is missing. To work around that this patch allows choosing which WSREP SST provider to use. Aside of already supported `xtrabackup-v2` and `mysqldump`, the `rsync` method has been added as it is comparable to xtrabackup in terms of speed (or is faster), has been validated to work on arm64 platforms where xtrabackup is broken and it doesn't rely on db mechanisms to perform the state transfer. This patch is tied to a patch in fuel-web that introduces configuration options for WSREP SST provider and in case nothing is specified, it will choose `xtrabackup-v2`. Signed-off-by: Stanislaw Kardach <stanislaw.kardach@caviumnetworks.com>
2016-04-20Cleanup patch-export bugsStanislaw Kardach2-1/+1
2016-04-18Merge "ceilometer: Fix libvirt-bin group name for armband."Alexandru Avadanii1-0/+46
2016-04-18ceilometer: Fix libvirt-bin group name for armband.Alexandru Avadanii1-0/+46
Upstream mirrors use a custom version of libvirt, ported from Debian, while keeping the Ubuntu ceilometer package, leading to a libvirt group name mismatch between the two. Fuel-library hardcodes a deb-version test for libvirt-bin, which enforces the use of "libvirt" instead of "libvirtd" for 1.2.9 or newer libvirt-bin [1]. Armband brings its own 1.3.2 libvirt-bin package, which respects Ubuntu standard group naming ("libvirtd"), but since 1.3.2 > 1.2.9, the old group name ("libvirt") is still used. This patch extends the version checking introduced in [1]: - libvirt-bin 1.3.2 or newer will use "libvirtd" naming; - libvirt-bin 1.2.9 ... <1.3.2 will use "libvirt". [1] https://review.openstack.org/#/c/200602/8/deployment/puppet/ openstack/manifests/ceilometer.pp Change-Id: I11861e1863d7971a844c62dc08f22dbbab63b3e1
2016-04-17target Ubuntu: Blacklist rtc-efi if not supported.Alexandru Avadanii1-0/+51
Older ThunderX and possibly other UEFI-enabled targets do not support rtc-efi properly, so they end up filling dmesg with useless complaints about not being able to read system time. This adds a simple test for rtc-efi and blacklists it in target OS (Ubuntu) if not supported. While we're at it, rename a patch file I missed in a previous rebase and update TODO. Change-Id: Ia86b27ad50aca9b0fde50522f2bd15d329726f34