Attempting to deploy cs:nova-compute with virt-type: lxd fails due to missing python3-nova-lxd package
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Nova Compute Charm |
Triaged
|
High
|
Unassigned |
Bug Description
If you are deploying Openstack >= Rocky with virt-type set to LXD, the installation of nova-compute units will fail with the following error:
2020-04-09 16:44:12 DEBUG install E: Unable to locate package python3-nova-lxd
2020-04-09 16:44:12 DEBUG install Traceback (most recent call last):
2020-04-09 16:44:12 DEBUG install File "/var/lib/
2020-04-09 16:44:12 DEBUG install main()
2020-04-09 16:44:12 DEBUG install File "/var/lib/
2020-04-09 16:44:12 DEBUG install hooks.execute(
2020-04-09 16:44:12 DEBUG install File "/var/lib/
2020-04-09 16:44:12 DEBUG install self._hooks[
2020-04-09 16:44:12 DEBUG install File "/var/lib/
2020-04-09 16:44:12 DEBUG install return f(*args, **kwargs)
2020-04-09 16:44:12 DEBUG install File "/var/lib/
2020-04-09 16:44:12 DEBUG install apt_install(
2020-04-09 16:44:12 DEBUG install File "/var/lib/
2020-04-09 16:44:12 DEBUG install _run_apt_
2020-04-09 16:44:12 DEBUG install File "/var/lib/
2020-04-09 16:44:12 DEBUG install retry_message=
2020-04-09 16:44:12 DEBUG install File "/var/lib/
2020-04-09 16:44:12 DEBUG install result = subprocess.
2020-04-09 16:44:12 DEBUG install File "/usr/lib/
2020-04-09 16:44:12 DEBUG install raise CalledProcessEr
2020-04-09 16:44:12 DEBUG install subprocess.
This is because a commit [1] has added the following snippet:
if cmp_release >= 'rocky':
packages = [p for p in packages if not p.startswith(
if virt_type == 'lxd':
However, python3-nova-lxd is only available in Disco:
$ rmadison python3-nova-lxd
python3-nova-lxd | 19.0.0-0ubuntu1 | disco | all
So, deploying >= Rocky + Bionic with virt-type lxd fails due to that missing package.
[1] https:/
Changed in charm-nova-compute: | |
importance: | Undecided → High |
status: | New → Triaged |