Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenStack: Dev

Instance can't get metadata

 

 

OpenStack dev RSS feed   Index | Next | Previous | View Threaded


ben.div at gmail

Aug 29, 2012, 3:14 PM

Post #1 of 5 (361 views)
Permalink
Instance can't get metadata

Hi the list,

I had issues with nova-scheduler, but after upgrading ubuntu packages,
the problem have disapeared.

Now, I have another well know problem : on a multinode setup, I have a
connection refused when the instance tries to get metadata from nova-api :

2012-08-29 22:00:05,968 - util.py[WARNING]:
'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed
[0/120s]: url error [[Errno 111] Connection refused]

If I watch to iptables, I can see that 169.254.169.254 is rerouted to
itself (.52, the compute node) instead of the controller node (.50)

# iptables -t nat -L -v | grep -n3 169.254.169.254

45-Chain nova-network-PREROUTING (1 references)
46- pkts bytes target prot opt in out source
destination
47: 17 1020 DNAT tcp -- any any anywhere
169.254.169.254 tcp dpt:http to:94.xx.xx.52:8775

I tried these option in nova.conf but it didn't solved the problem
--dmz_cidr=94.xx.xx.50/32
--ec2_dmz_host=94.xx.xx.50

How can I force nova-compute to reroute the metadata request on the
controller node instead of itself ?

Another non-related question : my nova.conf have its options prefixed
with -- (example --multi_host=true)
I saw some nova.conf with no prefix, just the name of the option
(example multi_host=true).
What is the good format ?


Thank you,

Ben

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack [at] lists
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp


vishvananda at gmail

Aug 29, 2012, 3:19 PM

Post #2 of 5 (354 views)
Permalink
Re: Instance can't get metadata [In reply to]

Try:
--metadata_host=94.xx.xx.50
--dmz_cidr=94.xx.xx.50/32

Vish

On Aug 29, 2012, at 3:14 PM, Ben <ben.div [at] gmail> wrote:

> Hi the list,
>
> I had issues with nova-scheduler, but after upgrading ubuntu packages, the problem have disapeared.
>
> Now, I have another well know problem : on a multinode setup, I have a connection refused when the instance tries to get metadata from nova-api :
>
> 2012-08-29 22:00:05,968 - util.py[WARNING]: 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [0/120s]: url error [[Errno 111] Connection refused]
>
> If I watch to iptables, I can see that 169.254.169.254 is rerouted to itself (.52, the compute node) instead of the controller node (.50)
>
> # iptables -t nat -L -v | grep -n3 169.254.169.254
>
> 45-Chain nova-network-PREROUTING (1 references)
> 46- pkts bytes target prot opt in out source destination
> 47: 17 1020 DNAT tcp -- any any anywhere 169.254.169.254 tcp dpt:http to:94.xx.xx.52:8775
>
> I tried these option in nova.conf but it didn't solved the problem
> --dmz_cidr=94.xx.xx.50/32
> --ec2_dmz_host=94.xx.xx.50
>
> How can I force nova-compute to reroute the metadata request on the controller node instead of itself ?
>
> Another non-related question : my nova.conf have its options prefixed with -- (example --multi_host=true)
> I saw some nova.conf with no prefix, just the name of the option (example multi_host=true).
> What is the good format ?
>
>
> Thank you,
>
> Ben
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack [at] lists
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp


_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack [at] lists
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp


ben.div at gmail

Aug 29, 2012, 4:16 PM

Post #3 of 5 (354 views)
Permalink
Re: Instance can't get metadata [In reply to]

Hi Vish,

Thanks for your fast answer.
I tried these options on all nodes, but it didn't seems to work
(connection refused again).
I have googled a bit more, and I saw I can load nova-api on each compute
nodes, with only the metadata service (--enabled_apis=metadata).
This setup works well and enable HA for api so it can be a good solution.
Thanks for the help and sorry for not googling enough before asking ;)

And about nova.conf format, should I prefix options or not ?

Ben


Le 30/08/2012 00:19, Vishvananda Ishaya a écrit :
> Try:
> --metadata_host=94.xx.xx.50
> --dmz_cidr=94.xx.xx.50/32
>
> Vish
>
> On Aug 29, 2012, at 3:14 PM, Ben <ben.div [at] gmail> wrote:
>
>> Hi the list,
>>
>> I had issues with nova-scheduler, but after upgrading ubuntu packages, the problem have disapeared.
>>
>> Now, I have another well know problem : on a multinode setup, I have a connection refused when the instance tries to get metadata from nova-api :
>>
>> 2012-08-29 22:00:05,968 - util.py[WARNING]: 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [0/120s]: url error [[Errno 111] Connection refused]
>>
>> If I watch to iptables, I can see that 169.254.169.254 is rerouted to itself (.52, the compute node) instead of the controller node (.50)
>>
>> # iptables -t nat -L -v | grep -n3 169.254.169.254
>>
>> 45-Chain nova-network-PREROUTING (1 references)
>> 46- pkts bytes target prot opt in out source destination
>> 47: 17 1020 DNAT tcp -- any any anywhere 169.254.169.254 tcp dpt:http to:94.xx.xx.52:8775
>>
>> I tried these option in nova.conf but it didn't solved the problem
>> --dmz_cidr=94.xx.xx.50/32
>> --ec2_dmz_host=94.xx.xx.50
>>
>> How can I force nova-compute to reroute the metadata request on the controller node instead of itself ?
>>
>> Another non-related question : my nova.conf have its options prefixed with -- (example --multi_host=true)
>> I saw some nova.conf with no prefix, just the name of the option (example multi_host=true).
>> What is the good format ?
>>
>>
>> Thank you,
>>
>> Ben
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to : openstack [at] lists
>> Unsubscribe : https://launchpad.net/~openstack
>> More help : https://help.launchpad.net/ListHelp
>

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack [at] lists
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp


vishvananda at gmail

Aug 29, 2012, 7:20 PM

Post #4 of 5 (351 views)
Permalink
Re: Instance can't get metadata [In reply to]

On Aug 29, 2012, at 4:16 PM, Ben <ben.div [at] gmail> wrote:

> And about nova.conf format, should I prefix options or not ?

no. The new format is without -- and -- will not work in folsom.

Vish

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack [at] lists
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp


ben.div at gmail

Aug 30, 2012, 2:42 AM

Post #5 of 5 (351 views)
Permalink
Re: Instance can't get metadata [In reply to]

Le 30/08/2012 04:20, Vishvananda Ishaya a écrit :
>
> On Aug 29, 2012, at 4:16 PM, Ben <ben.div [at] gmail> wrote:
>
>> And about nova.conf format, should I prefix options or not ?
>
> no. The new format is without -- and -- will not work in folsom.
>
> Vish
>
Ok, thank you for the information, I was wondering.

Ben

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack [at] lists
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp

OpenStack dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.