yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #20828
[Bug 1367729] [NEW] glance-manage db metadefs commands don't use transactions
Public bug reported:
Current approach of loading metadata definitions to database does not
use transactions. Instead it inserts data to database without
transactions so if something fails inside a single file, e.g. inserting
properties, then user has to manually remove all related data from
database, repair the json file and call 'db load_metadefs' again.
To prevent such scenario db load_metadefs should use transactions, so if
something fails then user won't care about consistency of the data in
database. Also to keep consistency in data seeding script all methods
should be rewritten to use sessions instead of engines.
** Affects: glance
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1367729
Title:
glance-manage db metadefs commands don't use transactions
Status in OpenStack Image Registry and Delivery Service (Glance):
New
Bug description:
Current approach of loading metadata definitions to database does not
use transactions. Instead it inserts data to database without
transactions so if something fails inside a single file, e.g.
inserting properties, then user has to manually remove all related
data from database, repair the json file and call 'db load_metadefs'
again.
To prevent such scenario db load_metadefs should use transactions, so
if something fails then user won't care about consistency of the data
in database. Also to keep consistency in data seeding script all
methods should be rewritten to use sessions instead of engines.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1367729/+subscriptions
Follow ups
References