← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1869707] [NEW] Unit test error on aarch64

 

Public bug reported:


nova.tests.unit.virt.libvirt.test_driver.LibvirtConnTestCase.test_get_guest_config_machine_type_from_config
-----------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/opt/stack/nova/nova/tests/unit/virt/libvirt/test_driver.py", line 7325, in test_get_guest_config_machine_type_from_config
    self.assertEqual(cfg.os_mach_type, "fake_machine_type")

      File "/opt/stack/nova/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 415, in assertEqual
    self.assertThat(observed, matcher, message)

      File "/opt/stack/nova/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 502, in assertThat
    raise mismatch_error

    testtools.matchers._impl.MismatchError: 'virt' !=
'fake_machine_type'


Captured pythonlogging:
~~~~~~~~~~~~~~~~~~~~~~~
    2020-03-30 11:03:04,756 WARNING [os_brick.initiator.connectors.remotefs] Connection details not present. RemoteFsClient may not initialize properly.
2020-03-30 11:03:04,762 INFO [nova.virt.libvirt.host] kernel doesn't support AMD SEV


nova.tests.unit.virt.libvirt.test_driver.LibvirtConnTestCase.test_get_guest_config_one_scsi_volume_with_configdrive
-------------------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/opt/stack/nova/nova/tests/unit/virt/libvirt/test_driver.py", line 4927, in test_get_guest_config_one_scsi_volume_with_configdrive
    self.assertEqual('hda', cfg.devices[2].target_dev)

      File "/opt/stack/nova/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 415, in assertEqual
    self.assertThat(observed, matcher, message)

      File "/opt/stack/nova/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 502, in assertThat
    raise mismatch_error

    testtools.matchers._impl.MismatchError: 'hda' != 'sdd'


Captured pythonlogging:
~~~~~~~~~~~~~~~~~~~~~~~
    2020-03-30 11:03:04,484 WARNING [os_brick.initiator.connectors.remotefs] Connection details not present. RemoteFsClient may not initialize properly.
2020-03-30 11:03:05,017 INFO [nova.virt.libvirt.host] kernel doesn't support AMD SEV


nova.tests.unit.virt.libvirt.test_driver.LibvirtConnTestCase.test_get_guest_config_boot_from_volume_with_configdrive
--------------------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/opt/stack/nova/nova/tests/unit/virt/libvirt/test_driver.py", line 4999, in test_get_guest_config_boot_from_volume_with_configdrive
    self.assertEqual('hda', cfg.devices[1].target_dev)

      File "/opt/stack/nova/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 415, in assertEqual
    self.assertThat(observed, matcher, message)

      File "/opt/stack/nova/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 502, in assertThat
    raise mismatch_error

    testtools.matchers._impl.MismatchError: 'hda' != 'sdd'


Captured pythonlogging:
~~~~~~~~~~~~~~~~~~~~~~~
    2020-03-30 11:03:27,767 WARNING [os_brick.initiator.connectors.remotefs] Connection details not present. RemoteFsClient may not initialize properly.
2020-03-30 11:03:27,791 INFO [nova.virt.libvirt.host] kernel doesn't support AMD SEV


nova.tests.unit.virt.libvirt.test_driver.LibvirtConnTestCase.test_sev_enabled_host_extra_spec_no_machine_type
-------------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/opt/stack/nova/nova/tests/unit/virt/libvirt/test_driver.py", line 3101, in test_sev_enabled_host_extra_spec_no_machine_type
    "for SEV to work", str(exc))

      File "/opt/stack/nova/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 415, in assertEqual
    self.assertThat(observed, matcher, message)

      File "/opt/stack/nova/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 502, in assertThat
    raise mismatch_error

    testtools.matchers._impl.MismatchError: !=:
reference = "Machine type 'pc' is not compatible with image fake_image (150d530b-1c57-4367-b754-1f1b5237923d): q35 type is required for SEV to work"
actual    = "Machine type 'virt' is not compatible with image fake_image (150d530b-1c57-4367-b754-1f1b5237923d): q35 type is required for SEV to work"


Captured pythonlogging:
~~~~~~~~~~~~~~~~~~~~~~~
    2020-03-30 11:03:34,823 WARNING [os_brick.initiator.connectors.remotefs] Connection details not present. RemoteFsClient may not initialize properly.

** Affects: nova
     Importance: Undecided
         Status: New

-- 
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/1869707

Title:
  Unit test error on aarch64

Status in OpenStack Compute (nova):
  New

Bug description:
  
  nova.tests.unit.virt.libvirt.test_driver.LibvirtConnTestCase.test_get_guest_config_machine_type_from_config
  -----------------------------------------------------------------------------------------------------------

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):

        File "/opt/stack/nova/nova/tests/unit/virt/libvirt/test_driver.py", line 7325, in test_get_guest_config_machine_type_from_config
      self.assertEqual(cfg.os_mach_type, "fake_machine_type")

        File "/opt/stack/nova/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 415, in assertEqual
      self.assertThat(observed, matcher, message)

        File "/opt/stack/nova/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 502, in assertThat
      raise mismatch_error

      testtools.matchers._impl.MismatchError: 'virt' !=
  'fake_machine_type'

  
  Captured pythonlogging:
  ~~~~~~~~~~~~~~~~~~~~~~~
      2020-03-30 11:03:04,756 WARNING [os_brick.initiator.connectors.remotefs] Connection details not present. RemoteFsClient may not initialize properly.
  2020-03-30 11:03:04,762 INFO [nova.virt.libvirt.host] kernel doesn't support AMD SEV

  
  nova.tests.unit.virt.libvirt.test_driver.LibvirtConnTestCase.test_get_guest_config_one_scsi_volume_with_configdrive
  -------------------------------------------------------------------------------------------------------------------

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):

        File "/opt/stack/nova/nova/tests/unit/virt/libvirt/test_driver.py", line 4927, in test_get_guest_config_one_scsi_volume_with_configdrive
      self.assertEqual('hda', cfg.devices[2].target_dev)

        File "/opt/stack/nova/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 415, in assertEqual
      self.assertThat(observed, matcher, message)

        File "/opt/stack/nova/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 502, in assertThat
      raise mismatch_error

      testtools.matchers._impl.MismatchError: 'hda' != 'sdd'

  
  Captured pythonlogging:
  ~~~~~~~~~~~~~~~~~~~~~~~
      2020-03-30 11:03:04,484 WARNING [os_brick.initiator.connectors.remotefs] Connection details not present. RemoteFsClient may not initialize properly.
  2020-03-30 11:03:05,017 INFO [nova.virt.libvirt.host] kernel doesn't support AMD SEV

  
  nova.tests.unit.virt.libvirt.test_driver.LibvirtConnTestCase.test_get_guest_config_boot_from_volume_with_configdrive
  --------------------------------------------------------------------------------------------------------------------

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):

        File "/opt/stack/nova/nova/tests/unit/virt/libvirt/test_driver.py", line 4999, in test_get_guest_config_boot_from_volume_with_configdrive
      self.assertEqual('hda', cfg.devices[1].target_dev)

        File "/opt/stack/nova/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 415, in assertEqual
      self.assertThat(observed, matcher, message)

        File "/opt/stack/nova/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 502, in assertThat
      raise mismatch_error

      testtools.matchers._impl.MismatchError: 'hda' != 'sdd'

  
  Captured pythonlogging:
  ~~~~~~~~~~~~~~~~~~~~~~~
      2020-03-30 11:03:27,767 WARNING [os_brick.initiator.connectors.remotefs] Connection details not present. RemoteFsClient may not initialize properly.
  2020-03-30 11:03:27,791 INFO [nova.virt.libvirt.host] kernel doesn't support AMD SEV

  
  nova.tests.unit.virt.libvirt.test_driver.LibvirtConnTestCase.test_sev_enabled_host_extra_spec_no_machine_type
  -------------------------------------------------------------------------------------------------------------

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):

        File "/opt/stack/nova/nova/tests/unit/virt/libvirt/test_driver.py", line 3101, in test_sev_enabled_host_extra_spec_no_machine_type
      "for SEV to work", str(exc))

        File "/opt/stack/nova/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 415, in assertEqual
      self.assertThat(observed, matcher, message)

        File "/opt/stack/nova/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 502, in assertThat
      raise mismatch_error

      testtools.matchers._impl.MismatchError: !=:
  reference = "Machine type 'pc' is not compatible with image fake_image (150d530b-1c57-4367-b754-1f1b5237923d): q35 type is required for SEV to work"
  actual    = "Machine type 'virt' is not compatible with image fake_image (150d530b-1c57-4367-b754-1f1b5237923d): q35 type is required for SEV to work"


  Captured pythonlogging:
  ~~~~~~~~~~~~~~~~~~~~~~~
      2020-03-30 11:03:34,823 WARNING [os_brick.initiator.connectors.remotefs] Connection details not present. RemoteFsClient may not initialize properly.

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


Follow ups