Enhancement: add nova-manage instance_type alter

Bug #779304 reported by Graham Hemingway
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)

Bug Description

Per my question (https://answers.launchpad.net/nova/+question/156423), I would like to enhance nova-manage instance_type (and flavor) to have an alter (or change/modify) command for changing the description of the instance types.

Right now you have two options:
1) Delete an instance type and create it with the new configuration (not bad but a little clunky)
2) Hack the DB table directly (really not user friendly)

This is not a major enhancement by any means, but would make managing instance types a bit more clear. If I could get a bit of feedback and direction, I think this would be a great chance for me to get more familiar with the code and make a contribution back to OpenStack. What do you think?


tags: added: feature-request
Revision history for this message
Ken Pepple (ken-pepple) wrote :


Don't take this as "don't do this", but more as "be careful how you handle this" ...

I intentionally left the "U" out the CRUD actions for instance_types/flavors due to the implications for billing and instance=>instance_type foreign key lookups. As instances can be quite long lived (many EC2 instances have been running for 1+ years), maintaining the integrity of the "launched instance_type" to current instance's instance_type mapping is pretty important. While it is a pain (to do the delete --purge and then create), it saves from some potentially tricky logical problems down the road ...

Perhaps as a compromise, could your update look like the "nova-manage instance_type update x1.large xxx xxx ..." and behind the covers it simply marks the current x1.large deleted and creates a new x1.large ? Not sure if this works for flavors (might be unique keys) ... but it would preserve the logic.

You can read more on the original blueprint for the feature (with use cases)

or my blog post:

Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Graham Hemingway (graham-hemingway) wrote :


Sorry I have been a bit out of touch on this issue. I am happy reflect your feedback. An alter that marks the original as deleted and adds in a new instance_type seems to meet all of my needs while maintaining the accounting aspects of instance types.

If no one else is working on this, I am happy to pick it up. That being said, next week is probably the earliest I can get started. Please let me know if you have any additional ideas or feedback.


Revision history for this message
Sean Dague (sdague) wrote :

This is very old and a wishlist item. If someone else wants to bring back the feature later they can.

Changed in nova:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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