Comment 4 for bug 1456196

Revision history for this message
Noel Nelson Dsouza (noelnelson) wrote : Re: [Bug 1456196] Re: Delete flavor should raise error, if it is inuse (any existing vms booted with this flavor)

*I am not working on that. I have provided the patch for some other bug,
that should be solution this bug also.. *

On Mon, Jun 15, 2015 at 3:21 PM, Harshada Mangesh Kakad <
<email address hidden>> wrote:

> Are you working on this bug Bhavaniprasad else I would like to pick
> this.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1456196
>
> Title:
> Delete flavor should raise error, if it is inuse (any existing vms
> booted with this flavor)
>
> Status in OpenStack Compute (Nova):
> Confirmed
>
> Bug description:
> Version : Juno Devstack
>
> Steps to reproduce.
>
> Step1 : Create an instance with m1.tiny flavor.
>
> stack@onecloud-Standard-PC-i440FX-PIIX-1996:~/nova/nova/compute$ nova
> boot --image cirros-0.3.4-x86_64-uec --flavor m1.tiny vm1
>
>
> +--------------------------------------+----------------------------------------------------------------+
> | Property | Value
> |
>
> +--------------------------------------+----------------------------------------------------------------+
> | OS-DCF:diskConfig | MANUAL
> |
> | OS-EXT-AZ:availability_zone | nova
> |
> | OS-EXT-SRV-ATTR:host | -
> |
> | OS-EXT-SRV-ATTR:hypervisor_hostname | -
> |
> | OS-EXT-SRV-ATTR:instance_name | instance-00000006
> |
> | OS-EXT-STS:power_state | 0
> |
> | OS-EXT-STS:task_state | scheduling
> |
> | OS-EXT-STS:vm_state | building
> |
> | OS-SRV-USG:launched_at | -
> |
> | OS-SRV-USG:terminated_at | -
> |
> | accessIPv4 |
> |
> | accessIPv6 |
> |
> | adminPass | Uaypcj6qKzbr
> |
> | config_drive |
> |
> | created | 2015-05-18T12:38:25Z
> |
> | flavor | m1.tiny (6)
> |
> | hostId |
> |
> | id |
> 7b4fdada-6900-4836-9de7-3bda0f13dabf |
> | image | cirros-0.3.4-x86_64-uec
> (a49af497-e336-4c5a-8508-6dabb70fe261) |
> | key_name | -
> |
> | metadata | {}
> |
> | name | vm1
> |
> | os-extended-volumes:volumes_attached | []
> |
> | progress | 0
> |
> | security_groups | default
> |
> | status | BUILD
> |
> | tenant_id |
> d5a7933dfa98430abf7fcc37ff2661b1 |
> | updated | 2015-05-18T12:38:26Z
> |
> | user_id |
> a20aaf87a4344985ae17e378065858ed |
>
> +--------------------------------------+----------------------------------------------------------------+
>
> Before deleting flavor please note the above output.
>
> Step 2: Once instance gets active delete the m1.tiny flavor.
>
> stack@onecloud-Standard-PC-i440FX-PIIX-1996:~/nova/nova/compute$ nova
> flavor-delete m1.tiny
>
> +----+------+-----------+------+-----------+------+-------+-------------+-----------+
> | ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor
> | Is_Public |
>
> +----+------+-----------+------+-----------+------+-------+-------------+-----------+
> | 6 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0
> | True |
>
> +----+------+-----------+------+-----------+------+-------+-------------+-----------+
>
> Step 3 : Nova show vmname after deleting the flavor.
>
> stack@onecloud-Standard-PC-i440FX-PIIX-1996:~/nova/nova/compute$ nova
> show vm1
>
> +--------------------------------------+----------------------------------------------------------------+
> | Property | Value
> |
>
> +--------------------------------------+----------------------------------------------------------------+
> | OS-DCF:diskConfig | MANUAL
> |
> | OS-EXT-AZ:availability_zone | nova
> |
> | OS-EXT-SRV-ATTR:host |
> onecloud-Standard-PC-i440FX-PIIX-1996 |
> | OS-EXT-SRV-ATTR:hypervisor_hostname |
> onecloud-Standard-PC-i440FX-PIIX-1996 |
> | OS-EXT-SRV-ATTR:instance_name | instance-00000006
> |
> | OS-EXT-STS:power_state | 1
> |
> | OS-EXT-STS:task_state | -
> |
> | OS-EXT-STS:vm_state | active
> |
> | OS-SRV-USG:launched_at | 2015-05-18T12:38:30.000000
> |
> | OS-SRV-USG:terminated_at | -
> |
> | accessIPv4 |
> |
> | accessIPv6 |
> |
> | config_drive | True
> |
> | created | 2015-05-18T12:38:25Z
> |
> | flavor | m1.tiny (6)
> |
> | hostId |
> b2f6e09e63c5ae998e9ad50cca85ac7ba506cee9159da4418e8893de |
> | id |
> 7b4fdada-6900-4836-9de7-3bda0f13dabf |
> | image | cirros-0.3.4-x86_64-uec
> (a49af497-e336-4c5a-8508-6dabb70fe261) |
> | key_name | -
> |
> | metadata | {}
> |
> | name | vm1
> |
> | os-extended-volumes:volumes_attached | []
> |
> | private network | 10.0.0.2
> |
> | progress | 0
> |
> | security_groups | default
> |
> | status | ACTIVE
> |
> | tenant_id |
> d5a7933dfa98430abf7fcc37ff2661b1 |
> | updated | 2015-05-18T12:38:31Z
> |
> | user_id |
> a20aaf87a4344985ae17e378065858ed |
>
> +--------------------------------------+----------------------------------------------------------------+
>
> Please note after deleting flavor, nova show command output above.
>
> flavor -- m1.tiny (6) still displaying the same before and after.
>
> Regards
> Noel
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/nova/+bug/1456196/+subscriptions
>