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

Asked by sakpon on 2013-01-14

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 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped
2013-01-14 14:04:31 TRACE nova.rpc.amqp return f(*args, **kw)
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 183, in decorated_function
2013-01-14 14:04:31 TRACE nova.rpc.amqp sys.exc_info())
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2013-01-14 14:04:31 TRACE nova.rpc.amqp self.gen.next()
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 177, in decorated_function
2013-01-14 14:04:31 TRACE nova.rpc.amqp return function(self, context, instance_uuid, *args, **kwargs)
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 676, in run_instance
2013-01-14 14:04:31 TRACE nova.rpc.amqp do_run_instance()
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 945, in inner
2013-01-14 14:04:31 TRACE nova.rpc.amqp retval = f(*args, **kwargs)
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 675, in do_run_instance
2013-01-14 14:04:31 TRACE nova.rpc.amqp self._run_instance(context, instance_uuid, **kwargs)
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 476, in _run_instance
2013-01-14 14:04:31 TRACE nova.rpc.amqp self._set_instance_error_state(context, instance_uuid)
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2013-01-14 14:04:31 TRACE nova.rpc.amqp self.gen.next()
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 445, in _run_instance
2013-01-14 14:04:31 TRACE nova.rpc.amqp image_meta = self._check_image_size(context, instance)
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 523, in _check_image_size
2013-01-14 14:04:31 TRACE nova.rpc.amqp image_meta = _get_image_meta(context, instance['image_ref'])
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 190, in _get_image_meta
2013-01-14 14:04:31 TRACE nova.rpc.amqp return image_service.show(context, image_id)
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 241, in show
2013-01-14 14:04:31 TRACE nova.rpc.amqp _reraise_translated_image_exception(image_id)
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 239, in show
2013-01-14 14:04:31 TRACE nova.rpc.amqp image_id)
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 145, in _call_retry
2013-01-14 14:04:31 TRACE nova.rpc.amqp return getattr(client, name)(*args, **kwargs)
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/glance/client.py", line 101, in get_image_meta
2013-01-14 14:04:31 TRACE nova.rpc.amqp res = self.do_request("HEAD", "/images/%s" % image_id)
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 61, in wrapped
2013-01-14 14:04:31 TRACE nova.rpc.amqp return func(self, *args, **kwargs)
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 420, in do_request
2013-01-14 14:04:31 TRACE nova.rpc.amqp headers=headers)
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 75, in wrapped
2013-01-14 14:04:31 TRACE nova.rpc.amqp return func(self, method, url, body, headers)
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 539, in _do_request
2013-01-14 14:04:31 TRACE nova.rpc.amqp raise exception.NotAuthenticated(res.read())
2013-01-14 14:04:31 TRACE nova.rpc.amqp ImageNotAuthorized: Not authorized for image 31a54d1b-711b-4e10-ac4f-a7d2325a9078.
2013-01-14 14:04:31 TRACE nova.rpc.amqp
2013-01-14 14:05:22 DEBUG nova.manager [-] Running periodic task ComputeManager._publish_service_capabilities from (pid=24366) periodic_tasks /usr/lib/python2.7/dist-packages/nova/manager.py:152
2013-01-14 14:05:22 DEBUG nova.manager [-] Notifying Schedulers of capabilities ... from (pid=24366) _publish_service_capabilities /usr/lib/python2.7/dist-packages/nova/manager.py:203
2013-01-14 14:05:22 DEBUG nova.rpc.amqp [-] Making asynchronous fanout cast... from (pid=24366) fanout_cast /usr/lib/python2.7/dist-packages/nova/rpc/amqp.py:359
2013-01-14 14:05:23 DEBUG nova.manager [-] Running periodic task ComputeManager._poll_rescued_instances from (pid=24366) periodic_tasks /usr/lib/python2.7/dist-packages/nova/manager.py:152
2013-01-14 14:05:23 DEBUG nova.manager [-] Skipping ComputeManager._sync_power_states, 7 ticks left until next run from (pid=24366) periodic_tasks /usr/lib/python2.7/dist-packages/nova/manager.py:147
2013-01-14 14:05:23 DEBUG nova.manager [-] Running periodic task ComputeManager._poll_bandwidth_usage from (pid=24366) periodic_tasks /usr/lib/python2.7/dist-packages/nova/manager.py:152
2013-01-14 14:05:23 DEBUG nova.manager [-] Running periodic task ComputeManager.update_available_resource from (pid=24366) periodic_tasks /usr/lib/python2.7/dist-packages/nova/manager.py:152
2013-01-14 14:05:28 INFO nova.virt.libvirt.connection [-] Compute_service record updated for openstackagent
2013-01-14 14:05:29 DEBUG nova.manager [-] Running periodic task ComputeManager._poll_rebooting_instances from (pid=24366) periodic_tasks /usr/lib/python2.7/dist-packages/nova/manager.py:152
2013-01-14 14:05:29 DEBUG nova.manager [-] Skipping ComputeManager._cleanup_running_deleted_instances, 27 ticks left until next run from (pid=24366) periodic_tasks /usr/lib/python2.7/dist-packages/nova/manager.py:147
2013-01-14 14:05:29 DEBUG nova.manager [-] Running periodic task ComputeManager._heal_instance_info_cache from (pid=24366) periodic_tasks /usr/lib/python2.7/dist-packages/nova/manager.py:152
2013-01-14 14:05:29 DEBUG nova.rpc.amqp [-] Making asynchronous call on network ... from (pid=24366) multicall /usr/lib/python2.7/dist-packages/nova/rpc/amqp.py:326
2013-01-14 14:05:29 DEBUG nova.rpc.amqp [-] MSG_ID is ce3ad34366fa4c5080cd42322ee8ea2b from (pid=24366) multicall /usr/lib/python2.7/dist-packages/nova/rpc/amqp.py:329
2013-01-14 14:05:29 DEBUG nova.compute.manager [-] Updated the info_cache for instance c0672bc6-216c-45c8-8c1b-e3469446ab12 from (pid=24366) _heal_instance_info_cache /usr/lib/python2.7/dist-packages/nova/compute/manager.py:2256
2013-01-14 14:05:29 DEBUG nova.manager [-] Skipping ComputeManager._run_image_cache_manager_pass, 37 ticks left until next run from (pid=24366) periodic_tasks /usr/lib/python2.7/dist-packages/nova/manager.py:147
2013-01-14 14:05:29 DEBUG nova.manager [-] Running periodic task ComputeManager._reclaim_queued_deletes from (pid=24366) periodic_tasks /usr/lib/python2.7/dist-packages/nova/manager.py:152
2013-01-14 14:05:29 DEBUG nova.compute.manager [-] FLAGS.reclaim_instance_interval <= 0, skipping... from (pid=24366) _reclaim_queued_deletes /usr/lib/python2.7/dist-packages/nova/compute/manager.py:2409
2013-01-14 14:05:29 DEBUG nova.manager [-] Running periodic task ComputeManager._report_driver_status from (pid=24366) periodic_tasks /usr/lib/python2.7/dist-packages/nova/manager.py:152
2013-01-14 14:05:29 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:06:29 DEBUG nova.manager [-] Running periodic task ComputeManager._publish_service_capabilities from (pid=24366) periodic_tasks /usr/lib/python2.7/dist-packages/nova/manager.py:152
2013-01-14 14:06:29 DEBUG nova.manager [-] Notifying Schedulers of capabilities ... from (pid=24366) _publish_service_capabilities /usr/lib/python2.7/dist-packages/nova/manager.py:203
2013-01-14 14:06:29 DEBUG nova.rpc.amqp [-] Making asynchronous fanout cast... from (pid=24366) fanout_cast /usr/lib/python2.7/dist-packages/nova/rpc/amqp.py:359
2013-01-14 14:06:29 DEBUG nova.manager [-] Running periodic task ComputeManager._poll_rescued_instances from (pid=24366) periodic_tasks /usr/lib/python2.7/dist-packages/nova/manager.py:152
2013-01-14 14:06:29 DEBUG nova.manager [-] Skipping ComputeManager._sync_power_states, 6 ticks left until next run from (pid=24366) periodic_tasks /usr/lib/python2.7/dist-packages/nova/manager.py:147
2013-01-14 14:06:29 DEBUG nova.manager [-] Running periodic task ComputeManager._poll_bandwidth_usage from (pid=24366) periodic_tasks /usr/lib/python2.7/dist-packages/nova/manager.py:152
2013-01-14 14:06:29 DEBUG nova.manager [-] Running periodic task ComputeManager.update_available_resource from (pid=24366) periodic_tasks /usr/lib/python2.7/dist-packages/nova/manager.py:152
 (Nova-network)
