[Bug 1903724] Re: [SRU] Package fails to build with missing 'systemctl'

Brian Murray 1903724 at bugs.launchpad.net
Tue Nov 17 18:24:55 UTC 2020


Hello Chris, or anyone else affected,

Accepted nova into focal-proposed. The package will build now and be
available at https://launchpad.net/ubuntu/+source/nova/2:21.1.0-0ubuntu2
in a few hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
focal to verification-done-focal. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-focal. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: nova (Ubuntu Focal)
       Status: New => Fix Committed

** Tags added: verification-needed verification-needed-focal

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to nova in Ubuntu.
https://bugs.launchpad.net/bugs/1903724

Title:
  [SRU] Package fails to build with missing 'systemctl'

Status in nova package in Ubuntu:
  Invalid
Status in nova source package in Focal:
  Fix Committed

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-area/nova_*dsc

  [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.unit.virt.libvirt.volume.test_quobyte.LibvirtQuobyteVolumeDriverTestCase.test_libvirt_quobyte_driver_already_mounted
  -------------------------------------------------------------------------------------------------------------------------------
  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
        File "/usr/lib/python3/dist-packages/mock/mock.py", line 1330, in patched
      return func(*args, **keywargs)
        File "/build/nova-21.1.0/nova/tests/unit/virt/libvirt/volume/test_quobyte.py", line 419, in test_libvirt_quobyte_driver_already_mounted
      libvirt_driver.connect_volume(connection_info, mock.sentinel.instance)
        File "/usr/lib/python3/dist-packages/oslo_concurrency/lockutils.py", line 359, in inner
      return f(*args, **kwargs)
        File "/build/nova-21.1.0/nova/virt/libvirt/volume/quobyte.py", line 161, in connect_volume
      if is_systemd():
        File "/build/nova-21.1.0/nova/virt/libvirt/volume/quobyte.py", line 60, in is_systemd
      sysdout, sysderr = processutils.execute("systemctl",
        File "/usr/lib/python3/dist-packages/oslo_concurrency/processutils.py", line 383, in execute
      obj = subprocess.Popen(cmd,
        File "/usr/lib/python3/dist-packages/eventlet/green/subprocess.py", line 58, in __init__
      subprocess_orig.Popen.__init__(self, args, 0, *argss, **kwds)
        File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
      self._execute_child(args, executable, preexec_fn, close_fds,
        File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
      raise child_exception_type(errno_num, err_msg, err_filename)
      FileNotFoundError: [Errno 2] No such file or directory: 'systemctl'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nova/+bug/1903724/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list