Compute node can't run instance [Please help]T T

asked 2013-01-14 07:15:47 -0500

sukpon3 gravatar image

Please help,I struck in the problem for a long time. My topology is Cloud controller : Public IP : 192.168.4.75 Private IP : 10.0.1.20 Installed package:all nova-package Compute node : Public IP : 192.168.4.72 Private IP : 10.0.1.19 Installed package:nova-compute,nova-network

Problem: can't launch instance in compute node ,error in Scheduling state but in cloud controller can launch instance perfectly.

root@devstack:~# nova-manage service list 2013-01-14 14:05:43 DEBUG nova.utils [req-deae5d4a-29eb-4751-ae19-6bc83f3dd7f3 None None] backend <module 'nova.db.sqlalchemy.api'="" from="" '="" usr="" lib="" python2.7="" dist-packages="" nova="" db="" sqlalchemy="" api.pyc'=""> from (pid=20913) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658 Binary Host Zone Status State Updated_At nova-compute devstack nova enabled :-) 2013-01-14 07:05:37 nova-cert devstack nova enabled :-) 2013-01-14 07:05:34 nova-consoleauth devstack nova enabled :-) 2013-01-14 07:05:34 nova-console devstack nova enabled :-) 2013-01-14 07:05:34 nova-scheduler devstack nova enabled :-) 2013-01-14 07:05:36 nova-volume devstack nova enabled XXX 2013-01-11 09:15:15 nova-network devstack nova enabled :-) 2013-01-14 07:05:33 nova-compute openstackagent nova enabled :-) 2013-01-14 07:05:41 nova-network openstackagent nova enabled XXX 2013-01-14 06:43:05

this is a log of compute node (Nova-compute) 2013-01-14 14:04:22 DEBUG nova.manager [-] Running periodic task ComputeManager._poll_unconfirmed_resizes from (pid=24366) periodic_tasks /usr/lib/python2.7/dist-packages/nova/manager.py:152 2013-01-14 14:04:24 DEBUG nova.rpc.amqp [-] received {u'_context_roles': [u'admin'], u'_context_request_id': u'req-5a86fbbe-f7d2-47dc-96ad-676d2603448c', u'_context_read_deleted': u'no', u'args': {u'instance_uuid': u'4a299e4d-20c6-43c2-9b0f-250449fa12d6', u'is_first_time': True, u'filter_properties': {u'scheduler_hints': {}}, u'admin_password': '<sanitized>', u'injected_files': [], u'requested_networks': None}, u'_context_auth_token': '<sanitized>', u'_context_is_admin': True, u'_context_project_id': u'c3ef27e67c304db7b1223bd7b745d105', u'_context_timestamp': u'2013-01-14T07:04:11.821966', u'_context_user_id': u'dc9d27f019124c66a8a979d5d17deaf7', u'method': u'run_instance', u'_context_remote_address': u'127.0.0.1'} from (pid=24366) _safe_log /usr/lib/python2.7/dist-packages/nova/rpc/common.py:160 2013-01-14 14:04:24 DEBUG nova.rpc.amqp [req-5a86fbbe-f7d2-47dc-96ad-676d2603448c dc9d27f019124c66a8a979d5d17deaf7 c3ef27e67c304db7b1223bd7b745d105] unpacked context: {'user_id': u'dc9d27f019124c66a8a979d5d17deaf7', 'roles': [u'admin'], 'timestamp': '2013-01-14T07:04:11.821966', 'auth_token': '<sanitized>', 'remote_address': u'127.0.0.1', 'is_admin': True, 'request_id': u'req-5a86fbbe-f7d2-47dc-96ad-676d2603448c', 'project_id': u'c3ef27e67c304db7b1223bd7b745d105', 'read_deleted': u'no'} from (pid=24366) _safe_log /usr/lib/python2.7/dist-packages/nova/rpc/common.py:160 2013-01-14 14:04:24 DEBUG nova.utils [req-5a86fbbe-f7d2-47dc-96ad-676d2603448c dc9d27f019124c66a8a979d5d17deaf7 c3ef27e67c304db7b1223bd7b745d105] Attempting to grab semaphore "4a299e4d-20c6-43c2-9b0f-250449fa12d6" for method "do_run_instance"... from (pid=24366) inner /usr/lib/python2.7/dist-packages/nova/utils.py:927 2013-01-14 14:04:24 DEBUG nova.utils [req-5a86fbbe-f7d2-47dc-96ad-676d2603448c dc9d27f019124c66a8a979d5d17deaf7 c3ef27e67c304db7b1223bd7b745d105] Got semaphore "4a299e4d-20c6-43c2-9b0f-250449fa12d6" for method "do_run_instance"... from (pid=24366) inner /usr/lib/python2.7/dist-packages/nova/utils.py:931 2013-01-14 14:04:31 ERROR nova.rpc.amqp [req-5a86fbbe-f7d2-47dc-96ad-676d2603448c dc9d27f019124c66a8a979d5d17deaf7 c3ef27e67c304db7b1223bd7b745d105] Exception during message handling 2013-01-14 14:04:31 TRACE nova.rpc.amqp Traceback (most recent call last): 2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 253, in _process_data 2013-01-14 14:04:31 TRACE nova.rpc.amqp rval = node_func(context=ctxt, *node_args) 2013-01-14 14:04:31 ... (more)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-01-15 18:13:32 -0500

keith-tobin gravatar image

I expect that you are using the following, can you confirm.

1) Ubuntu 12.04 2) Devstack with Folsom

Your problem is on the compute node, as per the warning.

You are missing the following from nova.conf from the compute node.

--root_helper=sudo nova-rootwrap

Have a look at the following for a little more info on root wrap.

http://wiki.openstack.org/Packager/Rootwrap (http://wiki.openstack.org/Packager/Ro...)

edit flag offensive delete link more
0

answered 2013-01-15 18:14:56 -0500

keith-tobin gravatar image

I expect that you are using the following, can you confirm.

1) Ubuntu 12.04 2) Devstack with Folsom

Your problem is on the compute node, as per the warning.

You are missing the following from nova.conf from the compute node.

--root_helper=sudo nova-rootwrap

Have a look at the following for a little more info on root wrap.

http://wiki.openstack.org/Packager/Rootwrap (http://wiki.openstack.org/Packager/Ro...)

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-01-14 07:15:47 -0500

Seen: 50 times

Last updated: Jan 15 '13