← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1869707] Re: Unit test error on aarch64

 

Reviewed:  https://review.opendev.org/713163
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=eff787626fcc6c5c3e800422273ac54c0d18c704
Submitter: Zuul
Branch:    master

commit eff787626fcc6c5c3e800422273ac54c0d18c704
Author: Kevin Zhao <kevin.zhao@xxxxxxxxxx>
Date:   Thu Apr 9 21:57:35 2020 +0800

    Fix ut error on Aarch64(And other non-x86 platform)
    
    Some ut tests are architecture releated with x86, so add
    architecture to fix them.
    
    Closes-bug: #1869707
    Change-Id: I240e7a1fdd2996957a5d7990e263eeff2b5eebaa
    Signed-off-by: Kevin Zhao <kevin.zhao@xxxxxxxxxx>


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

Title:
  Unit test error on aarch64

Status in OpenStack Compute (nova):
  Fix Released

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


References