Ask Your Question
0

resize server error

asked 2012-11-16 22:17:40 -0500

dimas-zakky gravatar image

I installed openstack (Essex) with singel node

I have running instance with id 75198f07-e377-4b6d-9dbf-ab5021df1e0f (flavor tiny.m1)

when I tried to resize with : nova --debug resize 75198f07-e377-4b6d-9dbf-ab5021df1e0f 2 its not reporting error

but when I tried to confirmed it, with : nova --debug resize-confirm 75198f07-e377-4b6d-9dbf-ab5021df1e0f its get error : Instance is in an invalid state for 'confirmResize' (HTTP 409)

in nova.conf I added flag : --allow_resize_same_host = true

where was the wrong :???

thanks for advice :??

edit retag flag offensive close merge delete

6 answers

Sort by ยป oldest newest most voted
0

answered 2012-11-21 13:14:25 -0500

dimas-zakky gravatar image

thanks i will checking now

edit flag offensive delete link more
0

answered 2012-11-21 07:25:23 -0500

Hi, I would suggest check your nova-compute logs for some error. Also, you can check nova-scheduler logs to see if the VM was schedule to the compute node. Can you ssh your machine?

Belmiro

edit flag offensive delete link more
0

answered 2012-11-21 14:44:19 -0500

dimas-zakky gravatar image

