Public bug reported:
MAAS: 3.7.3
Juju: 3.6.28
Charmed Openstack: Jammy/Yoga
When deploying nova-compute under the yoga/stable channel, the package
and unit that is deployed seems to be by default configuring itself for
Jammy/Caracal, causing an error state on the charm, and configuring the
unit to point to Caracal pockets in the apt repositories. This was not
the previous behavior when normally deploying this.
Repro:
1. Create a brand new model
juju add-model openstack-test
2. Deploy jammy yoga's nova-compute charm
juju deploy nova-compute --channel=yoga/stable
3. Observe it go into an error state.
This should configure nova-compute with yoga/stable, which we confirm on the
status page:
---
$ juju status nova-compute
Model Controller Cloud/Region Version SLA Timestamp
openstack maaslab-default maaslab/default 3.6.28 unsupported
18:04:14-05:00
App Version Status Scale Charm Channel Rev Exposed
Message
nova-compute error 3 nova-compute yoga/stable 932 no
hook failed: "install"
---
However we can see the unit goes into an error state due to what looks to be
something defining caracal:
---
$ juju debug-log --level=TRACE --include=nova-compute
```
unit-nova-compute-2: 18:06:26 WARNING unit.nova-compute/2.install for cfg,
d in resource_map().items():
unit-nova-compute-2: 18:06:26 WARNING unit.nova-compute/2.install File
"/var/lib/juju/agents/unit-nova-compute-2/charm/hooks/nova_compute_utils.py",
line 394, in resource_map
unit-nova-compute-2: 18:06:26 WARNING unit.nova-compute/2.install
cmp_os_release = CompareOpenStackReleases(os_release('nova-common'))
unit-nova-compute-2: 18:06:26 WARNING unit.nova-compute/2.install File
"/var/lib/juju/agents/unit-nova-compute-2/charm/hooks/charmhelpers/core/strutils.py",
line 96, in __init__
unit-nova-compute-2: 18:06:26 WARNING unit.nova-compute/2.install raise
KeyError("Item '{}' is not in list '{}'"
unit-nova-compute-2: 18:06:26 WARNING unit.nova-compute/2.install KeyError:
"Item 'caracal' is not in list '('diablo', 'essex', 'folsom', 'grizzly',
'havana', 'icehouse', 'juno', 'kilo', 'liberty', 'mitaka', 'newton', 'ocata',
'pike', 'queens', 'rocky', 'stein', 'train', 'ussuri', 'victoria', 'wallaby',
'xena', 'yoga')'"
```
This is further confirmed by checking the /etc/openstack-release file
indicating it is configured as a Caracal nova-compute unit instead of
Jammy/Yoga:
$ juju ssh nova-compute/0 -- cat /etc/openstack-release
OPENSTACK_CODENAME=caracal
Which extends to the app repositories:
---
$ juju ssh nova-compute/0 -- grep -ri caracal /etc/apt
/etc/apt/sources.list.d/cloud-archive.list:deb
http://ubuntu-cloud.archive.canonical.com/ubuntu jammy-updates/caracal main
---
We can also see that the openstack origin is set to distro
** Affects: charm-nova-compute
Importance: Undecided
Status: Invalid
** Tags: sts
** Tags added: sts
** Also affects: yoga (Ubuntu)
Importance: Undecided
Status: New
** No longer affects: yoga (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2167405
Title:
jammy/yoga nova-compute charm deploymet seems to configure units for
Caracal (2024.1)
To manage notifications about this bug go to:
https://bugs.launchpad.net/charm-nova-compute/+bug/2167405/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs