Fix inventory defenition for Cloudkitty

At the moment Cloudkitty is targeted at all LXC hosts along with containers
which is not needed nor intended.

Unfortunatelly there's no really good compatible fix exist, so action from operator is required to handle transition to new naming for
the service.

Change-Id: I9360495e3b3347568969e36e0e96bb1325efd59f
This commit is contained in:
Dmitriy Rabotyagov 2024-03-08 15:57:55 +01:00 committed by Jonathan Herlin
parent 91051b08b2
commit 959da8cd03
5 changed files with 26 additions and 8 deletions

View File

@ -1,4 +1,4 @@
# The controller host that will be running the cloudkitty services
cloudkitty_hosts:
rating_hosts:
aio1:
ip: 172.29.236.100
ip: 172.29.236.100

View File

@ -1,5 +1,5 @@
# The infra nodes that will be running the cloudkitty services
cloudkitty_hosts:
rating_hosts:
infra1:
ip: 172.20.236.111
infra2:

View File

@ -10,15 +10,15 @@ component_skel:
container_skel:
cloudkitty_container:
belongs_to:
- cloudkitty_containers
- rating_containers
contains:
- cloudkitty_api
- cloudkitty_engine
physical_skel:
cloudkitty_containers:
rating_containers:
belongs_to:
- all_containers
cloudkitty_hosts:
rating_hosts:
belongs_to:
- hosts

View File

@ -0,0 +1,17 @@
---
upgrade:
- |
Ensure that in openstack_user_config.yml / conf.d ``cloudkitty_hosts`` are
replaced with ``rating_hosts``.
For deployments with LXC containers: after upgrade is completed make sure
that Cloudkitty is not running on your LXC hosts anymore, after which you
should be able to remove LXC hosts from cloudkitty_all group in inventory.
fixes:
- |
Due to issue in env.d defenition for Cloudkitty, service was installed not
only inside LXC containers, but also to all LXC hosts, which was not
intended. This was fixed in env.d definition for the service, and it
was renamed from ``cloudkitty_hosts`` to ``rating_hosts``, which should be
reflected in your ``openstack_user_config.yml`` or conf.d files.

View File

@ -189,10 +189,11 @@ class TestAnsibleInventoryFormatConstraints(unittest.TestCase):
'cinder_volumes_container',
'cloudkitty_all',
'cloudkitty_api',
'cloudkitty_containers',
'rating_containers',
'cloudkitty_container',
'cloudkitty_engine',
'cloudkitty_hosts',
'rating_hosts',
'rating_all',
'coordination_containers',
'coordination_hosts',
'compute-infra_all',