[Openstack] Does "nova resize" work for decreasing the server size?
Danny Choi (dannchoi)
dannchoi at cisco.com
Fri Aug 29 19:03:59 UTC 2014
Hi,
“nova resize” works for increasing the server size by changing its flavor.
However, it does not seem to work for decreasing the size.
Should it works? What’s confusing is that it reports “Server resizing is 100% complete/Finished”.
root at all-in-one:~# nova show cirros-1
+--------------------------------------+----------------------------------------------------------+
| Property | Value |
+--------------------------------------+----------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | all-in-one |
| OS-EXT-SRV-ATTR:hypervisor_hostname | all-in-one.cisco.com |
| OS-EXT-SRV-ATTR:instance_name | instance-00000003 |
| OS-EXT-STS:power_state | 1 |
| OS-EXT-STS:task_state | - |
| OS-EXT-STS:vm_state | active |
| OS-SRV-USG:launched_at | 2014-08-29T18:49:27.000000 |
| OS-SRV-USG:terminated_at | - |
| Private_Net10 network | 10.10.10.5 |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2014-08-29T18:43:18Z |
| flavor | m1.large (4) |
| hostId | 663a6984eb95f9f0250d4f3775c837bd325feaa2f9e77dbeb7a9d31c |
| id | bc0f6c40-e47b-4b8c-a73c-99ded1ce1b89 |
| image | cirros-0.3.2 (07a033dc-3dde-4d57-897c-1e0974bb1ddf) |
| key_name | - |
| metadata | {} |
| name | cirros-1 |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | default |
| status | ACTIVE |
| tenant_id | 70fe7c978d4240619783133dda920574 |
| updated | 2014-08-29T18:49:55Z |
| user_id | 923d9ed9427549edaf7a3cbce18bb3ec |
+--------------------------------------+----------------------------------------------------------+
root at all-in-one:~# nova resize cirros-1 3 --poll
Server resizing... 100% complete
Finished
root at all-in-one:~# nova list
+--------------------------------------+----------+--------+------------+-------------+--------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+----------+--------+------------+-------------+--------------------------+
| bc0f6c40-e47b-4b8c-a73c-99ded1ce1b89 | cirros-1 | ACTIVE | - | Running | Private_Net10=10.10.10.5 |
+--------------------------------------+----------+--------+------------+-------------+--------------------------+
root at all-in-one:~# nova resize-confirm cirros-1
ERROR: Cannot 'confirmResize' while instance is in vm_state active (HTTP 409) (Request-ID: req-9aed5cb6-c6ae-4369-aa14-7325fd5178ff)
root at all-in-one:~# nova show cirros-1
+--------------------------------------+----------------------------------------------------------+
| Property | Value |
+--------------------------------------+----------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | all-in-one |
| OS-EXT-SRV-ATTR:hypervisor_hostname | all-in-one.cisco.com |
| OS-EXT-SRV-ATTR:instance_name | instance-00000003 |
| OS-EXT-STS:power_state | 1 |
| OS-EXT-STS:task_state | - |
| OS-EXT-STS:vm_state | active |
| OS-SRV-USG:launched_at | 2014-08-29T18:49:27.000000 |
| OS-SRV-USG:terminated_at | - |
| Private_Net10 network | 10.10.10.5 |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2014-08-29T18:43:18Z |
| flavor | m1.large (4) |
| hostId | 663a6984eb95f9f0250d4f3775c837bd325feaa2f9e77dbeb7a9d31c |
| id | bc0f6c40-e47b-4b8c-a73c-99ded1ce1b89 |
| image | cirros-0.3.2 (07a033dc-3dde-4d57-897c-1e0974bb1ddf) |
| key_name | - |
| metadata | {} |
| name | cirros-1 |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | default |
| status | ACTIVE |
| tenant_id | 70fe7c978d4240619783133dda920574 |
| updated | 2014-08-29T18:50:18Z |
| user_id | 923d9ed9427549edaf7a3cbce18bb3ec |
+--------------------------------------+----------------------------------------------------------+
root at all-in-one:~#
Thanks,
Danny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140829/ea7bf791/attachment.html>
More information about the Openstack
mailing list