[SRU] Package fails to build with missing 'systemctl'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nova (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Artful (OpenStack Train) through Focal (OpenStack Ussuri), the Nova package now fails to build with unit tests failing because they're missing the `systemctl` binary. An example traceback from the tests is included in the Other Info at the end.
This affects the ability to backport fixes or upstream point releases to the Nova package in Ubuntu.
[Test Case]
Reproducing this error is doable by building the package:
git clone lp:~ubuntu-openstack-dev/ubuntu/+source/nova
cd nova
git checkout stable/ussuri
gbp buildpackage -S -sa
pbuilder-dist focal build ../build-
[Where problems could occur]
This upload doesn't change anything in the deployed software, merely in the build environment. With that caveat, building on an environment that cannot install systemctl could continue to leave this package unbuildable.
[Other Info]
Below is an example of one of the unit test failures that is resolved by adding systemctl as a build dependency.
nova.tests.
-------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/usr/lib/
return func(*args, **keywargs)
File "/build/
libvirt_
File "/usr/lib/
return f(*args, **kwargs)
File "/build/
if is_systemd():
File "/build/
sysdout, sysderr = processutils.
File "/usr/lib/
obj = subprocess.
File "/usr/lib/
subprocess_
File "/usr/lib/
self.
File "/usr/lib/
raise child_exception
FileNotFoun
Changed in nova (Ubuntu): | |
status: | Invalid → Fix Released |
Building this on versions prior to the stable/train or after the stable/ussuri version works so just targeting those two branches.