this is the nova-scheduler.log when I execute resize command : 2012-11-21 21:37:12 DEBUG nova.rpc.amqp [-] received {u'_context_roles': [u'admin', u'KeystoneAdmin', u'KeystoneServiceAdmin'], u'_context_request_id': u'req-7c9c047d-acee-427e-8510-e3c09f5beb54', u'_context_read_deleted': u'no', u'args': {u'instance_uuid': u'9911a8d0-efaa-4514-84a1-18d844aca1e3', u'request_spec': {u'instance_properties': {u'vm_state': u'active', u'availability_zone': None, u'terminated_at': None, u'ephemeral_gb': 0, u'instance_type_id': 2, u'user_data': u'YXNkYXM=', u'vm_mode': None, u'deleted_at': None, u'reservation_id': u'r-1vkx0ca1', u'id': 1, u'security_groups': [{u'deleted_at': None, u'user_id': u'fdc08baa51394080953e3b2a1d03c0a0', u'name': u'default', u'deleted': False, u'created_at': u'2012-11-21 21:25:30', u'updated_at': None, u'rules': [], u'project_id': u'd4ef3920a3d94cfa8c3c4374aa675e33', u'id': 1, u'description': u'default'}], u'disable_terminate': False, u'root_device_name': u'/dev/vda', u'user_id': u'fdc08baa51394080953e3b2a1d03c0a0', u'uuid': u'9911a8d0-efaa-4514-84a1-18d844aca1e3', u'server_name': None, u'default_swap_device': None, u'info_cache': {u'deleted': False, u'created_at': u'2012-11-21 21:25:36', u'updated_at': u'2012-11-21 21:25:44', u'instance_id': u'9911a8d0-efaa-4514-84a1-18d844aca1e3', u'network_info': u'[{"network": {"bridge": "br100", "subnets": [{"ips": [{"meta": {}, "version": 4, "type": "fixed", "floating_ips": [], "address": "10.0.0.2"}], "version": 4, "meta": {"dhcp_server": "10.0.0.1"}, "dns": [{"meta": {}, "version": 4, "type": "dns", "address": "8.8.8.8"}, {"meta": {}, "version": 4, "type": "dns", "address": "8.8.4.4"}], "routes": [], "cidr": "10.0.0.0/24", "gateway": {"meta": {}, "version": 4, "type": "gateway", "address": "10.0.0.1"}}, {"ips": [], "version": null, "meta": {"dhcp_server": null}, "dns": [], "routes": [], "cidr": null, "gateway": {"meta": {}, "version": null, "type": "gateway", "address": null}}], "meta": {"tenant_id": null, "should_create_bridge": true, "bridge_interface": "dummy0"}, "id": "d2ea86aa-b433-467f-89d7-c748779fa63c", "label": "service"}, "meta": {}, "id": "cbe35204-cfeb-4f4f-84ae-d4fad3e9f923", "address": "fa:16:3e:6c:ac:f4"}]', u'deleted_at': None, u'id': 1}, u'hostname': u'dsa', u'launched_on': u'nova-controller', u'display_description': u'dsa', u'key_data': None, u'kernel_id': u'8ffb78cc-6963-4686-be83-b8dd66f43e81', u'config_drive': u'', u'power_state': 1, u'default_ephemeral_device': None, u'progress': 0, u'project_id': u'd4ef3920a3d94cfa8c3c4374aa675e33', u'launched_at': u'2012-11-21 21:25:57', u'scheduled_at': u'2012-11-21 21:25:37', u'ramdisk_id': u'', u'access_ip_v6': None, u'access_ip_v4': None, u'deleted': False, u'key_name': None, u'updated_at': u'2012-11-21 21:25:57', u'host': u'nova-controller', u'display_name': u'dsa', u'task_state': None, u'shutdown_terminate': True, u'cell_name': None, u'root_gb': 0, u'locked': False, u'name': u'instance-00000001', u'created_at': u'2012-11-21 21:25:36', u'launch_index': 0, u'memory_mb': 512, u'instance_type': {u'root_gb': 0, u'deleted_at': None, u'name': u'm1.tiny', u'deleted': False, u'created_at': None, u'ephemeral_gb': 0, u'updated_at': None, u'memory_mb': 512, u'vcpus': 1, u'swap': 0, u'rxtx_factor': 1.0, u'flavorid': u'1', u'vcpu_weight': None, u'id': 2}, u'vcpus': 1, u'image_ref': u'f2e354be-e75b-428f-a39f-256160b195fc', u'architecture': None, u'volumes': [], u'auto_disk_config': None, u'os_type': None, u'metadata': []}, u'instance_type': {u'root_gb': 1, u'name': u'asd', u'flavorid': u'6', u'deleted': False, u'created_at': u'2012-11-21 21:25:57', u'ephemeral_gb': 1, u'updated_at': None, u'memory_mb': 521, u'vcpus': 2, u'extra_specs': {}, u'swap': 0, u'rxtx_factor': 1.0, u'deleted_at': None, u ... (more)

edit flag offensive delete link more
0

answered 2012-11-20 10:12:33 -0500

dimas-zakky gravatar image

somebody help me :(

edit flag offensive delete link more
0

answered 2012-11-21 15:07:30 -0500

dimas-zakky gravatar image

the log above is because I'm not adding : allow_resize_to_same_host=True in nova.conf

after i tried to add : allow_resize_to_same_host=True i got an error :

2012-11-21 21:53:35 TRACE nova.rpc.amqp Traceback (most recent call last): 2012-11-21 21:53:35 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 253, in _process_data 2012-11-21 21:53:35 TRACE nova.rpc.amqp rval = node_func(context=ctxt, *node_args) 2012-11-21 21:53:35 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped 2012-11-21 21:53:35 TRACE nova.rpc.amqp return f(args, *kw) 2012-11-21 21:53:35 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 159, in decorated_function 2012-11-21 21:53:35 TRACE nova.rpc.amqp function(self, context, instance_uuid, *args, *kwargs) 2012-11-21 21:53:35 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 183, in decorated_function 2012-11-21 21:53:35 TRACE nova.rpc.amqp sys.exc_info()) 2012-11-21 21:53:35 TRACE nova.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__ 2012-11-21 21:53:35 TRACE nova.rpc.amqp self.gen.next() 2012-11-21 21:53:35 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 177, in decorated_function 2012-11-21 21:53:35 TRACE nova.rpc.amqp return function(self, context, instance_uuid, args, *kwargs) 2012-11-21 21:53:35 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1300, in prep_resize 2012-11-21 21:53:35 TRACE nova.rpc.amqp raise exception.MigrationError(msg) 2012-11-21 21:53:35 TRACE nova.rpc.amqp MigrationError: destination same as source! 2012-11-21 21:53:35 TRACE nova.rpc.amqp

I found that in nova-compute.log

explain me that

edit flag offensive delete link more
0

answered 2012-11-21 16:13:12 -0500

dimas-zakky gravatar image

ohhhhh thanks God

the FLAGS allow_resize_to_same_host=True is have to add to both nova.conf and nova-api.conf in explain in http://docs.openstack.org/trunk/openstack-compute/admin/content/configuring-openstack-compute-basics.html (http://docs.openstack.org/trunk/opens...)

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-11-16 22:17:40 -0500

Seen: 226 times

Last updated: Nov 21 '12