← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1784577] [NEW] Some allocation candidate tests for sharing providers fail in python 3.6 (and work in python 3.5)

 

Public bug reported:

When running the nova functional tests under python 3.6 the
nova.tests.functional.api.openstack.placement.db.test_allocation_candidates.AllocationCandidatesTestCase.test_all_sharing_providers.*
tests (there are 3) all fail because incorrect results are produced on
the call to rp_obj.AllocationCandidates.get_by_requests:

    b"reference = [[('ss1', 'DISK_GB', 1500),"
    b"  ('ss1', 'IPV4_ADDRESS', 2),"
    b"  ('ss1', 'SRIOV_NET_VF', 1)],"
    b" [('ss1', 'DISK_GB', 1500),"
    b"  ('ss1', 'IPV4_ADDRESS', 2),"
    b"  ('ss2', 'SRIOV_NET_VF', 1)],"
    b" [('ss1', 'IPV4_ADDRESS', 2),"
    b"  ('ss1', 'SRIOV_NET_VF', 1),"
    b"  ('ss2', 'DISK_GB', 1500)],"
    b" [('ss1', 'IPV4_ADDRESS', 2),"
    b"  ('ss2', 'DISK_GB', 1500),"
    b"  ('ss2', 'SRIOV_NET_VF', 1)]]"
    b"actual    = [[('ss1', 'DISK_GB', 1500),"
    b"  ('ss1', 'IPV4_ADDRESS', 2),"
    b"  ('ss1', 'SRIOV_NET_VF', 1)],"
    b" [('ss1', 'DISK_GB', 1500),"
    b"  ('ss1', 'IPV4_ADDRESS', 2),"
    b"  ('ss2', 'SRIOV_NET_VF', 1)],"
    b" [('ss1', 'DISK_GB', 1500),"
    b"  ('ss1', 'IPV4_ADDRESS', 2),"
    b"  ('ss2', 'SRIOV_NET_VF', 1)],"
    b" [('ss1', 'IPV4_ADDRESS', 2),"
    b"  ('ss1', 'SRIOV_NET_VF', 1),"
    b"  ('ss2', 'DISK_GB', 1500)],"
    b" [('ss1', 'IPV4_ADDRESS', 2),"
    b"  ('ss2', 'DISK_GB', 1500),"
    b"  ('ss2', 'SRIOV_NET_VF', 1)],"
    b" [('ss1', 'IPV4_ADDRESS', 2),"
    b"  ('ss2', 'DISK_GB', 1500),"
    b"  ('ss2', 'SRIOV_NET_VF', 1)]]"

** Affects: nova
     Importance: Medium
         Status: Confirmed


** Tags: placement

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

Title:
  Some allocation candidate tests for sharing providers fail in python
  3.6 (and work in python 3.5)

Status in OpenStack Compute (nova):
  Confirmed

Bug description:
  When running the nova functional tests under python 3.6 the
  nova.tests.functional.api.openstack.placement.db.test_allocation_candidates.AllocationCandidatesTestCase.test_all_sharing_providers.*
  tests (there are 3) all fail because incorrect results are produced on
  the call to rp_obj.AllocationCandidates.get_by_requests:

      b"reference = [[('ss1', 'DISK_GB', 1500),"
      b"  ('ss1', 'IPV4_ADDRESS', 2),"
      b"  ('ss1', 'SRIOV_NET_VF', 1)],"
      b" [('ss1', 'DISK_GB', 1500),"
      b"  ('ss1', 'IPV4_ADDRESS', 2),"
      b"  ('ss2', 'SRIOV_NET_VF', 1)],"
      b" [('ss1', 'IPV4_ADDRESS', 2),"
      b"  ('ss1', 'SRIOV_NET_VF', 1),"
      b"  ('ss2', 'DISK_GB', 1500)],"
      b" [('ss1', 'IPV4_ADDRESS', 2),"
      b"  ('ss2', 'DISK_GB', 1500),"
      b"  ('ss2', 'SRIOV_NET_VF', 1)]]"
      b"actual    = [[('ss1', 'DISK_GB', 1500),"
      b"  ('ss1', 'IPV4_ADDRESS', 2),"
      b"  ('ss1', 'SRIOV_NET_VF', 1)],"
      b" [('ss1', 'DISK_GB', 1500),"
      b"  ('ss1', 'IPV4_ADDRESS', 2),"
      b"  ('ss2', 'SRIOV_NET_VF', 1)],"
      b" [('ss1', 'DISK_GB', 1500),"
      b"  ('ss1', 'IPV4_ADDRESS', 2),"
      b"  ('ss2', 'SRIOV_NET_VF', 1)],"
      b" [('ss1', 'IPV4_ADDRESS', 2),"
      b"  ('ss1', 'SRIOV_NET_VF', 1),"
      b"  ('ss2', 'DISK_GB', 1500)],"
      b" [('ss1', 'IPV4_ADDRESS', 2),"
      b"  ('ss2', 'DISK_GB', 1500),"
      b"  ('ss2', 'SRIOV_NET_VF', 1)],"
      b" [('ss1', 'IPV4_ADDRESS', 2),"
      b"  ('ss2', 'DISK_GB', 1500),"
      b"  ('ss2', 'SRIOV_NET_VF', 1)]]"

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


Follow ups