← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1597433] Re: xenapi unittest failures on Newton

 

Reviewed:  https://review.openstack.org/336533
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=fc0dfb369eb8fd0e71839ed71da85acff81fa36f
Submitter: Jenkins
Branch:    master

commit fc0dfb369eb8fd0e71839ed71da85acff81fa36f
Author: Bob Ball <bob.ball@xxxxxxxxxx>
Date:   Fri Jul 1 13:11:00 2016 +0100

    XenAPI: UT: Always mock logging configuration
    
    The call to configure logging sets up logging to syslog.  Some
    environments, such as the Ubuntu package builder environment,
    do not permit this operation.
    
    Logging is made to syslog as the plugin runs in dom0 on XenServer,
    not with the rest of Nova, so the oslo logging capabilities can't
    be used.
    
    Mock out the call to configure logging to prevent attempts to use
    syslog
    
    Change-Id: Ie32691d980aff052498c6c5822828ba9703d412b
    Closes-Bug: 1597433


** Changed in: nova
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1597433

Title:
  xenapi unittest failures on Newton

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  We're seeing the following errors in ubuntu package builds since the
  recent XenAPI patches landed:

  commit 5d15918076eef173a3d140f968260aeb19d0614e
  Merge: 44d8b0d 5915da7
  Author: Jenkins <jenkins@xxxxxxxxxxxxxxxxxxxx>
  Date:   Tue Jun 28 12:55:20 2016 +0000

      Merge "XenAPI: Stream config drive to XAPI"

  commit 44d8b0d0cfde1a0938f42eb6a89dbd210d9f88c5
  Merge: 7c0de90 b19e377
  Author: Jenkins <jenkins@xxxxxxxxxxxxxxxxxxxx>
  Date:   Tue Jun 28 11:07:05 2016 +0000

      Merge "Moving test helpers to a common place"

  commit 7c0de90203c5b9efd527c65f4d8dd32a1513c5bc
  Merge: 0c85650 f39e660
  Author: Jenkins <jenkins@xxxxxxxxxxxxxxxxxxxx>
  Date:   Tue Jun 28 11:01:34 2016 +0000

      Merge "Improve image signature verification failure notification"

  commit 0c8565097c690a0c93f7544c86318cee31417b76
  Merge: 5f75130 3e85b80
  Author: Jenkins <jenkins@xxxxxxxxxxxxxxxxxxxx>
  Date:   Tue Jun 28 10:28:36 2016 +0000

      Merge "XenAPI: Perform disk operations in dom0"

  
  Test failures:

  ==============================
  Failed 8 tests - output below:
  ==============================

  nova.tests.unit.virt.xenapi.plugins.test_partition_utils.PartitionUtils.test_wait_for_dev_ok
  --------------------------------------------------------------------------------------------

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
        File "/��PKGBUILDDIR��/nova/tests/unit/virt/xenapi/plugins/test_partition_utils.py", line 25, in setUp
          self.partition_utils = self.load_plugin("partition_utils.py")
        File "/��PKGBUILDDIR��/nova/tests/unit/virt/xenapi/plugins/plugin_test.py", line 68, in load_plugin
          return imp.load_source(name, path)
        File "/��PKGBUILDDIR��/plugins/xenserver/xenapi/etc/xapi.d/plugins/partition_utils.py", line 26, in <module>
          pluginlib.configure_logging("disk_utils")
        File "/��PKGBUILDDIR��/plugins/xenserver/xenapi/etc/xapi.d/plugins/pluginlib_nova.py", line 42, in configure_logging
          sysh = logging.handlers.SysLogHandler('/dev/log')
        File "/usr/lib/python2.7/logging/handlers.py", line 761, in __init__
          self._connect_unixsocket(address)
        File "/usr/lib/python2.7/logging/handlers.py", line 789, in _connect_unixsocket
          self.socket.connect(address)
        File "/usr/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 237, in connect
          while not socket_connect(fd, address):
        File "/usr/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 39, in socket_connect
          raise socket.error(err, errno.errorcode[err])
      socket.error: [Errno 2] ENOENT
      

  nova.tests.unit.virt.xenapi.plugins.test_partition_utils.PartitionUtils.test_mkfs_ext3_no_label
  -----------------------------------------------------------------------------------------------

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
        File "/��PKGBUILDDIR��/nova/tests/unit/virt/xenapi/plugins/test_partition_utils.py", line 25, in setUp
          self.partition_utils = self.load_plugin("partition_utils.py")
        File "/��PKGBUILDDIR��/nova/tests/unit/virt/xenapi/plugins/plugin_test.py", line 68, in load_plugin
          return imp.load_source(name, path)
        File "/��PKGBUILDDIR��/plugins/xenserver/xenapi/etc/xapi.d/plugins/partition_utils.py", line 26, in <module>
          pluginlib.configure_logging("disk_utils")
        File "/��PKGBUILDDIR��/plugins/xenserver/xenapi/etc/xapi.d/plugins/pluginlib_nova.py", line 42, in configure_logging
          sysh = logging.handlers.SysLogHandler('/dev/log')
        File "/usr/lib/python2.7/logging/handlers.py", line 761, in __init__
          self._connect_unixsocket(address)
        File "/usr/lib/python2.7/logging/handlers.py", line 789, in _connect_unixsocket
          self.socket.connect(address)
        File "/usr/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 237, in connect
          while not socket_connect(fd, address):
        File "/usr/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 39, in socket_connect
          raise socket.error(err, errno.errorcode[err])
      socket.error: [Errno 2] ENOENT
      

  nova.tests.unit.virt.xenapi.plugins.test_partition_utils.PartitionUtils.test_wait_for_dev_timeout
  -------------------------------------------------------------------------------------------------

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
        File "/��PKGBUILDDIR��/nova/tests/unit/virt/xenapi/plugins/test_partition_utils.py", line 25, in setUp
          self.partition_utils = self.load_plugin("partition_utils.py")
        File "/��PKGBUILDDIR��/nova/tests/unit/virt/xenapi/plugins/plugin_test.py", line 68, in load_plugin
          return imp.load_source(name, path)
        File "/��PKGBUILDDIR��/plugins/xenserver/xenapi/etc/xapi.d/plugins/partition_utils.py", line 26, in <module>
          pluginlib.configure_logging("disk_utils")
        File "/��PKGBUILDDIR��/plugins/xenserver/xenapi/etc/xapi.d/plugins/pluginlib_nova.py", line 42, in configure_logging
          sysh = logging.handlers.SysLogHandler('/dev/log')
        File "/usr/lib/python2.7/logging/handlers.py", line 761, in __init__
          self._connect_unixsocket(address)
        File "/usr/lib/python2.7/logging/handlers.py", line 789, in _connect_unixsocket
          self.socket.connect(address)
        File "/usr/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 237, in connect
          while not socket_connect(fd, address):
        File "/usr/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 39, in socket_connect
          raise socket.error(err, errno.errorcode[err])
      socket.error: [Errno 2] ENOENT
      

  nova.tests.unit.virt.xenapi.plugins.test_partition_utils.PartitionUtils.test_mkfs_removes_partitions_exc
  --------------------------------------------------------------------------------------------------------

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
        File "/��PKGBUILDDIR��/nova/tests/unit/virt/xenapi/plugins/test_partition_utils.py", line 25, in setUp
          self.partition_utils = self.load_plugin("partition_utils.py")
        File "/��PKGBUILDDIR��/nova/tests/unit/virt/xenapi/plugins/plugin_test.py", line 68, in load_plugin
          return imp.load_source(name, path)
        File "/��PKGBUILDDIR��/plugins/xenserver/xenapi/etc/xapi.d/plugins/partition_utils.py", line 26, in <module>
          pluginlib.configure_logging("disk_utils")
        File "/��PKGBUILDDIR��/plugins/xenserver/xenapi/etc/xapi.d/plugins/pluginlib_nova.py", line 42, in configure_logging
          sysh = logging.handlers.SysLogHandler('/dev/log')
        File "/usr/lib/python2.7/logging/handlers.py", line 761, in __init__
          self._connect_unixsocket(address)
        File "/usr/lib/python2.7/logging/handlers.py", line 789, in _connect_unixsocket
          self.socket.connect(address)
        File "/usr/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 237, in connect
          while not socket_connect(fd, address):
        File "/usr/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 39, in socket_connect
          raise socket.error(err, errno.errorcode[err])
      socket.error: [Errno 2] ENOENT
      

  nova.tests.unit.virt.xenapi.plugins.test_partition_utils.PartitionUtils.test_mkfs_ext3
  --------------------------------------------------------------------------------------

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
        File "/��PKGBUILDDIR��/nova/tests/unit/virt/xenapi/plugins/test_partition_utils.py", line 25, in setUp
          self.partition_utils = self.load_plugin("partition_utils.py")
        File "/��PKGBUILDDIR��/nova/tests/unit/virt/xenapi/plugins/plugin_test.py", line 68, in load_plugin
          return imp.load_source(name, path)
        File "/��PKGBUILDDIR��/plugins/xenserver/xenapi/etc/xapi.d/plugins/partition_utils.py", line 26, in <module>
          pluginlib.configure_logging("disk_utils")
        File "/��PKGBUILDDIR��/plugins/xenserver/xenapi/etc/xapi.d/plugins/pluginlib_nova.py", line 42, in configure_logging
          sysh = logging.handlers.SysLogHandler('/dev/log')
        File "/usr/lib/python2.7/logging/handlers.py", line 761, in __init__
          self._connect_unixsocket(address)
        File "/usr/lib/python2.7/logging/handlers.py", line 789, in _connect_unixsocket
          self.socket.connect(address)
        File "/usr/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 237, in connect
          while not socket_connect(fd, address):
        File "/usr/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 39, in socket_connect
          raise socket.error(err, errno.errorcode[err])
      socket.error: [Errno 2] ENOENT
      

  nova.tests.unit.virt.xenapi.plugins.test_partition_utils.PartitionUtils.test_make_partition
  -------------------------------------------------------------------------------------------

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
        File "/��PKGBUILDDIR��/nova/tests/unit/virt/xenapi/plugins/test_partition_utils.py", line 25, in setUp
          self.partition_utils = self.load_plugin("partition_utils.py")
        File "/��PKGBUILDDIR��/nova/tests/unit/virt/xenapi/plugins/plugin_test.py", line 68, in load_plugin
          return imp.load_source(name, path)
        File "/��PKGBUILDDIR��/plugins/xenserver/xenapi/etc/xapi.d/plugins/partition_utils.py", line 26, in <module>
          pluginlib.configure_logging("disk_utils")
        File "/��PKGBUILDDIR��/plugins/xenserver/xenapi/etc/xapi.d/plugins/pluginlib_nova.py", line 42, in configure_logging
          sysh = logging.handlers.SysLogHandler('/dev/log')
        File "/usr/lib/python2.7/logging/handlers.py", line 761, in __init__
          self._connect_unixsocket(address)
        File "/usr/lib/python2.7/logging/handlers.py", line 789, in _connect_unixsocket
          self.socket.connect(address)
        File "/usr/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 237, in connect
          while not socket_connect(fd, address):
        File "/usr/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 39, in socket_connect
          raise socket.error(err, errno.errorcode[err])
      socket.error: [Errno 2] ENOENT
      

  nova.tests.unit.virt.xenapi.plugins.test_partition_utils.PartitionUtils.test_mkfs_removes_partitions_ok
  -------------------------------------------------------------------------------------------------------

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
        File "/��PKGBUILDDIR��/nova/tests/unit/virt/xenapi/plugins/test_partition_utils.py", line 25, in setUp
          self.partition_utils = self.load_plugin("partition_utils.py")
        File "/��PKGBUILDDIR��/nova/tests/unit/virt/xenapi/plugins/plugin_test.py", line 68, in load_plugin
          return imp.load_source(name, path)
        File "/��PKGBUILDDIR��/plugins/xenserver/xenapi/etc/xapi.d/plugins/partition_utils.py", line 26, in <module>
          pluginlib.configure_logging("disk_utils")
        File "/��PKGBUILDDIR��/plugins/xenserver/xenapi/etc/xapi.d/plugins/pluginlib_nova.py", line 42, in configure_logging
          sysh = logging.handlers.SysLogHandler('/dev/log')
        File "/usr/lib/python2.7/logging/handlers.py", line 761, in __init__
          self._connect_unixsocket(address)
        File "/usr/lib/python2.7/logging/handlers.py", line 789, in _connect_unixsocket
          self.socket.connect(address)
        File "/usr/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 237, in connect
          while not socket_connect(fd, address):
        File "/usr/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 39, in socket_connect
          raise socket.error(err, errno.errorcode[err])
      socket.error: [Errno 2] ENOENT
      

  nova.tests.unit.virt.xenapi.plugins.test_partition_utils.PartitionUtils.test_mkfs_swap
  --------------------------------------------------------------------------------------

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
        File "/��PKGBUILDDIR��/nova/tests/unit/virt/xenapi/plugins/test_partition_utils.py", line 25, in setUp
          self.partition_utils = self.load_plugin("partition_utils.py")
        File "/��PKGBUILDDIR��/nova/tests/unit/virt/xenapi/plugins/plugin_test.py", line 68, in load_plugin
          return imp.load_source(name, path)
        File "/��PKGBUILDDIR��/plugins/xenserver/xenapi/etc/xapi.d/plugins/partition_utils.py", line 26, in <module>
          pluginlib.configure_logging("disk_utils")
        File "/��PKGBUILDDIR��/plugins/xenserver/xenapi/etc/xapi.d/plugins/pluginlib_nova.py", line 42, in configure_logging
          sysh = logging.handlers.SysLogHandler('/dev/log')
        File "/usr/lib/python2.7/logging/handlers.py", line 761, in __init__
          self._connect_unixsocket(address)
        File "/usr/lib/python2.7/logging/handlers.py", line 789, in _connect_unixsocket
          self.socket.connect(address)
        File "/usr/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 237, in connect
          while not socket_connect(fd, address):
        File "/usr/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 39, in socket_connect
          raise socket.error(err, errno.errorcode[err])
      socket.error: [Errno 2] ENOENT

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


References