objects: Enforce UUID type check in tests

Bug #1582172 reported by ChangBo Guo(gcb)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
Undecided
ChangBo Guo(gcb)

Bug Description

oslo_versionedobjects.fields.UUIDField will validate UUID in next major release, but nova has many tests with invalid uuids. So need fixes tests before moving to new major release of oslo.versionedobjects. For more details, please see:

http://docs.openstack.org/developer/oslo.versionedobjects/api/fields.html#oslo_versionedobjects.fields.UUIDField

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Revision history for this message
ChangBo Guo(gcb) (glongwave) wrote :
Revision history for this message
ChangBo Guo(gcb) (glongwave) wrote :

Current there are many FutureWarnings like:

2016-03-23 10:58:22.085 | Captured stderr:
2016-03-23 10:58:22.085 | ~~~~~~~~~~~~~~~~
2016-03-23 10:58:22.085 | /home/jenkins/workspace/gate-nova-python27-db/.tox/py27/local/lib/python2.7/site-packages/oslo_versionedobjects/fields.py:325: FutureWarning: 1 is an invalid UUID. Using UUIDFields with invalid UUIDs is no longer supported, and will be removed in a future release. Please update your code to input valid UUIDs or accept ValueErrors for invalid UUIDs. See http://docs.openstack.org/developer/oslo.versionedobjects/api/fields.html#oslo_versionedobjects.fields.UUIDField for further details
2016-03-23 10:58:22.085 | "for further details" % value, FutureWarning)

http://logs.openstack.org/81/187881/5/check/gate-nova-python27-db/c70fe76/console.html.gz

Changed in nova:
assignee: nobody → ChangBo Guo(gcb) (glongwave)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

tags: added: compute
tags: added: testing
Sujitha (sujitha-neti)
Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by ChangBo Guo(gcb) (<email address hidden>) on branch: master
Review: https://review.openstack.org/316791
Reason: thanks, abandon this

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.