How To Modify Flavors (Instance Types)

Asked by Graham Hemingway

My instance types are the default right now:

m1.medium: Memory: 4096MB, VCPUS: 2, Storage: 40GB, FlavorID: 3, Swap: 0GB, RXTX Quota: 0GB, RXTX Cap: 0MB
m1.large: Memory: 8192MB, VCPUS: 4, Storage: 80GB, FlavorID: 4, Swap: 0GB, RXTX Quota: 0GB, RXTX Cap: 0MB
m1.tiny: Memory: 512MB, VCPUS: 1, Storage: 0GB, FlavorID: 1, Swap: 0GB, RXTX Quota: 0GB, RXTX Cap: 0MB
m1.xlarge: Memory: 16384MB, VCPUS: 8, Storage: 160GB, FlavorID: 5, Swap: 0GB, RXTX Quota: 0GB, RXTX Cap: 0MB
m1.small: Memory: 2048MB, VCPUS: 1, Storage: 20GB, FlavorID: 2, Swap: 0GB, RXTX Quota: 0GB, RXTX Cap: 0MB

I like this setup, but I want to tweak the memory and storage parameters a bit. Is there a nova-manage command to do this (other than "flavor delete" followed by "flavor create")? Can I just hack the DB table?

If not, can I put in an enhancement request for nova-manage to add an "alter" command to instance_type/flavor?

Cheers,
   Graham

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Everett Toews
Solved:
Last query:
Last reply:
Revision history for this message
Everett Toews (everett-toews) said :
#1

The command you're looking for is

nova-manage instance_type [create|delete|list]

Everett

On Sat, May 7, 2011 at 8:30 AM, Graham Hemingway <
<email address hidden>> wrote:

> New question #156423 on OpenStack Compute (nova):
> https://answers.launchpad.net/nova/+question/156423
>
> My instance types are the default right now:
>
> m1.medium: Memory: 4096MB, VCPUS: 2, Storage: 40GB, FlavorID: 3, Swap: 0GB,
> RXTX Quota: 0GB, RXTX Cap: 0MB
> m1.large: Memory: 8192MB, VCPUS: 4, Storage: 80GB, FlavorID: 4, Swap: 0GB,
> RXTX Quota: 0GB, RXTX Cap: 0MB
> m1.tiny: Memory: 512MB, VCPUS: 1, Storage: 0GB, FlavorID: 1, Swap: 0GB,
> RXTX Quota: 0GB, RXTX Cap: 0MB
> m1.xlarge: Memory: 16384MB, VCPUS: 8, Storage: 160GB, FlavorID: 5, Swap:
> 0GB, RXTX Quota: 0GB, RXTX Cap: 0MB
> m1.small: Memory: 2048MB, VCPUS: 1, Storage: 20GB, FlavorID: 2, Swap: 0GB,
> RXTX Quota: 0GB, RXTX Cap: 0MB
>
> I like this setup, but I want to tweak the memory and storage parameters a
> bit. Is there a nova-manage command to do this (other than "flavor delete"
> followed by "flavor create")? Can I just hack the DB table?
>
> If not, can I put in an enhancement request for nova-manage to add an
> "alter" command to instance_type/flavor?
>
> Cheers,
> Graham
>
> --
> You received this question notification because you are an answer
> contact for OpenStack Compute (nova).
>

Revision history for this message
Graham Hemingway (graham-hemingway) said :
#2

Everett,

Thanks for the answer, but I am looking for something a bit different than just [create|delete|list]. How do I alter an existing instance type?

1) Should I just delete then create?
2) Can I manually alter the DB table?
3) Could we add an "alter" or "update" command to nova-manage instance_type?

Thanks,
   Graham

Revision history for this message
Best Everett Toews (everett-toews) said :
#3

1) Yes. That's probably the easiest/safest thing to do.
2) Yes.
3) I'd suggest adding a "bug" to https://bugs.launchpad.net/nova with the
tag "feature-request".

Everett

On Sat, May 7, 2011 at 9:15 AM, Graham Hemingway <
<email address hidden>> wrote:

> Question #156423 on OpenStack Compute (nova) changed:
> https://answers.launchpad.net/nova/+question/156423
>
> Status: Answered => Open
>
> Graham Hemingway is still having a problem:
> Everett,
>
> Thanks for the answer, but I am looking for something a bit different
> than just [create|delete|list]. How do I alter an existing instance
> type?
>
> 1) Should I just delete then create?
> 2) Can I manually alter the DB table?
> 3) Could we add an "alter" or "update" command to nova-manage
> instance_type?
>
> Thanks,
> Graham
>
> --
> You received this question notification because you are an answer
> contact for OpenStack Compute (nova).
>

Revision history for this message
Graham Hemingway (graham-hemingway) said :
#4

Thanks Everett. I hope to work on this enhancement myself.
Cheers,
   Graham

Revision history for this message
Graham Hemingway (graham-hemingway) said :
#5

Thanks Everett Toews, that solved my question.

Revision history for this message
Swati Sharma (swati-shukla1) said :
#6

Hi Graham,

Did you get a chance to work on this 'alter' feature??