← Back to team overview

openstack team mailing list archive

Re: resize error (diablo)

 

It's set in your nova.conf.

From: Eugene Shih [mailto:eugene.shih@xxxxxxxxxx]
Sent: Thursday, November 17, 2011 3:29 PM
To: Smith, Adrian F
Cc: atkisc@xxxxxxxxx; openstack@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Openstack] resize error (diablo)

I have also encountered this error and I have two hosts.

However, I will try setting this flag. Is this flag set on the command line using the nova tool?

Thanks in advance,
Eugene

On Thu, Nov 17, 2011 at 3:26 AM, <Adrian_F_Smith@xxxxxxxx<mailto:Adrian_F_Smith@xxxxxxxx>> wrote:
The resize operation requires you have at least two hosts. Try setting the flag "allow_resize_to_same_host=true".

Adrian


From: openstack-bounces+adrian_f_smith=dell.com@xxxxxxxxxxxxxxxxxxx<mailto:dell.com@xxxxxxxxxxxxxxxxxxx> [mailto:openstack-bounces+adrian_f_smith<mailto:openstack-bounces%2Badrian_f_smith>=dell.com@xxxxxxxxxxxxxxxxxxx<mailto:dell.com@xxxxxxxxxxxxxxxxxxx>] On Behalf Of darkfower
Sent: Thursday, November 17, 2011 6:33 AM
To: openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
Subject: [Openstack] resize error (diablo)

first, i exec command :

nova --username admin --apikey gamewave --projectid admin --url http://192.168.1.2:5000/v2.0/ --version 1.1 --debug list

result as follow :

+----+------------+--------+-------------------------------------------------+
| ID |    Name    | Status |                     Networks                    |
+----+------------+--------+-------------------------------------------------+
| 1  | yanfaceshi | ACTIVE | private=10.0.0.2, 222.185.228.78, 112.82.246.78 |
| 7  | q          | ACTIVE | private=10.0.0.7                                |
+----+------------+--------+-------------------------------------------------+


second , i exec command :

nova --username admin --apikey gamewave --projectid admin --url http://192.168.1.2:5000/v2.0/ --version 1.1 --debug flavor-list


result as follow:

+----+---------------+-----------+------+----------+-------+------------+----------+
| ID |      Name     | Memory_MB | Swap | Local_GB | VCPUs | RXTX_Quota | RXTX_Cap |
+----+---------------+-----------+------+----------+-------+------------+----------+
| 0  | x1.4U-8G-146G | 8192      | 0    | 146      | 4     | 0          | 0        |
| 1  | m1.tiny       | 512       | 0    | 0        | 1     | 0          | 0        |
| 2  | m1.small      | 2048      | 0    | 20       | 1     | 0          | 0        |
| 3  | m1.medium     | 4096      | 0    | 40       | 2     | 0          | 0        |
| 4  | m1.large      | 8192      | 0    | 80       | 4     | 0          | 0        |
| 5  | m1.xlarge     | 16384     | 0    | 160      | 8     | 0          | 0        |
+----+---------------+-----------+------+----------+-------+------------+----------+


when i exec resize command :

nova --username admin --apikey gamewave --projectid admin --url http://192.168.1.2:5000/v2.0/ --version 1.1 --debug resize q m1.small

error :

2011-11-17 14:32:20,763 DEBUG nova.rpc [-] received {u'_context_roles': [u'Admin', u'Admin', u'KeystoneAdmin', u'KeystoneServiceAdmin'], u'_context_request_id': u'10e02034-2c02-4702-af0d-966eab614b11', u'_context_read_deleted': False, u'args': {u'instance_id': u'a831277c-fae4-407f-af67-9bf672885e44', u'instance_type_id': 5}, u'_context_auth_token': u'ee56dcd8ff2ef8e02001', u'_context_strategy': u'keystone', u'_context_is_admin': True, u'_context_project_id': u'1', u'_context_timestamp': u'2011-11-17T06:32:20.408549', u'_context_user_id': u'admin', u'method': u'prep_resize', u'_context_remote_address': u'192.168.1.2'} from (pid=17797) __call__ /usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py:600
2011-11-17 14:32:20,763 DEBUG nova.rpc [-] unpacked context: {'user_id': u'admin', 'roles': [u'Admin', u'Admin', u'KeystoneAdmin', u'KeystoneServiceAdmin'], 'timestamp': u'2011-11-17T06:32:20.408549', 'auth_token': u'ee56dcd8ff2ef8e02001', 'msg_id': None, 'remote_address': u'192.168.1.2', 'strategy': u'keystone', 'is_admin': True, 'request_id': u'10e02034-2c02-4702-af0d-966eab614b11', 'project_id': u'1', 'read_deleted': False} from (pid=17797) _unpack_context /usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py:646
2011-11-17 14:32:20,764 INFO nova.compute.manager [10e02034-2c02-4702-af0d-966eab614b11 admin 1] check_instance_lock: decorating: |<function prep_resize at 0x1f5ea28>|
2011-11-17 14:32:20,765 INFO nova.compute.manager [10e02034-2c02-4702-af0d-966eab614b11 admin 1] check_instance_lock: arguments: |<nova.compute.manager.ComputeManager object at 0x1815650>| |<nova.rpc.impl_kombu.RpcContext object at 0x3e29ad0>| |a831277c-fae4-407f-af67-9bf672885e44|
2011-11-17 14:32:20,765 DEBUG nova.compute.manager [10e02034-2c02-4702-af0d-966eab614b11 admin 1] instance a831277c-fae4-407f-af67-9bf672885e44: getting locked state from (pid=17797) get_lock /usr/lib/python2.7/dist-packages/nova/compute/manager.py:1165
2011-11-17 14:32:21,018 INFO nova.compute.manager [10e02034-2c02-4702-af0d-966eab614b11 admin 1] check_instance_lock: locked: |False|
2011-11-17 14:32:21,018 INFO nova.compute.manager [10e02034-2c02-4702-af0d-966eab614b11 admin 1] check_instance_lock: admin: |True|
2011-11-17 14:32:21,018 INFO nova.compute.manager [10e02034-2c02-4702-af0d-966eab614b11 admin 1] check_instance_lock: executing: |<function prep_resize at 0x1f5ea28>|
2011-11-17 14:32:21,667 ERROR nova.rpc [-] Exception during message handling
(nova.rpc): TRACE: Traceback (most recent call last):
(nova.rpc): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 620, in _process_data
(nova.rpc): TRACE:     rval = node_func(context=ctxt, **node_args)
(nova.rpc): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 98, in wrapped
(nova.rpc): TRACE:     return f(*args, **kw)
(nova.rpc): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 117, in decorated_function
(nova.rpc): TRACE:     function(self, context, instance_id, *args, **kwargs)
(nova.rpc): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 931, in prep_resize
(nova.rpc): TRACE:     raise exception.Error(msg)
(nova.rpc): TRACE: Error: Migration error: destination same as source!
(nova.rpc): TRACE:


_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Follow ups

References