tempest performs incorrect microversion comparisons

Bug #1525968 reported by Valeriy Ponomaryov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
In Progress
High
Valeriy Ponomaryov
python-manilaclient
In Progress
High
Valeriy Ponomaryov

Bug Description

Manila microversions have following template:

x.y

where 'x' and 'y' both digits.

And now tempest transforms string 'x.y' to float but it is incorrect thing to do because float assumes that each left value is bigger than right one, but it is not suitable for microversion comparisons. Examples:

Microversions true conditions:

2.9 < 2.10

2.9 < 2.81

Float true conditions:

2.9 > 2.10

2.9 > 2.81

Tags: tempest
Changed in manila:
importance: Undecided → High
assignee: nobody → Valeriy Ponomaryov (vponomaryov)
milestone: none → mitaka-2
status: New → In Progress
tags: added: tempest
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

Fix proposed to branch: master
Review: https://review.openstack.org/257459

Changed in python-manilaclient:
importance: Undecided → High
assignee: nobody → Valeriy Ponomaryov (vponomaryov)
milestone: none → mitaka-2
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.