openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #17274
Re: Failed to get metadata for ip x.x.x.x
I think Mate has just spotted this bug on trunk this morning.
He should be raising the bug and uploading a patch for that ASAP.
Clearly some unit tests are missing in this bit of code.
Thanks,
John
From: openstack-bounces+john.garbutt=citrix.com@xxxxxxxxxxxxxxxxxxx [mailto:openstack-bounces+john.garbutt=citrix.com@xxxxxxxxxxxxxxxxxxx] On Behalf Of Afef MDHAFFAR
Sent: 08 October 2012 1:43
To: openstack@xxxxxxxxxxxxxxxxxxx
Subject: [Openstack] Failed to get metadata for ip x.x.x.x
Hi all,
I am trying to install openstack on 3 nodes (Ubuntu 12.04 + XCP).
The platform is composed of a cloud controller and 2 compute nodes.
The installation of the cloud controller looks successful. I am able to create and launch instances.
But launching instances on the compute nodes raise the following error:
--------------
2012-10-08 11:40:59 DEBUG nova.openstack.common.rpc.amqp [-] Making asynchronous call on network ... from (pid=26752) multicall /opt/stack/nova/nova/openstack/common/rpc/amqp.py:351
2012-10-08 11:40:59 DEBUG nova.openstack.common.rpc.amqp [-] MSG_ID is 85ce008c9916415c9454c4087c468109 from (pid=26752) multicall /opt/stack/nova/nova/openstack/common/rpc/amqp.py:354
2012-10-08 11:40:59 ERROR nova.api.metadata.handler [req-e9540e8a-9729-40ba-9655-22d0725c82b7 None None] Failed to get metadata for ip: 10.0.0.21
2012-10-08 11:40:59 TRACE nova.api.metadata.handler Traceback (most recent call last):
2012-10-08 11:40:59 TRACE nova.api.metadata.handler File "/opt/stack/nova/nova/api/metadata/handler.py", line 75, in __call__
2012-10-08 11:40:59 TRACE nova.api.metadata.handler meta_data = self.get_metadata(remote_address)
2012-10-08 11:40:59 TRACE nova.api.metadata.handler File "/opt/stack/nova/nova/api/metadata/handler.py", line 57, in get_metadata
2012-10-08 11:40:59 TRACE nova.api.metadata.handler data = base.get_metadata_by_address(address)
2012-10-08 11:40:59 TRACE nova.api.metadata.handler File "/opt/stack/nova/nova/api/metadata/base.py", line 383, in get_metadata_by_address
2012-10-08 11:40:59 TRACE nova.api.metadata.handler return InstanceMetadata(instance, address)
2012-10-08 11:40:59 TRACE nova.api.metadata.handler File "/opt/stack/nova/nova/api/metadata/base.py", line 102, in __init__
2012-10-08 11:40:59 TRACE nova.api.metadata.handler self.mappings = _format_instance_mapping(ctxt, instance)
2012-10-08 11:40:59 TRACE nova.api.metadata.handler File "/opt/stack/nova/nova/api/metadata/base.py", line 388, in _format_instance_mapping
2012-10-08 11:40:59 TRACE nova.api.metadata.handler return block_device.instance_block_mapping(instance, bdms)
2012-10-08 11:40:59 TRACE nova.api.metadata.handler File "/opt/stack/nova/nova/block_device.py", line 97, in instance_block_mapping
2012-10-08 11:40:59 TRACE nova.api.metadata.handler if FLAGS.compute_driver.endswith('xenapi.XenAPIDriver'):
2012-10-08 11:40:59 TRACE nova.api.metadata.handler File "/opt/stack/nova/nova/openstack/common/cfg.py", line 1039, in __getattr__
2012-10-08 11:40:59 TRACE nova.api.metadata.handler return self._get(name)
2012-10-08 11:40:59 TRACE nova.api.metadata.handler File "/opt/stack/nova/nova/openstack/common/cfg.py", line 1361, in _get
2012-10-08 11:40:59 TRACE nova.api.metadata.handler value = self._substitute(self._do_get(name, group))
2012-10-08 11:40:59 TRACE nova.api.metadata.handler File "/opt/stack/nova/nova/openstack/common/cfg.py", line 1377, in _do_get
2012-10-08 11:40:59 TRACE nova.api.metadata.handler info = self._get_opt_info(name, group)
2012-10-08 11:40:59 TRACE nova.api.metadata.handler File "/opt/stack/nova/nova/openstack/common/cfg.py", line 1470, in _get_opt_info
2012-10-08 11:40:59 TRACE nova.api.metadata.handler raise NoSuchOptError(opt_name, group)
2012-10-08 11:40:59 TRACE nova.api.metadata.handler NoSuchOptError: no such option: compute_driver
2012-10-08 11:40:59 TRACE nova.api.metadata.handler
2012-10-08 11:40:59 INFO nova.api.ec2 [-] 0.228018s 10.0.0.21 GET /2009-04-04/meta-data/instance-id None:None 500 [Python-urllib/2.7] text/plain text/plain
2012-10-08 11:40:59 INFO nova.metadata.wsgi.server [-] 10.0.0.21 - - [08/Oct/2012 11:40:59] "GET /2009-04-04/meta-data/instance-id HTTP/1.1" 500 248 0.228905
------------------------
However, the launching process seems to be ok. I can ping the instance but can't ssh it.
when I try to ssh an instance launched on the compute node, I get this error: Read from socket failed: Connection reset by peer
Can you please help to solve this problem ??
Thank you,
Afef
Follow ups
References