2013-01-14 14:00:34 DEBUG nova.utils [-] Got file lock "iptables" for method "apply"... from (pid=24383) inner /usr/lib/python2.7/dist-packages/nova/utils.py:942
2013-01-14 14:00:34 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-save -t filter from (pid=24383) execute /usr/lib/python2.7/dist-packages/nova/utils.py:219
2013-01-14 14:00:34 DEBUG nova.utils [-] Result was 1 from (pid=24383) execute /usr/lib/python2.7/dist-packages/nova/utils.py:235
2013-01-14 14:00:34 DEBUG nova.utils [-] ['sudo', 'iptables-save', '-t', 'filter'] failed. Retrying. from (pid=24383) execute /usr/lib/python2.7/dist-packages/nova/utils.py:248
2013-01-14 14:00:35 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-save -t filter from (pid=24383) execute /usr/lib/python2.7/dist-packages/nova/utils.py:219
2013-01-14 14:00:35 DEBUG nova.utils [-] Result was 1 from (pid=24383) execute /usr/lib/python2.7/dist-packages/nova/utils.py:235
2013-01-14 14:00:35 DEBUG nova.utils [-] ['sudo', 'iptables-save', '-t', 'filter'] failed. Retrying. from (pid=24383) execute /usr/lib/python2.7/dist-packages/nova/utils.py:248
2013-01-14 14:00:35 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-save -t filter from (pid=24383) execute /usr/lib/python2.7/dist-packages/nova/utils.py:219
2013-01-14 14:00:35 DEBUG nova.utils [-] Result was 1 from (pid=24383) execute /usr/lib/python2.7/dist-packages/nova/utils.py:235
2013-01-14 14:00:35 DEBUG nova.utils [-] ['sudo', 'iptables-save', '-t', 'filter'] failed. Retrying. from (pid=24383) execute /usr/lib/python2.7/dist-packages/nova/utils.py:248
2013-01-14 14:00:36 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-save -t filter from (pid=24383) execute /usr/lib/python2.7/dist-packages/nova/utils.py:219
2013-01-14 14:00:36 DEBUG nova.utils [-] Result was 1 from (pid=24383) execute /usr/lib/python2.7/dist-packages/nova/utils.py:235
2013-01-14 14:00:36 DEBUG nova.utils [-] ['sudo', 'iptables-save', '-t', 'filter'] failed. Retrying. from (pid=24383) execute /usr/lib/python2.7/dist-packages/nova/utils.py:248
2013-01-14 14:00:37 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-save -t filter from (pid=24383) execute /usr/lib/python2.7/dist-packages/nova/utils.py:219
2013-01-14 14:00:37 DEBUG nova.utils [-] Result was 1 from (pid=24383) execute /usr/lib/python2.7/dist-packages/nova/utils.py:235
2013-01-14 14:00:37 CRITICAL nova [-] Unexpected error while running command.
Command: sudo iptables-save -t filter
Exit code: 1
Stdout: ''
Stderr: 'sudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n'
2013-01-14 14:00:37 TRACE nova Traceback (most recent call last):
2013-01-14 14:00:37 TRACE nova File "/usr/bin/nova-network", line 49, in <module>
2013-01-14 14:00:37 TRACE nova service.wait()
2013-01-14 14:00:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 413, in wait
2013-01-14 14:00:37 TRACE nova _launcher.wait()
2013-01-14 14:00:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 131, in wait
2013-01-14 14:00:37 TRACE nova service.wait()
2013-01-14 14:00:37 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 166, in wait
2013-01-14 14:00:37 TRACE nova return self._exit_event.wait()
2013-01-14 14:00:37 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2013-01-14 14:00:37 TRACE nova return hubs.get_hub().switch()
2013-01-14 14:00:37 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 177, in switch
2013-01-14 14:00:37 TRACE nova return self.greenlet.switch()
2013-01-14 14:00:37 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 192, in main
2013-01-14 14:00:37 TRACE nova result = function(*args, **kwargs)
2013-01-14 14:00:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 101, in run_server
2013-01-14 14:00:37 TRACE nova server.start()
2013-01-14 14:00:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 162, in start
2013-01-14 14:00:37 TRACE nova self.manager.init_host()
2013-01-14 14:00:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 1695, in init_host
2013-01-14 14:00:37 TRACE nova self.l3driver.initialize()
2013-01-14 14:00:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/network/l3.py", line 84, in initialize
2013-01-14 14:00:37 TRACE nova linux_net.init_host()
2013-01-14 14:00:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 442, in init_host
2013-01-14 14:00:37 TRACE nova add_snat_rule(ip_range)
2013-01-14 14:00:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 432, in add_snat_rule
2013-01-14 14:00:37 TRACE nova iptables_manager.apply()
2013-01-14 14:00:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 943, in inner
2013-01-14 14:00:37 TRACE nova retval = f(*args, **kwargs)
2013-01-14 14:00:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 328, in apply
2013-01-14 14:00:37 TRACE nova attempts=5)
2013-01-14 14:00:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/network/linux_net.py", line 813, in _execute
2013-01-14 14:00:37 TRACE nova return utils.execute(*cmd, **kwargs)
2013-01-14 14:00:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 242, in execute
2013-01-14 14:00:37 TRACE nova cmd=' '.join(cmd))
2013-01-14 14:00:37 TRACE nova ProcessExecutionError: Unexpected error while running command.
2013-01-14 14:00:37 TRACE nova Command: sudo iptables-save -t filter
2013-01-14 14:00:37 TRACE nova Exit code: 1
2013-01-14 14:00:37 TRACE nova Stdout: ''
2013-01-14 14:00:37 TRACE nova Stderr: 'sudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n'
This is a nova.conf (compute node)
--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--logdir=/var/log/nova
--lock_path=/var/lock/nova
--state_path=/var/lib/nova
--verbose
--s3_host=192.168.4.75
--cc_host=192.168.4.75
--rabbit_host=10.0.1.20
--ec2_url=http://192.168.4.75:8773/services/Cloud
--fixed_range=10.0.1.32/27
--network_size=32
--FAKE_subdomain=ec2
--routing_source_ip=192.168.4.75
--sql_connection=mysql://nova:mygreatsecret@192.168.4.75/nova
--glance_host=10.0.1.20
--image_service=nova.image.glance.GlanceImageService
--my_ip=10.0.1.19
--vncserver_proxyclient_address=192.168.4.75
--libvirt_type=qemu
--connection_type=libvirt
--instance_name_template=instance-%08x
--api_paste_config=/etc/nova/api-paste.ini
--allow_resize_to_same_host=True
--public_interface=eth1
--scheduler_driver=nova.scheduler.simple.SimpleScheduler
--connection_type=libvirt
#edit
--nova_url=http://192.168.4.75:8774/v1.1/
--glance_api_servers=192.168.4.75:9292
--iscsi_ip_prefix=192.168.4
#network
--network_manager=nova.network.manager.FlatDHCPManager
--public_interface=eth0
--flat_interface=eth1
--flat_network_bridge=br100
--floating_range=192.168.4.224/27
--iscsi_helper=tgtadm
this is a network configuration (Compute node)
        auto eth0
        iface eth0 inet static
        address 192.168.4.72
        netmask 255.255.255.0
        network 192.168.4.0
        broadcast 192.168.4.255
        gateway 192.168.4.205
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 192.168.4.205

        auto eth1
        iface eth1 inet static
        address 10.0.1.19
        netmask 255.255.255.0
        network 10.0.1.0

        auto br100
        iface br100 inet static
        bridge_ports eth1
        bridge_stp off
        bridge_maxwait 0
        bridge_fd 0
        address 10.0.1.19
        netmask 255.255.255.0
        broadcast 10.0.1.255
