ta/cm-plugins.git
4 years agovalidators: Allow uppercase iface names 48/2248/2 master
Alexandru Avadanii [Fri, 21 Feb 2020 09:37:01 +0000 (10:37 +0100)]
validators: Allow uppercase iface names

Predictable interface names for PCI devices on non-zero PCI
domains get assigned (by systemd-udev) names like
enP<bus-number>p<port-number>s<slot-number>f<function-number>,
e.g. enP2p1s0f0, which are currently rejected by our validators.
For PCI domain 0000, the "P<bus-number>" is omitted, resulting
in all lowercase iface names.

Allow uppercase iface names by making the re.match test
case-insensitive.

Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Change-Id: I2bda550c95737fba57b5916a71a3c3b9df66e22d

4 years agozbaremetalnodeinventory: Add aarch64 support 13/2113/3
Alexandru Avadanii [Tue, 10 Dec 2019 10:43:25 +0000 (11:43 +0100)]
zbaremetalnodeinventory: Add aarch64 support

os_ironic_node properties capabilities [1] should use "boot_mode:uefi"
for aarch64 platforms [2] (since EFI is the only supported firmware on
aarch64).

[1] https://docs.ansible.com/ansible/latest/modules/os_ironic_module.html
[2] https://docs.openstack.org/ironic/latest/install/advanced.html

Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Change-Id: I362f1e56c2e2c4713aa13938568a2cc249eaa14e

4 years agostorageinventory: Refactor ceph key generation 21/2021/7
Alexandru Antone [Wed, 20 Nov 2019 16:08:18 +0000 (18:08 +0200)]
storageinventory: Refactor ceph key generation

ceph-ansible 3.1 (and newer) refactored the handling of ceph keys
by leveraging the new ceph-key ansible module, which escapes our
current '$(ceph-authtool ...)' string, ending up as a literal string
instead of evaluating the command and catching its output.

To support the new ceph-ansible 3.1, we refactor the ceph key
generation in storageinventory.py by explicitly running ceph-authtool
with subprocess.check_output and passing it down via a variable.
This change is backwards compatible with the current ceph-ansible 3.0.

Signed-off-by: Alexandru Antone <Alexandru.Antone@enea.com>
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Change-Id: I1f0d73399429ef40f414efeb6931db111eba0faf

4 years agoAdd validation for "caas_oam" networking type 76/1676/6
Krisztian Lengyel [Mon, 16 Sep 2019 17:57:16 +0000 (13:57 -0400)]
Add validation for "caas_oam" networking type

Change-Id: I7124ab816e986a83a02c7885a76ab8f0337d1f89

4 years agocidr validaiton corrected 75/1675/1
Balint Varga [Mon, 30 Sep 2019 07:24:08 +0000 (09:24 +0200)]
cidr validaiton corrected

Signed-off-by: Balint Varga <balint.varga@nokia.com>
Change-Id: Ic7026e4f3dbf2bd87076f5b54967a4d86c4f67da

4 years agoMerge "Validation for new oam_cidr caas parameter"
Balint Varga [Fri, 27 Sep 2019 13:35:57 +0000 (13:35 +0000)]
Merge "Validation for new oam_cidr caas parameter"

4 years agoValidation for new oam_cidr caas parameter 38/1538/4
Balint Varga [Thu, 5 Sep 2019 07:30:01 +0000 (09:30 +0200)]
Validation for new oam_cidr caas parameter

Signed-off-by: Balint Varga <balint.varga@nokia.com>
Change-Id: Icd5f6bfb9d779c8c9e3b7d89157a84997e6e91d3

4 years agoAdd validation for performance tuning option 19/1619/2
Krisztian Lengyel [Wed, 4 Sep 2019 20:45:20 +0000 (16:45 -0400)]
Add validation for performance tuning option

Add validation for tuning option in performance profiles. Currently it
supports only "low_latency" & "standard" values.

Depends-On: I6646b04220733091eb946c547d136dee0ae48706
Change-Id: Icfe82744d0c14d3663f63d420d0a0edbca154c67
Signed-off-by: Krisztian Lengyel <krisztian.lengyel@nokia.com>
4 years agoCorrect rpm version 15/1615/1
Krisztian Lengyel [Wed, 18 Sep 2019 20:03:35 +0000 (16:03 -0400)]
Correct rpm version

Correct rpm version by appending to version history because after this
I73bfca888b5f61721bcaad6a7b349155155c1438 it messed up a little bit.

Change-Id: I7fe5869b47dae8f9094cc28546209171fad1d65a
Signed-off-by: Krisztian Lengyel <krisztian.lengyel@nokia.com>
4 years agoMerge "Revert "Add validation for performance tuning""
Krisztián Lengyel [Wed, 18 Sep 2019 17:50:12 +0000 (17:50 +0000)]
Merge "Revert "Add validation for performance tuning""

