[Bug 1863947] [NEW] cinder backport to bionic-ussuri fails unit tests due to missing /etc/mtab

Corey Bryant corey.bryant at canonical.com
Wed Feb 19 19:41:31 UTC 2020


Public bug reported:

======================================================================
FAIL: cinder.tests.unit.volume.drivers.test_quobyte.QuobyteDriverTestCase.test_mount_quobyte_should_reraise_already_mounted_error
cinder.tests.unit.volume.drivers.test_quobyte.QuobyteDriverTestCase.test_mount_quobyte_should_reraise_already_mounted_error
----------------------------------------------------------------------
testtools.testresult.real._StringException: pythonlogging:'': {{{
2020-02-19 18:24:23,244 INFO [keystonemiddleware.auth_token] Starting Keystone auth_token middleware
2020-02-19 18:24:23,255 WARNING [keystonemiddleware._common.config] The option "auth_url" is not known to keystonemiddleware
2020-02-19 18:24:23,256 WARNING [keystonemiddleware.auth_token] AuthToken middleware is set with keystone_authtoken.service_token_roles_required set to False. This is backwards compatible but deprecated behaviour. Please set this to True.
2020-02-19 18:24:23,260 WARNING [keystonemiddleware.auth_token] Configuring www_authenticate_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint
2020-02-19 18:24:23,293 INFO [cinder.volume.drivers.quobyte] The NAS file operations will be run as non privileged user in secure mode. Please ensure your libvirtd settings have been configured accordingly (see section 'OpenStack' in the Quobyte Manual.
2020-02-19 18:24:23,295 INFO [cinder.volume.drivers.quobyte] Mounting volume: quobyte://quobyte-host/openstack-volumes ...
2020-02-19 18:24:23,295 INFO [cinder.volume.drivers.quobyte] Mounting volume: quobyte://quobyte-host/openstack-volumes succeeded
}}}

Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/cinder/tests/unit/volume/drivers/test_quobyte.py", line 464, in test_mount_quobyte_should_reraise_already_mounted_error
    ensure=False)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 485, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 496, in assertThat
    mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 547, in _matchHelper
    mismatch = matcher.match(matchee)
  File "/usr/lib/python3/dist-packages/testtools/matchers/_exception.py", line 108, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/usr/lib/python3/dist-packages/testtools/matchers/_higherorder.py", line 62, in match
    mismatch = matcher.match(matchee)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 475, in match
    reraise(*matchee)
  File "/usr/lib/python3/dist-packages/testtools/_compat3x.py", line 16, in reraise
    raise exc_obj.with_traceback(exc_tb)
  File "/usr/lib/python3/dist-packages/testtools/matchers/_exception.py", line 101, in match
    result = matchee()
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 1049, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "/<<PKGBUILDDIR>>/cinder/volume/drivers/quobyte.py", line 699, in _mount_quobyte
    self._validate_volume(mount_path)
  File "/<<PKGBUILDDIR>>/cinder/volume/drivers/quobyte.py", line 705, in _validate_volume
    partitions = psutil.disk_partitions(all=True)
  File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 2095, in disk_partitions
    return _psplatform.disk_partitions(all)
  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 1168, in disk_partitions
    partitions = cext.disk_partitions(mtab_path)
FileNotFoundError: [Errno 2] No such file or directory: '/etc/mtab'

$ mk-sbuild bionic
...
Done building bionic-amd64.

 To CHANGE the golden image: sudo schroot -c source:bionic-amd64 -u root
 To ENTER an image snapshot: schroot -c bionic-amd64
 To BUILD within a snapshot: sbuild -A -d bionic-amd64 PACKAGE*.dsc
 To BUILD for : sbuild -A -d bionic-amd64 --host  PACKAGE*.dsc

$ sudo sbuild-shell source:bionic-amd64
I: /bin/sh
# ls /
bin  boot  build  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var
# ls /etc
X11           bash.bashrc             debian_chroot   dpkg         group      hostname  issue.net    ld.so.conf.d   localtime    lsb-release    opt         passwd            profile    rc2.d  rc6.d        securetty  shadow-  subuid       terminfo
adduser.conf  bindresvport.blacklist  debian_version  environment  group-     init.d    kernel       ldap           logcheck     mke2fs.conf    os-release  passwd-           profile.d  rc3.d  rcS.d        security   shells   sysctl.conf  timezone
alternatives  cron.daily              default         fstab        gshadow    inputrc   ld.so.cache  legal          login.defs   networks       pam.conf    perl              rc0.d      rc4.d  resolv.conf  selinux    skel     sysctl.d     update-motd.d
apt           debconf.conf            deluser.conf    gai.conf     host.conf  issue     ld.so.conf   libaudit.conf  logrotate.d  nsswitch.conf  pam.d       pkgbinarymangler  rc1.d      rc5.d  rmt          shadow     subgid   systemd
# ls /etc/mtab
ls: cannot access '/etc/mtab': No such file or directory

** Affects: cloud-archive
     Importance: Undecided
     Assignee: Corey Bryant (corey.bryant)
         Status: New

** Changed in: cloud-archive
     Assignee: (unassigned) => Corey Bryant (corey.bryant)

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

Title:
  cinder backport to bionic-ussuri fails unit tests due to missing
  /etc/mtab

