Age | Commit message (Collapse) | Author | Files | Lines |
|
Change-Id: Ib22a92d3530e14d1b9e002507c73a5960d5b058e
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 33a056fd1d2154fdd9779dbed0e001d45747680f)
|
|
1. Bump to latest Fuel@OPNFV to include:
- Bring in newer glusterfs for mtime unsplit brain
* Requires adding arch "arm64" to PPA definition in reclass:
- (reclass-system) linux.system.repo.glusterfs: Add arm64 arch
- Switch nofeature-ha compute nodes to UCA repo
* Requires an alternative way of adding linux.enea.com repos;
* linux.enea.com repos will now be pre-install into VM images;
* Requires refresh on repo arch list handled by Armband patch:
- (fuel) baremetal, virtual: Extend arch list for UCA repo
2. Staging proposed patches from upstream Fuel@OPNFV:
- Add pre-{install,purge} support for base image
* Reference implementation adds pre-installed Armband specifics:
- Enea public GPG to APT keys (for below repos);
- repos (linux.enea.com/{apt-mk,mcp-repos}/*);
- linux-{image,headers}-generic-hwe-16.04-edge;
- cloud-init: datasource from NoCloud only;
* Allows us to drop kernel installation from state files,
installing the kernel only once during image prep, instead of
two stages of parallel installs (5 baremetal, 14 VCP);
* Ensures Armband repos are pre-configured for infrastructure
VMs, allowing us to drop more reclass repo definitions;
* Rework armband patch to install kernel only on kvm, cmp:
- (fuel) baremetal: linux-image-generic-hwe-16.04-edge
3. Sync reclass repo definitions with upstream change, drop duplicates
- [linux][repos] Remove unused repositories [1]
* Upstream dropped all "ocata-{security,hotfix,...} repo comps,
which are also empty for Armband, so drop them too;
* Rework following armband patches:
- (reclass-system) linux/system/repo/mcp: Add Armband repos
* Move Armband repos to new dedicated reclass classes:
- linux.system.repo.mcp.armband.extra (currently empty);
- linux.system.repo.mcp.armband.openstack;
* Use HTTPS for fetching Enea Armband GPG key;
- (fuel) baremetal: Add Armband Openstack repos to kvm, cmp
* Consume defs introduced above only on baremetal nodes;
4. Sync documentation with Fuel@OPNFV (cp)
5. Add vim swap files to .gitignore
[1] https://github.com/Mirantis/reclass-system-salt-model/commit/1dd1b31
Change-Id: Ibab56279de86f08ad7cd9bc6761f4c525532f811
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 37083673d6cdddbb9b710f4dd5efe832753e5856)
|
|
Slight refactor of Armband high states, combine all parts touching
salt minion into a single `armband.salt_minion` state.
Also bring in support for NVRAM-backed domain undefine via
`virt.purge` by passing down the proper flag to libvirt.
While at it, squash mcp/patches touching the same lines of code
in <_modules/seedng.py>, so deploys using `-f` do not fail at the
patch stage (due to conflicting patch lines, checking for `patch -R`
does not work as expected).
Change-Id: Iefca061e641854d28bd8576f2b4547c87c239e32
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit d8dd9847b7a534b3c78af1b3eb772f07a3543d0c)
|
|
Change-Id: I58bacd2b8f9d210fd9e144cd8db6239ca0b8949d
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 812d2f0ef3b7f638a29f10770007ef249d609c2c)
|
|
Change-Id: I7e05e05551bb1dee8f531e12fd60b85dcc67e695
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 72e0ffab0e9968161734183a72477a92b51c1a90)
|
|
|
|
Required for future offline repository support.
JIRA: ARMBAND-319
Change-Id: I16767665e31c309a1a118e94302b8b43da7816f1
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit ae8e3fba7977e109fc2ef77cf2f9e9e22be767f7)
|
|
Change-Id: I3696b3d778d60c267fbb03475f858554d9b18142
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 0a47ab95fd9b99418d8bfa19a6bcb501de0d0e5d)
|
|
Change-Id: I0de153ef4e5a71f350d29a90ae4c79b863d676eb
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 939bdcd9a425674eaca2d9556da4f34f11b0e23f)
|
|
Rework armband salt formula, focusing on nova libvirt driver patches:
- Switch from multiple individual patches to a single roll-up patch:
* Patch is now applied for python directory instead of each file;
* Expected hash is now 'False' (no hash checking for whole dir);
* Added 'unless' condition to skip patching when already applied.
Replaces old hash mechanism which was broken anyway when multiple
patches are applied to the same file;
- nova: Switch guest video from VGA to virtio (replace our old
standard VGA default patch with upstream backport);
- nova: Skip config/patch if 'python-nova' is not installed
(e.g. for KVM nodes);
- nova: Support Qemu >= 2.10 (backport);
- libvirt: Re-enable Apparmor security driver on compute nodes;
- armband state is now fully re-entrant;
JIRA: ARMBAND-306
JIRA: ARMBAND-318
JIRA: ARMBAND-320
JIRA: ARMBAND-331
Change-Id: I48c09b10be030aa1ab4424b76876bf3dabd40fd2
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit ae49b614d29351d07e317ca792865ae74d0c5fb7)
|
|
JIRA: ARMBAND-330
Change-Id: I43cd814f2f60df76eabafcae3590628a5d68709d
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 9b3121843a78026761a086581fc34589faed25af)
|
|
Change-Id: I1a1d91af5c7dc92307ccd7a52e97cc95c70149f0
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit adbf9f707a702eff262d8437a68bc6c04e12d786)
|
|
Change-Id: Ibb55ee7fe4b615114ae0d6b91bc3e77270f90d92
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 62cfd8427eb065932cff09ca42017ecf7a480a1d)
|
|
Armband requires a custom kernel on baremetal nodes (kvm, cmp).
However, the repos (configured as part of `linux.system` high state)
were added before installing the kernel only for cmp nodes.
Change-Id: Ie8d6e9cf4eaa84c459a70112ef002d09be9c4cf4
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 80f5ef39fb9057f42370333bb4d465349efe52b3)
|
|
Change-Id: Ia719a04a88533e55f713d955b5999130b5fc635a
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit aa165106e2f9819b4c350f6fd3b7547b005f8400)
|
|
Change-Id: Id4b6c37d6814458600e2554f96e4580b126f1b63
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 04f9a353dc4a52eb869f0eaac3aafec1723c0a3d)
|
|
Change-Id: Iaaea7494b960b05c4e409eb52daa6b0fa6414e12
Signed-off-by: Charalampos Kominos <Charalampos.Kominos@enea.com>
(cherry picked from commit 00d1b6b2e00803bcb3901b181ec7d97e8062f677)
|
|
The Salt way to pin the kernel version is via its reclass model, by
defining system.kernel.version. However, this only works with
explicit kernel package names and not with meta package names
(e.g. linux-image-4.13.0-9916-generic is expected instead of
linux-image-generic-hwe-16.04-edge, which would break the
`linux_kernel_old_absent` state).
For now, let's explicitly call `pkg.install` for the kernel and
headers packages, using the meta package name to ensure automatic
fallback to Ubuntu packages if Armband repos are missing,
respectively to automatically pick up new kernel package names
in case of meta + kernel packages bump later.
JIRA: ARMBAND-280
Change-Id: I5448df1de1b3c211583708402b5c7497df92fc16
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 67aed7515601fc8b4d2dea326c4e634de7f8fa48)
|
|
While at it, revert commit adding "opnfv" user to "libvirt" group,
as it would break with the current event flow (opnfv user being
created prior to libvirt group).
Change-Id: I6f5d578153c33dcddac76bc7bc6b428fe6796b1a
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 4b7e790d335787ce0837ca47025dd7a14287e52a)
|
|
Change-Id: Ia075a790fce0aeb0d21b20b2775e2cc079311b88
(cherry picked from commit a7bc88387c4ffa25b12df949a1dce4c090414334)
|
|
JIRA: ARMBAND-328
Change-Id: I5f284be5e75dc5ea740e632efc6f6c2e46de3973
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 9848bc05e89f2399f1958624055173142b6107d4)
|
|
While at it, use SSH_SALT global var in `cleanup_uefi`.
Change-Id: I9400edde69d3aaaa1879cce0e79898c80db486db
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 3d92843941184335c2f1b3e8a074c6e9f2e49571)
|
|
Change-Id: I12f65038f2617fef4a5a12675a364ef113188b52
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 6ed719d4587fa9e0d0a9dc2c85b81ac2a5d7e6e6)
|
|
Change-Id: I0bf36ade79626704788d4b42baf0dddb8e30a665
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 532cc0804053f2b138f23fa85e7f30c839b0b85a)
|
|
Change-Id: Ia3d12bceae483571e1b1c91e2d0150c12b55b73b
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 05b5146d1bf7b02a72598bbd41e6b4817ab64456)
|
|
Change-Id: I2d445a78ee6d25b826afe3c42d433b9c4af3d09d
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit cdff247b728bd6d00ce7ed7f6994fd0688304fc1)
|
|
Change-Id: If970bbc8735d38542a90b2cbdbb2523ae644a29c
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 7bcfc857535346a72708b1166759e8480e676a38)
|
|
While at it, return true for all armband states that apply patches
which are also providing a post-patching file hash.
Change-Id: I303a2e142a8a9925f6630b53891ddc7bb0399453
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit e68b725920bd313df0ca65a77b27c8de6a6e2937)
|
|
Change-Id: Id7d125b746e97d6e186a7890a4c2f599e24a186c
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 783585e0379cffbfe0fe242a4daab9f5c4ab1547)
|
|
Change-Id: I6f0367d75ea831de78ced480ea73d1cd10680b80
(cherry picked from commit 11143873e70e65d07d73617b8af29a07adffc1aa)
|
|
AArch64 NIC adaptation for dual NIC boards with traffic separation
-kvm nodes: added second trunk_nic
-compute nodes: removed third external_nic
Change-Id: I874094075ab01c7fe21af26602a7366a371cec28
Signed-off-by: Guillermo Herrero <guillermo.herrero@enea.com>
(cherry picked from commit e7260544c63bfd1e52a52839ad6527b0bc2ce75d)
|
|
Change-Id: I69688a0bf657564d440fc6d4d93f3f7c16818a90
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 8ac5a461c90545aa06538f5376cc929b2297f19a)
|
|
Change-Id: I23100e3fd9854cd1ffd52961a0260d3c23875dd1
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 08392c03d6bb184bc61dea46eec33d20f2b9c1d9)
|
|
Change-Id: I52cb9720a452c4fa7b71a9135de700f5c601132d
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 90b9c3793db3b70ddb705924a7e823fd2ae9bb92)
|
|
Change-Id: I5641802152c4e9dc6cec3218848921be5179e815
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 0a09df0d8947bed263541471478049587072f33d)
|
|
Change-Id: I041d51eeebfe77aee9a519584f6cfb6f7b740e93
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit a6f17c731f081664fa8c62389669b56b5e8b7c2e)
|
|
Change-Id: I7ae833b429c018345d0ab061877d27e3183b3dc7
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 62d2ed716e79f9ee75d63543249bb21b9115b032)
|
|
Change-Id: I1144c523596feb64251f08375501cdb73a0d76f6
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 6dcb09998dae3c3f2a55fc5169fe7dc9010f8a0f)
|
|
JIRA: ARMBAND-292
Change-Id: I913ac6ec20cd34573c0e91989d7fd49a79abafaa
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 397cd1932fae59622f3cc2d782faf68b803f4860)
|
|
JIRA: ARMBAND-312
Change-Id: I77b9d38dd7e18bf464e30bfabce3111ac47e8bd7
Signed-off-by: Charalampos Kominos <Charalampos.Kominos@enea.com>
(cherry picked from commit 0cfc25360ef7406ae0c810db67140c20e9c837e5)
|
|
On AArch64 systems, ACPI should only be added to the domain XML
by nova via libvirt driver when guest UEFI (AAVMF) is used.
Change-Id: I462303b196366ddaa132b2a2ed6fe4af0e8e5f95
(cherry picked from commit 0ced943988c95f9e033dd5d14cfe54870c50fa04)
|
|
On AArch64 systems, ACPI should only be added to the domain XML
by nova via libvirt driver when guest UEFI (AAVMF) is used.
Change-Id: I395e65a5790615c926eb86f754ff7b7f8feac26a
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 73fc006a6ef0f83027bcad2eec0076bcc50b4679)
|
|
While at it, move opnfv user required reclass parameters to newly
added <all-mcp-ocata-common/opnfv/init.yml>.
Change-Id: Ic614e9e9db4e3ae74b8c08bc34be5fc732c2aae4
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
|
|
Stop overriding MaaS IP in mcpcontrol, keep same value as Fuel@OPNFV
has (10.20.0.3).
Change-Id: I4789aef378204fdbcf53355c62a9a289b200987c
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
|
|
Change-Id: I3de41645b7424195b9c8d5884a7c9de1fabf68cb
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
|
|
mcp.rsa will now be available in /var/lib/opnfv/mcp.rsa.
JIRA: FUEL-280
Change-Id: I933c669ddde495f0decba2fcc7fc8d9818a24620
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
|
|
mdb0* VCP VMs were missing the AArch64 specific parameters in the
reclass mode, which enable guest UEFI & co.
This led to mdb0* VMs not being able to start.
Change-Id: I2325e4ae1bd1a44c060c2fe39d4038efd62b708f
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
|
|
JIRA: FUEL-279
Change-Id: Iba38553873f511eaac1fe77cd5d1d4e990340e52
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
|
|
Change-Id: I6195930d1c66477a88824456fd1b8e457b84da47
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
|
|
Change-Id: I8cae89864e8e2d3bd56b4c7f16638fc742cde748
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
|