------------------------------------------------------------------------------------------------------------------------------------
Next , there are log of Cloud controller
Network configuration:
auto eth0
auto eth1
iface eth1 inet static
        address 192.168.4.75
        network 192.168.4.0
        netmask 255.255.255.0
        hwaddress 54:52:00:26:47:6a
        gateway 192.168.4.205
        broadcast 192.168.4.255
        dns-nameservers 192.168.4.205
auto eth2
iface eth2 inet static
        address 10.0.1.20
        network 10.0.1.0
        netmask 255.255.255.0
        gateway 10.0.1.1
        broadcast 10.0.1.255
        dns-nameservers 8.8.8.8

        auto br100
        iface br100 inet static
        bridge_ports eth2
        bridge_stp off
        bridge_maxwait 0
        bridge_fd 0
        address 10.0.1.20
        netmask 255.255.255.0
        broadcast 10.0.1.255

        auto br200
        iface br200 inet static
        bridge_ports eth0
        bridge_stp off
This is a nova.conf(Cloud controller)
--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--logdir=/var/log/nova
--state_path=/var/lib/nova
--lock_path=/var/lock/nova
--allow_admin_api=true
--use_deprecated_auth=false
--auth_strategy=keystone
--scheduler_driver=nova.scheduler.simple.SimpleScheduler
--s3_host=192.168.4.75
--ec2_host=192.168.4.75
--rabbit_host=192.168.4.75
--cc_host=192.168.4.75
--nova_url=http://192.168.4.75:8774/v1.1/
--routing_source_ip=192.168.4.75
--glance_api_servers=192.168.4.75:9292
--image_service=nova.image.glance.GlanceImageService
--iscsi_ip_prefix=192.168.22
--sql_connection=mysql://nova:mygreatsecret@127.0.0.1/nova
--ec2_url=http://192.168.4.75:8773/services/Cloud
--keystone_ec2_url=http://192.168.4.75:5000/v2.0/ec2tokens
--api_paste_config=/etc/nova/api-paste.ini
--libvirt_type=kvm
--libvirt_use_virtio_for_bridges=true
--start_guests_on_host_boot=true
--resume_guests_state_on_host_boot=true
--vnc_enabled=true
--vncproxy_url=http://192.168.4.75:6080
--vnc_console_proxy_url=http://192.168.4.75:6080
# network specific settings
--network_manager=nova.network.manager.FlatDHCPManager
--public_interface=eth1
--flat_interface=eth2
--flat_network_bridge=br100
--fixed_range=10.0.1.32/27
--floating_range=192.168.4.224/27
--network_size=32
--flat_network_dhcp_start=10.0.1.33
--flat_injected=False
--force_dhcp_release
--iscsi_helper=tgtadm
--connection_type=libvirt
--root_helper=sudo nova-rootwrap
--verbose

Thank you very for your kindness.
Sakpon,

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
2013-01-14
Last reply:
2013-01-15
Keith Tobin (keith-tobin) said : #1

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

Keith Tobin (keith-tobin) said : #2

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

Can you help with this problem?

Provide an answer of your own, or ask sakpon for more information if necessary.

To post a message you must log in.