4 years agoRevert "Add validation for performance tuning" 13/1613/1
Krisztián Lengyel [Wed, 18 Sep 2019 17:11:43 +0000 (17:11 +0000)]
Revert "Add validation for performance tuning"

This reverts commit 4408a79c76b53683792df8b45b49aa0062275515.

Reason for revert: Its dependency is missing.

Change-Id: I73bfca888b5f61721bcaad6a7b349155155c1438

4 years agoMerge "Add validation for performance tuning option"
Levente Kálé [Tue, 17 Sep 2019 13:09:41 +0000 (13:09 +0000)]
Merge "Add validation for performance tuning option"

4 years agoAdd validation for performance tuning option 67/1567/1
Krisztian Lengyel [Wed, 4 Sep 2019 20:45:20 +0000 (16:45 -0400)]
Add validation for performance tuning option

Add validation for tuning option in performance profiles. Currently it
supports only "low_latency" & "standard" values.

Depends-On: I6646b04220733091eb946c547d136dee0ae48706
Change-Id: I0db61be89ce2c3cbf19061898714de383068e120
Signed-off-by: Krisztian Lengyel <krisztian.lengyel@nokia.com>
4 years agoSupport for authorized keys 32/1532/1
Jyrki Aaltonen [Thu, 29 Aug 2019 12:11:01 +0000 (15:11 +0300)]
Support for authorized keys

Added sudo user authorized keys.

Change-Id: I94ae551382af4f69b1822cce22e628c3ac64b5be
Signed-off-by: Jyrki Aaltonen <jyrki.aaltonen@nokia.com>
4 years agoMerge "FIX: Set default IPMI privilege level"
Levente Kálé [Mon, 5 Aug 2019 18:42:27 +0000 (18:42 +0000)]
Merge "FIX: Set default IPMI privilege level"

4 years agoAdd tenant network validation for SRIOV 98/1298/1
Krisztian Lengyel [Thu, 1 Aug 2019 06:45:07 +0000 (08:45 +0200)]
Add tenant network validation for SRIOV

Add tenant network validation for SRIOV provider networks too.

Change-Id: I7d2c7ba27d9722f845c6a928e4061b480659fae1
Signed-off-by: Krisztian Lengyel <krisztian.lengyel@nokia.com>
4 years agoMerge "Bump version validator for tenant_networks"
Levente Kálé [Thu, 25 Jul 2019 16:14:02 +0000 (16:14 +0000)]
Merge "Bump version validator for tenant_networks"

4 years agoBump version validator for tenant_networks 03/1203/2
Krisztian Lengyel [Tue, 16 Jul 2019 13:35:38 +0000 (15:35 +0200)]
Bump version validator for tenant_networks

Depends-On: I401db6bfc33f4d3efb1d0642f695c24ed5575b48
Change-Id: I41f4ae3dc2774d9e7f1095635d127ddc93f435da
Signed-off-by: Krisztian Lengyel <krisztian.lengyel@nokia.com>
4 years agoadmin pw handling modification 51/1251/1
Tamas Laczko [Wed, 24 Jul 2019 10:07:27 +0000 (12:07 +0200)]
admin pw handling modification

Change-Id: I1cd1a0dfa4dfc9a8142028578ea6c76c3dd09bdb
Signed-off-by: Tamas Laczko <tamas.laczko@nokia.com>
4 years agoFIX: Set default IPMI privilege level 17/1217/2
dave kormann [Wed, 17 Jul 2019 19:17:18 +0000 (15:17 -0400)]
FIX: Set default IPMI privilege level

The previous changes to support setting the IPMI level did not set it
as default in the hosts array, causing a failure in the ansible playbooks.

This change adds a call to the configmanager to set a default privilege
level for all hosts.

signed-off-by: dave kormann <davek@research.att.com>
depends-on: Ic21d5e47de75c783e8d0fd0b321624fc5eb84a0f
Change-Id: I1e6e27a20aee42f858375bb184cec836e3cec7d1

4 years agoMerge "FIX: Allow configuration of IPMI privilege level"
Levente Kálé [Tue, 16 Jul 2019 14:35:53 +0000 (14:35 +0000)]
Merge "FIX: Allow configuration of IPMI privilege level"

4 years agoFIX: Allow configuration of IPMI privilege level 78/1078/9
dave kormann [Thu, 27 Jun 2019 16:52:59 +0000 (12:52 -0400)]
FIX: Allow configuration of IPMI privilege level

