← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1647345] [NEW] UUID field setting in InstanceMapping

 

Public bug reported:

see this warning in unit test

    /home/jichen/git/nova/.tox/py27/local/lib/python2.7/site-packages/oslo_versionedobjects/fields.py:352: FutureWarning: 46d5efdf 540b 4657 850b 28c5024a8ce5 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
      "for further details" % value, FutureWarning)


the problem is bigger than a warning when the code change, as we have some code here in nova/cmd/manage.py , this will make the instance uuid not acceptable in the real code

1365             # Don't judge me. There's already an InstanceMapping with this UUID
1366             # so the marker needs to be non destructively modified.
1367             next_marker = next_marker.replace('-', ' ')
1368             objects.InstanceMapping(ctxt, instance_uuid=next_marker,
1369                     project_id=marker_project_id).create()
1370             return 1

** Affects: nova
     Importance: Undecided
     Assignee: jichenjc (jichenjc)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => jichenjc (jichenjc)

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

Title:
  UUID field setting in InstanceMapping

Status in OpenStack Compute (nova):
  New

Bug description:
  see this warning in unit test

      /home/jichen/git/nova/.tox/py27/local/lib/python2.7/site-packages/oslo_versionedobjects/fields.py:352: FutureWarning: 46d5efdf 540b 4657 850b 28c5024a8ce5 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
        "for further details" % value, FutureWarning)

  
  the problem is bigger than a warning when the code change, as we have some code here in nova/cmd/manage.py , this will make the instance uuid not acceptable in the real code

  1365             # Don't judge me. There's already an InstanceMapping with this UUID
  1366             # so the marker needs to be non destructively modified.
  1367             next_marker = next_marker.replace('-', ' ')
  1368             objects.InstanceMapping(ctxt, instance_uuid=next_marker,
  1369                     project_id=marker_project_id).create()
  1370             return 1

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