Compute node can't run instance [Please help]T T
Please help,I struck in the problem for a long time.
My topology is
Cloud controller : Public IP : 192.168.4.75
Compute node : Public IP : 192.168.4.72
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-
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.
2013-01-14 14:04:24 DEBUG nova.rpc.amqp [-] received {u'_context_roles': [u'admin'], u'_context_
2013-01-14 14:04:24 DEBUG nova.rpc.amqp [req-5a86fbbe-
2013-01-14 14:04:24 DEBUG nova.utils [req-5a86fbbe-
2013-01-14 14:04:24 DEBUG nova.utils [req-5a86fbbe-
2013-01-14 14:04:31 ERROR nova.rpc.amqp [req-5a86fbbe-
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/
2013-01-14 14:04:31 TRACE nova.rpc.amqp rval = node_func(
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/
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/
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/
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/
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/
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/
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/
2013-01-14 14:04:31 TRACE nova.rpc.amqp self._run_
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/
2013-01-14 14:04:31 TRACE nova.rpc.amqp self._set_
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/
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/
2013-01-14 14:04:31 TRACE nova.rpc.amqp image_meta = self._check_
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/
2013-01-14 14:04:31 TRACE nova.rpc.amqp image_meta = _get_image_
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/
2013-01-14 14:04:31 TRACE nova.rpc.amqp return image_service.
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/
2013-01-14 14:04:31 TRACE nova.rpc.amqp _reraise_
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/
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/
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/
2013-01-14 14:04:31 TRACE nova.rpc.amqp res = self.do_
2013-01-14 14:04:31 TRACE nova.rpc.amqp File "/usr/lib/
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/
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/
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/
2013-01-14 14:04:31 TRACE nova.rpc.amqp raise exception.
2013-01-14 14:04:31 TRACE nova.rpc.amqp ImageNotAuthorized: Not authorized for image 31a54d1b-
2013-01-14 14:04:31 TRACE nova.rpc.amqp
2013-01-14 14:05:22 DEBUG nova.manager [-] Running periodic task ComputeManager.
2013-01-14 14:05:22 DEBUG nova.manager [-] Notifying Schedulers of capabilities ... from (pid=24366) _publish_
2013-01-14 14:05:22 DEBUG nova.rpc.amqp [-] Making asynchronous fanout cast... from (pid=24366) fanout_cast /usr/lib/
2013-01-14 14:05:23 DEBUG nova.manager [-] Running periodic task ComputeManager.
2013-01-14 14:05:23 DEBUG nova.manager [-] Skipping ComputeManager.
2013-01-14 14:05:23 DEBUG nova.manager [-] Running periodic task ComputeManager.
2013-01-14 14:05:23 DEBUG nova.manager [-] Running periodic task ComputeManager.
2013-01-14 14:05:28 INFO nova.virt.
2013-01-14 14:05:29 DEBUG nova.manager [-] Running periodic task ComputeManager.
2013-01-14 14:05:29 DEBUG nova.manager [-] Skipping ComputeManager.
2013-01-14 14:05:29 DEBUG nova.manager [-] Running periodic task ComputeManager.
2013-01-14 14:05:29 DEBUG nova.rpc.amqp [-] Making asynchronous call on network ... from (pid=24366) multicall /usr/lib/
2013-01-14 14:05:29 DEBUG nova.rpc.amqp [-] MSG_ID is ce3ad34366fa4c5
2013-01-14 14:05:29 DEBUG nova.compute.
2013-01-14 14:05:29 DEBUG nova.manager [-] Skipping ComputeManager.
2013-01-14 14:05:29 DEBUG nova.manager [-] Running periodic task ComputeManager.
2013-01-14 14:05:29 DEBUG nova.compute.
2013-01-14 14:05:29 DEBUG nova.manager [-] Running periodic task ComputeManager.
2013-01-14 14:05:29 DEBUG nova.manager [-] Running periodic task ComputeManager.
2013-01-14 14:06:29 DEBUG nova.manager [-] Running periodic task ComputeManager.
2013-01-14 14:06:29 DEBUG nova.manager [-] Notifying Schedulers of capabilities ... from (pid=24366) _publish_
2013-01-14 14:06:29 DEBUG nova.rpc.amqp [-] Making asynchronous fanout cast... from (pid=24366) fanout_cast /usr/lib/
2013-01-14 14:06:29 DEBUG nova.manager [-] Running periodic task ComputeManager.
2013-01-14 14:06:29 DEBUG nova.manager [-] Skipping ComputeManager.
2013-01-14 14:06:29 DEBUG nova.manager [-] Running periodic task ComputeManager.
2013-01-14 14:06:29 DEBUG nova.manager [-] Running periodic task ComputeManager.
(Nova-network)
2013-01-14 14:00:34 DEBUG nova.utils [-] Got file lock "iptables" for method "apply"... from (pid=24383) inner /usr/lib/
2013-01-14 14:00:34 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-save -t filter from (pid=24383) execute /usr/lib/
2013-01-14 14:00:34 DEBUG nova.utils [-] Result was 1 from (pid=24383) execute /usr/lib/
2013-01-14 14:00:34 DEBUG nova.utils [-] ['sudo', 'iptables-save', '-t', 'filter'] failed. Retrying. from (pid=24383) execute /usr/lib/
2013-01-14 14:00:35 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-save -t filter from (pid=24383) execute /usr/lib/
2013-01-14 14:00:35 DEBUG nova.utils [-] Result was 1 from (pid=24383) execute /usr/lib/
2013-01-14 14:00:35 DEBUG nova.utils [-] ['sudo', 'iptables-save', '-t', 'filter'] failed. Retrying. from (pid=24383) execute /usr/lib/
2013-01-14 14:00:35 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-save -t filter from (pid=24383) execute /usr/lib/
2013-01-14 14:00:35 DEBUG nova.utils [-] Result was 1 from (pid=24383) execute /usr/lib/
2013-01-14 14:00:35 DEBUG nova.utils [-] ['sudo', 'iptables-save', '-t', 'filter'] failed. Retrying. from (pid=24383) execute /usr/lib/
2013-01-14 14:00:36 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-save -t filter from (pid=24383) execute /usr/lib/
2013-01-14 14:00:36 DEBUG nova.utils [-] Result was 1 from (pid=24383) execute /usr/lib/
2013-01-14 14:00:36 DEBUG nova.utils [-] ['sudo', 'iptables-save', '-t', 'filter'] failed. Retrying. from (pid=24383) execute /usr/lib/
2013-01-14 14:00:37 DEBUG nova.utils [-] Running cmd (subprocess): sudo iptables-save -t filter from (pid=24383) execute /usr/lib/
2013-01-14 14:00:37 DEBUG nova.utils [-] Result was 1 from (pid=24383) execute /usr/lib/
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/
2013-01-14 14:00:37 TRACE nova service.wait()
2013-01-14 14:00:37 TRACE nova File "/usr/lib/
2013-01-14 14:00:37 TRACE nova _launcher.wait()
2013-01-14 14:00:37 TRACE nova File "/usr/lib/
2013-01-14 14:00:37 TRACE nova service.wait()
2013-01-14 14:00:37 TRACE nova File "/usr/lib/
2013-01-14 14:00:37 TRACE nova return self._exit_
2013-01-14 14:00:37 TRACE nova File "/usr/lib/
2013-01-14 14:00:37 TRACE nova return hubs.get_
2013-01-14 14:00:37 TRACE nova File "/usr/lib/
2013-01-14 14:00:37 TRACE nova return self.greenlet.
2013-01-14 14:00:37 TRACE nova File "/usr/lib/
2013-01-14 14:00:37 TRACE nova result = function(*args, **kwargs)
2013-01-14 14:00:37 TRACE nova File "/usr/lib/
2013-01-14 14:00:37 TRACE nova server.start()
2013-01-14 14:00:37 TRACE nova File "/usr/lib/
2013-01-14 14:00:37 TRACE nova self.manager.
2013-01-14 14:00:37 TRACE nova File "/usr/lib/
2013-01-14 14:00:37 TRACE nova self.l3driver.
2013-01-14 14:00:37 TRACE nova File "/usr/lib/
2013-01-14 14:00:37 TRACE nova linux_net.
2013-01-14 14:00:37 TRACE nova File "/usr/lib/
2013-01-14 14:00:37 TRACE nova add_snat_
2013-01-14 14:00:37 TRACE nova File "/usr/lib/
2013-01-14 14:00:37 TRACE nova iptables_
2013-01-14 14:00:37 TRACE nova File "/usr/lib/
2013-01-14 14:00:37 TRACE nova retval = f(*args, **kwargs)
2013-01-14 14:00:37 TRACE nova File "/usr/lib/
2013-01-14 14:00:37 TRACE nova attempts=5)
2013-01-14 14:00:37 TRACE nova File "/usr/lib/
2013-01-14 14:00:37 TRACE nova return utils.execute(*cmd, **kwargs)
2013-01-14 14:00:37 TRACE nova File "/usr/lib/
2013-01-14 14:00:37 TRACE nova cmd=' '.join(cmd))
2013-01-14 14:00:37 TRACE nova ProcessExecutio
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_
--dhcpbridge=
--logdir=
--lock_
--state_
--verbose
--s3_host=
--cc_host=
--rabbit_
--ec2_url=http://
--fixed_
--network_size=32
--FAKE_
--routing_
--sql_connectio
--glance_
--image_
--my_ip=10.0.1.19
--vncserver_
--libvirt_type=qemu
--connection_
--instance_
--api_paste_
--allow_
--public_
--scheduler_
--connection_
#edit
--nova_url=http://
--glance_
--iscsi_
#network
--network_
--public_
--flat_
--flat_
--floating_
--iscsi_
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
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_stp off
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
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
auto br100
iface br100 inet static
bridge_stp off
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_stp off
This is a nova.conf(Cloud controller)
--dhcpbridge_
--dhcpbridge=
--logdir=
--state_
--lock_
--allow_
--use_deprecate
--auth_
--scheduler_
--s3_host=
--ec2_host=
--rabbit_
--cc_host=
--nova_url=http://
--routing_
--glance_
--image_
--iscsi_
--sql_connectio
--ec2_url=http://
--keystone_ec2_url=http://
--api_paste_
--libvirt_type=kvm
--libvirt_
--start_
--resume_
--vnc_enabled=true
--vncproxy_url=http://
--vnc_console_
# network specific settings
--network_
--public_
--flat_
--flat_
--fixed_
--floating_
--network_size=32
--flat_
--flat_
--force_
--iscsi_
--connection_
--root_helper=sudo nova-rootwrap
--verbose
Thank you very for your kindness.
Sakpon,
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask sakpon for more information if necessary.