This change updates the inventory handlers to provide an IPMI
privilege level (with a default of "ADMINISTRATOR") when making
hardware detection requests.  If the privilege level is not specified,
IPMI requests will fail if the user does not have ADMINISTRATOR
privileges.

This change depends on changes 1076 and 1077.

signed-off-by: dave kormann <davek@research.att.com>
Change-Id: I06225d00adc719c324de5fc1a4b18d7ea2ac56f4

4 years agocorrections for hybrid logging 65/1065/3
bborbely [Thu, 27 Jun 2019 08:13:02 +0000 (10:13 +0200)]
corrections for hybrid logging

Change-Id: If0f7afec08d33e85c34cd5591948ee26bc7070e8
Signed-off-by: bborbely <botond.borbely@nokia.com>
4 years agohybrid logging 52/1052/4
bborbely [Tue, 25 Jun 2019 11:12:14 +0000 (13:12 +0200)]
hybrid logging

Change-Id: I55274e2c2be1b6cecb2151305e053fca16606d04

4 years agoself. added for static variable 47/1047/1
Balint Varga [Tue, 25 Jun 2019 08:37:04 +0000 (10:37 +0200)]
self. added for static variable

Signed-off-by: Balint Varga <balint.varga@nokia.com>
Change-Id: Ie5b9038aedb56f148bb6ec963da11339d083531f

4 years agoMerge "Memory parameter intro"
Levente Kálé [Fri, 21 Jun 2019 13:24:54 +0000 (13:24 +0000)]
Merge "Memory parameter intro"

4 years agoMemory parameter intro 24/1024/5
Balint Varga [Thu, 20 Jun 2019 10:17:10 +0000 (12:17 +0200)]
Memory parameter intro

Signed-off-by: Balint Varga <balint.varga@nokia.com>
Change-Id: I6cf394bfbfb3bbaffa319a7c2cda725196770f8b

4 years agoSimplify REC network profiles userconfighandler 25/1025/1
Krisztian Lengyel [Fri, 17 May 2019 21:03:42 +0000 (17:03 -0400)]
Simplify REC network profiles userconfighandler

Change-Id: Ic346207734cda42c3021d5498d684fc70746d6ee
Signed-off-by: Krisztian Lengyel <krisztian.lengyel@nokia.com>
4 years agoMerge "openstack storage backend check removed"
Levente Kálé [Tue, 18 Jun 2019 14:01:50 +0000 (14:01 +0000)]
Merge "openstack storage backend check removed"

4 years agoAdd CaaS networks related validations 43/743/15
Krisztian Lengyel [Fri, 17 May 2019 21:03:42 +0000 (17:03 -0400)]
Add CaaS networks related validations

- Add CaaS cluster and tenant network related validations

- Modified baremetal deployment Architecture, so that nodes and their Datastructures are not created in playbook. They are now coming from Inventory, generated using CM Inventory handler. This way we don't have to iterate through nodes list. One thread per node is forked, but all are executed on installation controller using delegate_to ansible keyword. This saves baremetal provisioning time, and improves code readability

- Add REC specific REC userconfighandler for network profiles

Change-Id: I299fea47177a2ad1a24e0715e9f2d5f37c3d2e08
Signed-off-by: Krisztian Lengyel <krisztian.lengyel@nokia.com>
4 years agoremove helm options validation 78/978/1
Tamas Laczko [Tue, 11 Jun 2019 13:51:16 +0000 (15:51 +0200)]
remove helm options validation

Change-Id: I8c7fab1aca8245cccd56f05dc7fde0ef09b58238

4 years agoopenstack storage backend check removed 77/977/1
user.name [Tue, 11 Jun 2019 13:02:57 +0000 (15:02 +0200)]
openstack storage backend check removed

Change-Id: I796bbc8fe67336a5690a711a37c55ba24905003d

4 years agoAdd validation for CaaS DNS domain 97/697/1
Krisztian Lengyel [Fri, 10 May 2019 20:18:44 +0000 (16:18 -0400)]
Add validation for CaaS DNS domain

Change-Id: I0f56861995c9994de32d6f2bcd726465d2fe3c47

4 years agoPlugins for configuration manager 29/629/1
Alaluoma Merja Anneli [Tue, 7 May 2019 14:19:37 +0000 (17:19 +0300)]
Plugins for configuration manager

Initial set of config-manager plugins: activators, inventoryhandlers,
userconfighandlers and validators.

Change-Id: I3f97d18d9471c435908bc894927ba41ec2c18471
Signed-off-by: Alaluoma Merja Anneli <merja.alaluoma@nokia.com>
4 years agoInitial empty repository
Eric Ball [Wed, 1 May 2019 00:25:24 +0000 (00:25 +0000)]
Initial empty repository