summaryrefslogtreecommitdiffstats
path: root/patches/opnfv-fuel
AgeCommit message (Collapse)AuthorFilesLines
2016-07-13fuel@opnfv: honor pod's interfaces/transformsJosep Puigdemont1-0/+85
Change-Id: I493279d81b32a58b918f2b6caa0cf869a0caa674 Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
2016-07-12Merge "Fuel VM: set virtio cache to writeback"Alexandru Avadanii1-1/+1
2016-07-12Fuel VM: set virtio cache to writebackJosep Puigdemont1-1/+1
Change-Id: Icbbba0bee68a8fe9de76dbf3c339e01da43fb3a2 Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
2016-07-12iptables: Move SSH rules to post-scripts.Alexandru Avadanii2-3/+48
Previous change [1] introduced the addition of an iptables rule that was supposed to allow SSH access on all ifaces (not only admin iface) when additional ifaces are configured. However, Fuel installer is flushing the rules after transplant adds our SSH config, overwriting it. Move iptables SSH config to post-install section, as standalone script. In order to keep the same behavior, test ifcfg-eth0 (admin interface is expected to be called eth0 by convention) for "DEFROUTE=no" and only whitelist SSH on all ifaces if it matches. [1] https://gerrit.opnfv.org/gerrit/#/c/16571/ Change-Id: I086b75461daa62671cad10494fe34acfd77757ae Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-07-11Merge "transplant.py: Allow SSH on all interfaces."Alexandru Avadanii1-5/+3
2016-07-11dea_base: use grub-efi-arm64 instead of grub-pc.Josep Puigdemont1-0/+22
Change-Id: Iae462ebe89ff3bc351addd12a8f5cc5ecdef2b11 Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
2016-07-08patches: removed patches upstreamed to fuel@opnfvJosep Puigdemont2-192/+0
Change-Id: I2cd1899d82878dfece22ed546e1ff24d5387e8c1 Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
2016-07-07transplant.py: Allow SSH on all interfaces.Alexandru Avadanii1-5/+3
Previously (in Fuel 8.0), SSH used to listen only on 10.20.0.2 (admin interface), which required editing sshd_config and restarting SSH server for allowing SSH connections over the public IP on eth1 (just an example, which corresponds to Armband PODs use cases). In Fuel 9.0, SSH server on Fuel Master listens on all ifaces, but connections are filtered by iptables. This change piggy-backs on a previous Armband addition that allows transplant.py script to configure additional interfaces (e.g. public). In case additional interfaces have been configured by transplant, this change will instruct iptables to accept SSH connections on ANY interface, not only the admin one. Possible improvements: - limit SSH access to admin + interfaces added by transplant instead of ANY; Change-Id: I0923496e1b23f6dc826c8afbbe9805956c2d4b34 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-07-06Backport: dpkg-checkbuilddeps to mk-build-deps.Alexandru Avadanii1-0/+71
For some reason, our docker sandbox builder already has dh-systemd when checking for "fuel-agent" build-deps, and therefore skips adding it as a build dep inside the chroot, leading to debuild fail. Backporte upstream fix for this from [1]. [1] https://review.openstack.org/#/c/325210/ Change-Id: Ieece9b2250bd91e688bd0f203240da5234930558 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-07-01Rebase: Deal with upstream ODL Boron + OVS bump.Alexandru Avadanii3-67/+0
Change-Id: Iea330d6d778ff5034e1e801d20fa74485e302a95 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-29submodule: yardstick.Alexandru Avadanii1-0/+22
Fuel@OPNFV just added the Yardstick plugin. This plugin is a little different, instead of breaking fuel plugin code apart from the contents (i.e. fuel-plugin-yardstick separate from yardstick itself), it holds both fuel plugin metadata and actual yardstick code in the same repo. So far, yardstick plugin code itself is arch-independant and should not be touched. TODO: - add yardstick patches for arm64 until we can validate Yardstick; - submit patches added locally in Armband to upstream (Yardstick@OPNFV); Change-Id: I24bc8858b92c9bdd529a64de833d7b98c06a6ade Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-28submodule: vswitchperf.Alexandru Avadanii1-0/+23
Change-Id: I986bfb5ae549321a0696f945d24ccb1b6b198f96 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-28Merge "submodule: fuel-plugin-ovs."Alexandru Avadanii1-0/+22
2016-06-28Rework: Drop fuel-main submodule.Alexandru Avadanii1-0/+87
Move fuel-main patching to opnfv-fuel, preparing for upstreaming this to Fuel@OPNFV. Drop fuel-main submodule! Change-Id: I12b995f37701658dca1d1a212ede029d0e03231c Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-28Merge "Backport git based patching from Fuel@OPNFV."Alexandru Avadanii5-137/+417
2016-06-26submodule: fuel-plugin-ovs.Alexandru Avadanii1-0/+22
2016-06-20Backport git based patching from Fuel@OPNFV.Alexandru Avadanii5-137/+417
Rebase conflicting patches due to format change. Change-Id: Ia9d1f9c0cad77da7b95e8ec4b62324953ef3ce9c Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-17Fix: reap.py: puppet-managed ifcfg files.Alexandru Avadanii1-1/+3
Skip parsing comment lines in ifcfg-ethX files at reap, e.g.: Change-Id: Ide6b2111619f7558f1434fda5cd254b842cef0ae Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-17opnv-fuel: updated deploy patch setJosep Puigdemont11-207/+178
Change-Id: I9442f217d2f840382b40f6eae77ddb9ae2ddbadc Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
2016-06-15Upstream: remote-libvirt + custom tags.Alexandru Avadanii8-669/+0
Change-Id: I3702648583983ac7afcfef7a9556fcd33e984457 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-15Upstream: IPMI port + Mitaka mirror.Alexandru Avadanii2-248/+0
Change-Id: I3c7bd7f9be85078783a2e95dfe480cffc08534d1 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-12Rework: Move m1.micro RAM bump to post-install.Alexandru Avadanii1-0/+38
Change-Id: I158c58cb01112d2113a75dd425275cf9531d49fc Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-12Rework: Move nailgun timeout patch to postinstallAlexandru Avadanii1-0/+36
Change-Id: I927bb36b0ac4628630f90649027441a895c6f774 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-12Rework: Move xz/gzip switch to post-install.Alexandru Avadanii1-0/+52
This is highly unlikely to be upstreamed in any other form than this. Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-12Rework: Move fuel-astute patch to post-install.Alexandru Avadanii1-0/+49
IMPORTANT: Drop `fuel-astute` submodule, and patch it instead during the Fuel Master node bootstrapping process, using an OPNFV post.d script. Luckily, this fits well with the recently added script that prepares FM for cross-building. One step closer to un-forking. Change-Id: Ia612e0ad4077b16baf54f1b9ebf9d207daca0be4 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-10post-scripts: Enable systemd-binfmt for first boot.Alexandru Avadanii1-0/+96
ARMBAND NOTE(S): - This is a bug fix + a new feature (arch list in a file on FM) - This is overengineered because: * we want to move patching to post-ISO creation, OPNFV style; * easier integration with Fuel@OPNFV, using post-install scripts; * prepare for true multiarch support on Fuel Master; IMPORTANT: This commit introduces the following file on Fuel Master, containing the list of arch supported for target nodes: </etc/fuel_openstack_arch>. This file is created AFTER pre.d OPNFV scripts are ran, also by bootstrap_admin_node.sh, BEFORE the post.d scripts are executed. NOTE: Arch format is the same used by dpkg (e.g.: "amd64 arm64") Based on the number of foreign architectures we should support (the list of archs in /etc/fuel_openstack_arch minus native arch), we determine whether cross-builds are expected, in which case binfmt support should be functional during first Fuel Master boot. Since systemd-binfmt service has a series of preconditions for starting, which are tested early during first boot, some of them are NOT YET true (e.g. no binfmt handlers are present before qemu-user-static package is installed), so the service is not automatically started. Of course, this only affects the first boot. Finally, this commit adds an OPNFV post-install script in /opt/opnfv/bootstrap/post.d, which starts systemd-binfmt service. Change-Id: I6dbe4b3ac5a2fd076881d6778ff66b82bb6c7379 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-09FIXME: Temporary: Backport: build local mirrors.Alexandru Avadanii4-17/+189
Backport upstream pending patch "Build local mirrors for stable/mitaka" from [1]. Minor rebase for two other patches after applying this series. [1] https://gerrit.opnfv.org/gerrit/#/c/15259 Change-Id: I362e08be3460d711de064a487fdcc8c76fc69af9 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-08Rebase: p/f/deploy-reap-extra-eth: context update.Alexandru Avadanii1-3/+1
Update patch `deploy/reap.py: Dump extra interfaces information.` after upstream change was merged [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/15275/ Change-Id: I9fd74775030732cc0759610228fa80a0cec72352 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-08Rebase: rm p/f/Allow-customizing-fuel-plugin-odl.Alexandru Avadanii2-30/+3
Upstream change [1] made this patch obsolete. While at it, update related patch context after same change. [1] https://gerrit.opnfv.org/gerrit/#/c/14385/ Change-Id: I21753e4dafdd0ab83c5eac37f394aa704bbe236b Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-06-08FIXME: Temporary: Remove repo-mirror-cz.patch.Alexandru Avadanii1-0/+62
Upstream removed all mirrors but usa and cz, and changed its default to mirror.fuel-infra.org in [1]. This allows us to drop patching of fuel-main/config.mk with the Czech mirror. If needed, USE_MIRROR=cz can be specified as an env var. FIXME: Remove when Fuel@OPNFV pulls change and deals with it. [1] https://github.com/openstack/fuel-main/commit/ 751d502cfe15d9c9df0ee89530ac3b0b73aa1638
2016-06-08Merge "Fuel deploy: timestamp for newly created images"Alexandru Avadanii1-0/+39
2016-06-04Rebase: deploy related patch series.Alexandru Avadanii28-155/+226
After change "common.py: catch stderr in exec_cmd" [1] and other unrelated changes were merged upstream, we need to rebase the complete deploy related series. While we're at it, re-export Fuel@OPNFV patches in Armband. [1] https://gerrit.opnfv.org/gerrit/#/c/14561/ Change-Id: Icbc8261c2e24e4b29e8f5f2bc83db6829219129a
2016-06-03Fuel deploy: timestamp for newly created imagesJosep Puigdemont1-0/+39
All images created are named opnfv.iso, this is not sustainable in an environment where several PODs might share the same libvirt storage pool. For this we need unique names, and the time stamp is a cheap way for now to achieve this. Change-Id: I8a7d34036898b8b4e57b23c11bee643876e1829c Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
2016-06-01Upstream: p/common.py: catch stderr in exec_cmd.Alexandru Avadanii1-40/+0
See Fuel@OPNFV change [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/14561/
2016-06-01p/Separate-armband-repo no longer needed.Alexandru Avadanii1-43/+0
Since Fuel@OPNFV switched from carrying the orig ks.cfg to a patch for this file in "Build system uplift to Fuel 9.0/Mitaka" [1], we (Armband) can now drop this patch. [1] https://gerrit.opnfv.org/gerrit/#/c/13919/
2016-05-31Rebase: Sync after Build system uplift to Fuel 9.0Alexandru Avadanii4-49/+85
Refresh patches after Fuel@OPNFV migrated to Mitaka in [1], "Build system uplift to Fuel 9.0/Mitaka". >As bootstrap_admin_node.sh has >been transitioned into an RPM (fuel-support), the lazy designer found >it more simple to patch that script during the Fuel build phase than >at the OPNFV ISO generation. The patch mechanism has been changed to >a normal context diff instead of the orig/modified file tuples >previously used. Hopefully this will require fewer manual rebases >(may the fuzz be with us!). >Also the ks.cfg patching has transitioned to a context based ordinary >patch for the same reasons, but this is as before taking place during >OPNFV ISO generation. [1] https://gerrit.opnfv.org/gerrit/#/c/13919/
2016-05-26Merge "bootstrap: Add lshw package (also in fuel-mirror)."Alexandru Avadanii1-0/+30
2016-05-26deploy: ipmi adapter: Add <port> config support.Alexandru Avadanii1-0/+74
Sometimes the IPMI lanplus protocol listens on a non-standard remote port, e.g. when target nodes are interfaced through a fake IPMI BMC application that listens on multiple ports on the same IP address. Therefore, allow setting IPMI port in the DHA using a new property named `ipmiPort`, and pass it along to `ipmitool` when set. CHANGE: get_access_info now also supports specifying the IPMI port to use with `ipmitool` by configuring the `ipmiPort` property in the DHA. hp_adapter.py: updated `get_access_info` return signature with the new (unused there) `ipmiport`. Change-Id: Ibff1309b17733af1a6fc8c5008495f42d7ef084a
2016-05-24bootstrap: Add lshw package (also in fuel-mirror).Alexandru Avadanii1-0/+30
Until Ubuntu Trusty fixes the following bug on AArch64 [1]: "AArch64: slow cpuinfo due to redundant loop" we will be using a patched version of <lshw> from Armband MOS repos. This change enforces replacing the lshw from Ubuntu with our custom, patched package. [1] https://bugs.launchpad.net/ubuntu/+source/lshw/+bug/1582181 Change-Id: Ie10c7819f305accf2a2c2045b1c350880e4c25b6 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-05-13Rebase: p/opnfv-fuel: Drop upstream patches.Alexandru Avadanii3-115/+1
While we're at it, fix minor context in remaining patch.
2016-05-13Rebase: p/opnfv-fuel: Allow Fuel commit override.Alexandru Avadanii1-2/+2
2016-05-10Cleanup: rm TODO, fix license header.Alexandru Avadanii2-0/+0
While we're at it, fix default setting for net.ifnames in arm64 fixture. Also, renumber some patches to eliminate duplicate prefixes resulted from parallel development of patch sets. Change-Id: Ibd8cc1f6f8916ad79527f2060a1a2725d557b2c2
2016-05-10Merge "deploy/reap.py: Dump extra interfaces information."Alexandru Avadanii1-0/+90
2016-05-10Merge "UX: Update bootstrap/target build time estimate."Alexandru Avadanii1-0/+33
2016-05-09[fuel] deploy.sh: Add timeout flag on fuelJosep Puigdemont1-0/+81
Some PODs might need to increase the default timeout value. The patch introduces the -T flag to Fuel's deploy script, that can be used to set the timeout. If the flag is not given, it will look into the DEPLOY_TIMEOUT environment variable and use that value instead, otherwise the default vaule in deploy.py will be used. Change-Id: I835473190673dd8646d0da48c2dbd3bb5e13046d Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
2016-05-09deploy/reap.py: Dump extra interfaces information.Alexandru Avadanii1-0/+90
Since on AArch64, Ubuntu local mirror lacks arm64 packages (see [1]), Fuel master requires internet connectivity during deploy, and hence a way to setup such a public (extra) interface automatically. Previous commit "transplant: Generate extra interfaces config file" introduced support for passing this information via DEA (override), which may define a IFCGF_<interface> section in its 'fuel:' section, containing the necessary keys to produce a ifcfg-<interface> file, like in this example: fuel: IFCFG_ETH1: device: eth1 ipaddress: 10.0.1.10 netmask: 255.255.255.0 gateway: 10.0.1.254 In order for Network Manager to use the newly added interfaces for outgoing traffic and honor their GATEWAY setting (e.g. if we just added one public interface), the default route on admin iface (most of the time called eth0) is disabled when extra interfaces are present. FIXME: Only supports lowercase interface names, but so does Fuel, see related bug report [2]. [1] https://jira.opnfv.org/browse/ARMBAND-35 [2] https://jira.opnfv.org/browse/FUEL-136 Change-Id: Idd6fe95a5a73ec172eca17cfd96f23b1a1bc2bee Signed-off-by: Alexandu Avadanii <alexandru.avadanii@enea.com> Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
2016-05-09UX: Update bootstrap/target build time estimate.Alexandru Avadanii1-0/+33
While building for a different architecture (e.g. AArch64 on x86_64), the bootstrap/target image build may take longer, due to latency introduced by using qemu-user-static. Change-Id: I2b57aae73ccc172fea9e53867bcb66e2f950498f Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-05-08f_repobuild: Repeat mirror build up to ten times.Alexandru Avadanii1-0/+73
OPNFV ISO build uses fuel-mirror to create a local Ubuntu partial mirror in nailgun. Work around temporary mirror issue (e.g. during rsync) by retrying mirror build up to 10 times. Change-Id: I8afb0f55b08c1680903a09e07ac96b4d29415ed5 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-05-08ARMband patches for the fuel@opnfv deploy scriptsJosep Puigdemont16-0/+1271
These are a collection of patches that adapt the current Fuel deploy scripts for mainly two purposes: - Make it possible to create a Fuel VM on a remote libvirt server. We use the LIBVIRT_DEFAULT_URI environment variable to detect that. Local deploys are possible by setting this variable to 'quemu:///system', or leaving it empty. See: https://libvirt.org/remote.html for more details. - Make it possible to add additional network interfaces. For this we allow the user to pass the "-b bridge" paramter several times, and creating a new virtual NIC for each of them, in the same order they were given. This required a bit of refactoring of the code. None of the changes above should break backwards compatibility, except when indicated in the commit (search for CHANGE in the log) In addition there are some updates to the code that were deemed necessary, like the ability to retry when executing shell commands instead of directly failing, and a simplification of the DHA IPMI adapter. Change-Id: I8a0cd5b8672383decd861309328137971eaed14b Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
2016-04-29Cleanup: Kill submodules: Remove obsolete patches.Alexandru Avadanii5-43/+0
Change-Id: Ia4123727913aa401d26cbe1028f30b20b4497961 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>