Bug 1379519 - Store glance image id as UUID
Summary: Store glance image id as UUID
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: general
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 25.0
Assignee: Anwesha Chatterjee
QA Contact: Dan Callaghan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-27 03:32 UTC by matt jia
Modified: 2018-03-19 04:18 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-03-19 04:18:17 UTC
Embargoed:


Attachments (Terms of Use)

Description matt jia 2016-09-27 03:32:56 UTC
We should store the glance image id as UUID to be consistent with OpenStack instance id, network id and so on.

Comment 1 Dan Callaghan 2017-07-20 02:04:04 UTC
Specifically this is referring to the SQLAlchemy-level database type of the openstack_region.ipxe_image_id column, which is currently Unicode in SQLAlchemy (VARCHAR in the database). It should be UUID in SQLAlchemy (BINARY or whatever it is in the database).

All the places that refer to this property in Python code will need to be adjusted to handle the UUID type (everything might just work as is).

And we will need a database migration script to change the column's type *and* correctly preserve the existing values. This might be the hardest part.

Comment 2 Anwesha Chatterjee 2017-08-02 06:46:23 UTC
https://gerrit.beaker-project.org/#/c/5774/

Comment 5 Roman Joost 2018-03-19 04:18:17 UTC
Beaker 25.0 has been released.

Release notes are available upstream: https://beaker-project.org/docs/whats-new/release-25.html


Note You need to log in before you can comment on or make changes to this bug.