Ask Your Question
1

RDO/Havana: Can't resize instance

asked 2013-09-16 14:08:48 -0500

holms gravatar image

updated 2013-12-09 08:51:36 -0500

sgordon gravatar image

I'm trying to resize my instance using this guide: http://docs.openstack.org/user-guide/content/nova_cli_resize.html

[root@rdo images(keystone_admin)]# nova flavor-list
+--------------------------------------+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| ID                                   | Name      | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+--------------------------------------+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| 3                                    | m1.medium | 4096      | 40   | 0         |      | 2     | 1.0         | True      |
| 4                                    | m1.large  | 8192      | 80   | 0         |      | 4     | 1.0         | True      |
| 6180c0cc-e20c-421f-8c4e-5a9773def3c6 | m1.small  | 2048      | 20   | 0         |      | 2     | 1.0         | True      |
| ba94fe3f-343e-4860-ae3d-fc5ab36f5ec2 | m2.small  | 2096      | 10   | 0         | 1000 | 4     | 1.0         | True      |
| c3559316-bd1f-42cf-aea7-bf2c0bf4eafb | m1.tiny   | 1024      | 10   | 0         | 400  | 1     | 1.0         | True      |
+--------------------------------------+-----------+-----------+------+-----------+------+-------+-------------+-----------+

[root@rdo images(keystone_admin)]# nova list   
+--------------------------------------+-------------+--------+------------+-------------+------------------------------------------+
| ID                                   | Name        | Status | Task State | Power State | Networks                                 |
+--------------------------------------+-------------+--------+------------+-------------+------------------------------------------+
| 807cb5df-75b1-49a2-b496-bc8015865c7e | pd-prod-old | ACTIVE | None       | Running     | novanetwork=192.168.32.5 |
+--------------------------------------+-------------+--------+------------+-------------+------------------------------------------+

[root@rdo images(keystone_admin)]# nova resize pd-prod-old  ba94fe3f-343e-4860-ae3d-fc5ab36f5ec2 --poll
Instance resizing... 100% complete
Finished

After this status should be RESIZE, and it's not, it's still active...

[root@rdo images(keystone_admin)]# nova list   
+--------------------------------------+-------------+--------+------------+-------------+------------------------------------------+
| ID                                   | Name        | Status | Task State | Power State | Networks                                 |
+--------------------------------------+-------------+--------+------------+-------------+------------------------------------------+
| 807cb5df-75b1-49a2-b496-bc8015865c7e | pd-prod-old | ACTIVE | None       | Running     | novanetwork=192.168.32.5 |
+--------------------------------------+-------------+--------+------------+-------------+------------------------------------------+
edit retag flag offensive close merge delete

Comments

sorry for scrambled quotes, but if you know how to put this information better please tell me

holms gravatar imageholms ( 2013-09-16 14:09:37 -0500 )edit

3 answers

Sort by ยป oldest newest most voted
3

answered 2013-12-09 05:37:57 -0500

Ashokb gravatar image

updated 2013-12-09 08:48:33 -0500

sgordon gravatar image

allow_resize_to_same_host=true and allow_migrate_to_same_host=true.These settings need to be there in nova.conf of the compute node as well

edit flag offensive delete link more
1

answered 2013-12-09 04:28:57 -0500

Kunal Patil gravatar image

updated 2013-12-09 08:47:31 -0500

sgordon gravatar image

I also have RDO/Havana on 64 bit machines with a controller node and a compute node. I tried resizing an instance, in both Running and Shutdown state. I tried this from the cli as well as horizon. Both times, I was able to locate the error in the logs:

"MigrationError(msg)\\n", "updated_at": "2013-12-09T10:13:34.773808", "id": 417, "finish_time": "2013-12-09T10:13:39.542276", "result": "Error", "request_id": "req-b0a0600d-7695-4661-b471-be23f2b8d064", "message": "destination same as source!","

As per some forums, I tried setting the following in /etc/nova/nova.conf and restarting nova services,

allow_resize_to_same_host=true
allow_migrate_to_same_host=true

but no luck. The instance goes into ERROR state, but loses it once I reboot it.

Does KVM support Resize? I can see from Hypervisor Support Matrix that KVM on x86 does support resize, but what about 64 bit machines? What am I missing in the configuration if Resize operation is supported?

Thanks.

edit flag offensive delete link more

Comments

You are absolutely right. I missed making the same change on the compute node. Thanks a million.

Kunal Patil gravatar imageKunal Patil ( 2013-12-09 06:15:55 -0500 )edit
1

it would be good if you can accept this answer so that others could benefit it

Ashokb gravatar imageAshokb ( 2013-12-09 06:20:27 -0500 )edit

Your previous answer was for someone else's question. I have +1 ed it, but could not accept it as an answer. I have +1 ed your comment here instead.

Kunal Patil gravatar imageKunal Patil ( 2013-12-09 06:23:58 -0500 )edit

have you solved your problem?I have changed the configuration of controller and compute node at the /etc/nova/nova.conf,but I can't resize the instance always.what will i do?

shengchao liu gravatar imageshengchao liu ( 2014-06-23 19:33:13 -0500 )edit
1

answered 2014-06-23 09:14:41 -0500

shengchao liu gravatar image

I face the problem too,what will i do?

edit flag offensive delete link more

Comments

Please raise the question if above solution doesn't apply to your problem.

SGPJ gravatar imageSGPJ ( 2014-06-23 12:22:04 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-09-16 14:08:48 -0500

Seen: 1,504 times

Last updated: Jun 23 '14