Status in Ubuntu Cloud Archive:
  New

Bug description:
  ======================================================================
  FAIL: cinder.tests.unit.volume.drivers.test_quobyte.QuobyteDriverTestCase.test_mount_quobyte_should_reraise_already_mounted_error
  cinder.tests.unit.volume.drivers.test_quobyte.QuobyteDriverTestCase.test_mount_quobyte_should_reraise_already_mounted_error
  ----------------------------------------------------------------------
  testtools.testresult.real._StringException: pythonlogging:'': {{{
  2020-02-19 18:24:23,244 INFO [keystonemiddleware.auth_token] Starting Keystone auth_token middleware
  2020-02-19 18:24:23,255 WARNING [keystonemiddleware._common.config] The option "auth_url" is not known to keystonemiddleware
  2020-02-19 18:24:23,256 WARNING [keystonemiddleware.auth_token] AuthToken middleware is set with keystone_authtoken.service_token_roles_required set to False. This is backwards compatible but deprecated behaviour. Please set this to True.
  2020-02-19 18:24:23,260 WARNING [keystonemiddleware.auth_token] Configuring www_authenticate_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint
  2020-02-19 18:24:23,293 INFO [cinder.volume.drivers.quobyte] The NAS file operations will be run as non privileged user in secure mode. Please ensure your libvirtd settings have been configured accordingly (see section 'OpenStack' in the Quobyte Manual.
  2020-02-19 18:24:23,295 INFO [cinder.volume.drivers.quobyte] Mounting volume: quobyte://quobyte-host/openstack-volumes ...
  2020-02-19 18:24:23,295 INFO [cinder.volume.drivers.quobyte] Mounting volume: quobyte://quobyte-host/openstack-volumes succeeded
  }}}

  Traceback (most recent call last):
    File "/<<PKGBUILDDIR>>/cinder/tests/unit/volume/drivers/test_quobyte.py", line 464, in test_mount_quobyte_should_reraise_already_mounted_error
      ensure=False)
    File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 485, in assertRaises
      self.assertThat(our_callable, matcher)
    File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 496, in assertThat
      mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
    File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 547, in _matchHelper
      mismatch = matcher.match(matchee)
    File "/usr/lib/python3/dist-packages/testtools/matchers/_exception.py", line 108, in match
      mismatch = self.exception_matcher.match(exc_info)
    File "/usr/lib/python3/dist-packages/testtools/matchers/_higherorder.py", line 62, in match
      mismatch = matcher.match(matchee)
    File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 475, in match
      reraise(*matchee)
    File "/usr/lib/python3/dist-packages/testtools/_compat3x.py", line 16, in reraise
      raise exc_obj.with_traceback(exc_tb)
    File "/usr/lib/python3/dist-packages/testtools/matchers/_exception.py", line 101, in match
      result = matchee()
    File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 1049, in __call__
      return self._callable_object(*self._args, **self._kwargs)
    File "/<<PKGBUILDDIR>>/cinder/volume/drivers/quobyte.py", line 699, in _mount_quobyte
      self._validate_volume(mount_path)
    File "/<<PKGBUILDDIR>>/cinder/volume/drivers/quobyte.py", line 705, in _validate_volume
      partitions = psutil.disk_partitions(all=True)
    File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 2095, in disk_partitions
      return _psplatform.disk_partitions(all)
    File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 1168, in disk_partitions
      partitions = cext.disk_partitions(mtab_path)
  FileNotFoundError: [Errno 2] No such file or directory: '/etc/mtab'

  $ mk-sbuild bionic
  ...
  Done building bionic-amd64.

   To CHANGE the golden image: sudo schroot -c source:bionic-amd64 -u root
   To ENTER an image snapshot: schroot -c bionic-amd64
   To BUILD within a snapshot: sbuild -A -d bionic-amd64 PACKAGE*.dsc
   To BUILD for : sbuild -A -d bionic-amd64 --host  PACKAGE*.dsc

  $ sudo sbuild-shell source:bionic-amd64
  I: /bin/sh
  # ls /
  bin  boot  build  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var
  # ls /etc
  X11           bash.bashrc             debian_chroot   dpkg         group      hostname  issue.net    ld.so.conf.d   localtime    lsb-release    opt         passwd            profile    rc2.d  rc6.d        securetty  shadow-  subuid       terminfo
  adduser.conf  bindresvport.blacklist  debian_version  environment  group-     init.d    kernel       ldap           logcheck     mke2fs.conf    os-release  passwd-           profile.d  rc3.d  rcS.d        security   shells   sysctl.conf  timezone
  alternatives  cron.daily              default         fstab        gshadow    inputrc   ld.so.cache  legal          login.defs   networks       pam.conf    perl              rc0.d      rc4.d  resolv.conf  selinux    skel     sysctl.d     update-motd.d
  apt           debconf.conf            deluser.conf    gai.conf     host.conf  issue     ld.so.conf   libaudit.conf  logrotate.d  nsswitch.conf  pam.d       pkgbinarymangler  rc1.d      rc5.d  rmt          shadow     subgid   systemd
  # ls /etc/mtab
  ls: cannot access '/etc/mtab': No such file or directory

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1863947/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list