Browse Source

Follow up on general naming for app openstack

Fixing the way the puppet plugin for pci_irq_affinity_agent retrieves
the openstack app after the merge of [1].

[1] https://review.opendev.org/c/starlingx/config/+/814670

Story: 2009669
Task: 43899

Signed-off-by: Thiago Brito <thiago.brito@windriver.com>
Change-Id: I5b51cd344c39a62de97da51c35c87eb91a2b3560
changes/37/820037/2
Thiago Brito 6 months ago
parent
commit
e789300d1c
  1. 4
      sysinv/sysinv/sysinv/sysinv/puppet/pci_irq_affinity.py

4
sysinv/sysinv/sysinv/sysinv/puppet/pci_irq_affinity.py

@ -4,7 +4,6 @@
# SPDX-License-Identifier: Apache-2.0
#
from sysinv.common import constants
from sysinv.common import utils
from sysinv.helm import helm
from sysinv.puppet import openstack
@ -21,9 +20,8 @@ class PciIrqAffinityPuppet(openstack.OpenstackBasePuppet):
Checks whether the OpenStack application version
includes the pci irq affinity agent container
"""
openstack_app_name = constants.HELM_APP_OPENSTACK
try:
openstack_app_version = self.dbapi.kube_app_get(openstack_app_name).app_version
openstack_app_version = utils.find_openstack_app(self.dbapi).app_version
# stx-openstack app version string format: x.y-wz-release-info
openstack_app_version = int(openstack_app_version.split('-', 2)[1])
except Exception:

Loading…
Cancel
Save