← Back to team overview

curtin-dev team mailing list archive

[Bug 1873913] [NEW] curtin's tests assume `udevadm` is present on test systems

 

Public bug reported:

This is not the case in build chroots, so we see the following test
failures during package build:

======================================================================
ERROR: test_start_clear_holders_deps (unittests.test_clear_holders.TestClearHolders)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/tests/unittests/test_clear_holders.py", line 712, in test_start_clear_holders_deps
    clear_holders.start_clear_holders_deps()
  File "/<<PKGBUILDDIR>>/curtin/block/clear_holders.py", line 690, in start_clear_holders_deps
    udev.udevadm_settle()
  File "/<<PKGBUILDDIR>>/curtin/log.py", line 88, in wrapper
    return log_call(func, *args, **kwargs)
  File "/<<PKGBUILDDIR>>/curtin/log.py", line 73, in log_call
    func, *args, **kwargs)
  File "/<<PKGBUILDDIR>>/curtin/log.py", line 79, in log_time
    return func(*args, **kwargs)
  File "/<<PKGBUILDDIR>>/curtin/udev.py", line 57, in udevadm_settle
    util.subp(settle_cmd)
  File "/<<PKGBUILDDIR>>/curtin/util.py", line 275, in subp
    return _subp(*args, **kwargs)
  File "/<<PKGBUILDDIR>>/curtin/util.py", line 129, in _subp
    raise ProcessExecutionError(cmd=args, reason=e)
ProcessExecutionError: Unexpected error while running command.
Command: ['udevadm', 'settle']
Exit code: -
Reason: [Errno 2] No such file or directory
Stdout: ''
Stderr: ''

======================================================================
ERROR: test that we skip zfs modprobe on unsupported platforms
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/tests/unittests/test_clear_holders.py", line 727, in test_start_clear_holders_deps_nozfs
    clear_holders.start_clear_holders_deps()
  File "/<<PKGBUILDDIR>>/curtin/block/clear_holders.py", line 690, in start_clear_holders_deps
    udev.udevadm_settle()
  File "/<<PKGBUILDDIR>>/curtin/log.py", line 88, in wrapper
    return log_call(func, *args, **kwargs)
  File "/<<PKGBUILDDIR>>/curtin/log.py", line 73, in log_call
    func, *args, **kwargs)
  File "/<<PKGBUILDDIR>>/curtin/log.py", line 79, in log_time
    return func(*args, **kwargs)
  File "/<<PKGBUILDDIR>>/curtin/udev.py", line 57, in udevadm_settle
    util.subp(settle_cmd)
  File "/<<PKGBUILDDIR>>/curtin/util.py", line 275, in subp
    return _subp(*args, **kwargs)
  File "/<<PKGBUILDDIR>>/curtin/util.py", line 129, in _subp
    raise ProcessExecutionError(cmd=args, reason=e)
ProcessExecutionError: Unexpected error while running command.
Command: ['udevadm', 'settle']
Exit code: -
Reason: [Errno 2] No such file or directory
Stdout: ''
Stderr: ''

(from https://jenkins.ubuntu.com/server/job/curtin-build/1204/console)

** Affects: curtin
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of curtin
developers, which is subscribed to curtin.
https://bugs.launchpad.net/bugs/1873913

Title:
  curtin's tests assume `udevadm` is present on test systems

Status in curtin:
  New

Bug description:
  This is not the case in build chroots, so we see the following test
  failures during package build:

  ======================================================================
  ERROR: test_start_clear_holders_deps (unittests.test_clear_holders.TestClearHolders)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 1305, in patched
      return func(*args, **keywargs)
    File "/<<PKGBUILDDIR>>/tests/unittests/test_clear_holders.py", line 712, in test_start_clear_holders_deps
      clear_holders.start_clear_holders_deps()
    File "/<<PKGBUILDDIR>>/curtin/block/clear_holders.py", line 690, in start_clear_holders_deps
      udev.udevadm_settle()
    File "/<<PKGBUILDDIR>>/curtin/log.py", line 88, in wrapper
      return log_call(func, *args, **kwargs)
    File "/<<PKGBUILDDIR>>/curtin/log.py", line 73, in log_call
      func, *args, **kwargs)
    File "/<<PKGBUILDDIR>>/curtin/log.py", line 79, in log_time
      return func(*args, **kwargs)
    File "/<<PKGBUILDDIR>>/curtin/udev.py", line 57, in udevadm_settle
      util.subp(settle_cmd)
    File "/<<PKGBUILDDIR>>/curtin/util.py", line 275, in subp
      return _subp(*args, **kwargs)
    File "/<<PKGBUILDDIR>>/curtin/util.py", line 129, in _subp
      raise ProcessExecutionError(cmd=args, reason=e)
  ProcessExecutionError: Unexpected error while running command.
  Command: ['udevadm', 'settle']
  Exit code: -
  Reason: [Errno 2] No such file or directory
  Stdout: ''
  Stderr: ''

  ======================================================================
  ERROR: test that we skip zfs modprobe on unsupported platforms
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/mock/mock.py", line 1305, in patched
      return func(*args, **keywargs)
    File "/<<PKGBUILDDIR>>/tests/unittests/test_clear_holders.py", line 727, in test_start_clear_holders_deps_nozfs
      clear_holders.start_clear_holders_deps()
    File "/<<PKGBUILDDIR>>/curtin/block/clear_holders.py", line 690, in start_clear_holders_deps
      udev.udevadm_settle()
    File "/<<PKGBUILDDIR>>/curtin/log.py", line 88, in wrapper
      return log_call(func, *args, **kwargs)
    File "/<<PKGBUILDDIR>>/curtin/log.py", line 73, in log_call
      func, *args, **kwargs)
    File "/<<PKGBUILDDIR>>/curtin/log.py", line 79, in log_time
      return func(*args, **kwargs)
    File "/<<PKGBUILDDIR>>/curtin/udev.py", line 57, in udevadm_settle
      util.subp(settle_cmd)
    File "/<<PKGBUILDDIR>>/curtin/util.py", line 275, in subp
      return _subp(*args, **kwargs)
    File "/<<PKGBUILDDIR>>/curtin/util.py", line 129, in _subp
      raise ProcessExecutionError(cmd=args, reason=e)
  ProcessExecutionError: Unexpected error while running command.
  Command: ['udevadm', 'settle']
  Exit code: -
  Reason: [Errno 2] No such file or directory
  Stdout: ''
  Stderr: ''

  (from https://jenkins.ubuntu.com/server/job/curtin-build/1204/console)

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1873913/+subscriptions


Follow ups