← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1705681] [NEW] Cinder client tests cast microversion to a float causing mismatch

 

Public bug reported:

In nova/tests/unit/volume/test_cinder.py,
test_create_v3_client_with_microversion_available mocks out the return
value for cinderclient.client.get_highest_client_server_version to be
whatever the python-cinderclient MAX_VERSION is. The problem is, it is
casting this as a float(), so for microversions on the 10's boundary
(3.10, 3.20, etc.) this ends up losing the last digit (3.1, 3.2, etc.).

The current release puts the Cinder MAX_VERSION at 3.40, causing this
test to fail when requesting the specific version.

** Affects: nova
     Importance: Undecided
     Assignee: Sean McGinnis (sean-mcginnis)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Sean McGinnis (sean-mcginnis)

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

Title:
  Cinder client tests cast microversion to a float causing mismatch

Status in OpenStack Compute (nova):
  New

Bug description:
  In nova/tests/unit/volume/test_cinder.py,
  test_create_v3_client_with_microversion_available mocks out the return
  value for cinderclient.client.get_highest_client_server_version to be
  whatever the python-cinderclient MAX_VERSION is. The problem is, it is
  casting this as a float(), so for microversions on the 10's boundary
  (3.10, 3.20, etc.) this ends up losing the last digit (3.1, 3.2,
  etc.).

  The current release puts the Cinder MAX_VERSION at 3.40, causing this
  test to fail when requesting the specific version.

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


Follow ups