How to update flavor parameters

Bug #1180664 reported by swapk
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Opinion
Wishlist
Unassigned

Bug Description

I have created new flavors using rest API , but i have not found any API for updating the parameters of a flavor like vcpu ,memory,disk,etc.let me know how can i proceed regarding this.
I have ubuntu 12.10 and grizzle installed

Revision history for this message
Guangya Liu (Jay Lau) (jay-lau-513) wrote :

Hi swapk,

Can you describe your requirement more clear? Why do you want to update vcpu, memory and disk for a flavor? Can you create a new flavor instead?

Noe OpenStack only support update extra_spec for a flavor but cannot update vcpu, memory or disk.

Revision history for this message
swapk (sk90) wrote :

Hi jay Lau,

I need to update flavor in the scenario when multiple(batch) instance are created.so,once a flavor is created i need to update that flavor instead of creating new flavor each time.
Is it possible to extend the create api somehow to update flavor parameters

Revision history for this message
Guangya Liu (Jay Lau) (jay-lau-513) wrote :

Hi swapk,

Currently, we cannot extend the create api to update flavor parameters, we may want to add a new API to support this. Your requirement is more like a blueprint but not a bug, can you please file a blueprint?

Now we can only update flavor extra_spec but not vcpu, memory or disk.

Thanks,

Jay

Changed in nova:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Guangya Liu (Jay Lau) (jay-lau-513) wrote :

I have logged a blueprint to trace this, refer to https://blueprints.launchpad.net/nova/+spec/update-flavor. Thanks.

swapk (sk90)
information type: Public → Private Security
Thierry Carrez (ttx)
information type: Private Security → Public
Rohan (kanaderohan)
Changed in nova:
assignee: nobody → Rohan (kanaderohan)
Revision history for this message
swapk (sk90) wrote :

Hi Rohan,

I have already implemented this feature.

Rohan (kanaderohan)
Changed in nova:
assignee: Rohan (kanaderohan) → nobody
Changed in nova:
assignee: nobody → Santiago Baldassin (santiago-b-baldassin)
Revision history for this message
Santiago Baldassin (santiago-b-baldassin) wrote :

hey guys....was the blueprint implemented? if so...can you point me to the gerrit review. Thanks

Revision history for this message
Sandeep Kedari (sandy86299) wrote : Re: [Bug 1180664] Re: How to update flavor parameters

Hello Santiago,

We have implemented the blue print for flavor update. Regarding the code
gerrit review we would shortly update the code.

Thank you
On 12-Mar-2014 7:55 PM, "Santiago Baldassin" <email address hidden>
wrote:

> hey guys....was the blueprint implemented? if so...can you point me to
> the gerrit review. Thanks
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1180664
>
> Title:
> How to update flavor parameters
>
> Status in OpenStack Compute (Nova):
> Confirmed
>
> Bug description:
> I have created new flavors using rest API , but i have not found any API
> for updating the parameters of a flavor like vcpu ,memory,disk,etc.let me
> know how can i proceed regarding this.
> I have ubuntu 12.10 and grizzle installed
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/nova/+bug/1180664/+subscriptions
>

Changed in nova:
assignee: Santiago Baldassin (santiago-b-baldassin) → nobody
Sean Dague (sdague)
Changed in nova:
status: Confirmed → Invalid
Revision history for this message
Thiago Martins (martinx) wrote :

This is a very important feature! I need it! :-P

Revision history for this message
Abdul Rehman (an-abdulrehman) wrote :

I'm unable to find any command to update flavor parameters

Changed in nova:
status: Invalid → Confirmed
Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

This wishlist bug has been open a year without any activity. I'm going to move it to "Opinion / Wishlist", which is an easily-obtainable queue of older requests that have come on. This bug can be reopened (set back to "New") if someone decides to work on this.

NOTE:
Changing the vcpu, memory or disk of a flavor has a big impact. Imagine an OpenStack cloud where 1000 instances were launched with example flavor "A" (1 VCPU, 1GB memory). After that, we change this specific flavor "A" by increasing the amount of VCPUs from 1 to 2. This means all 1000 instances would need to be rebuild with 2 VCPUs. I doubt that this is the desired use case. To be honest, I don't understand the use case described in comment #2.
Nevertheless, Feature requests for nova are done with blueprints [1] and with specs [2]. I'll recommend to read [3] if not yet done. The effort to implement the requestedfeature is then driven only by the blueprint (and spec).

If there are any questions left, feel free to contact me (markus_z)
in the IRC channel #openstack-nova

[1] https://blueprints.launchpad.net/nova/
[2] https://github.com/openstack/nova-specs
[3] https://wiki.openstack.org/wiki/Blueprints

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

Other bug subscribers

Related blueprints

Remote bug watches

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