openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #23704
issue with nova-api-metada (plain text)
I'm sorry, I had sent an HTML-formatted email,
my apologies... re-doing it in the proper way (plain_text)
---
Hello everyone,
Guys, I'm trying to get my nova-api-metadata working
(have tried the documents within the docs page and even
some external sources), but I got no good luck so far.
May I have the shared experience of you guys ?
I'm running Devstack (Openstack) build Grizzly
on Ubuntu Server 12.04 LTS
Here's the deal: Long story short, I'm trying to get a cloud_instance
that was provisioned by *nova boot* (as shown below):
$ nova boot --user-data ./myfile.txt \
--image c6020ab5-dea3-43bf-8274-2078d65cd64d \
--flavor 3 \
cloudinit-instant-test-1
>> The content of that myfile.txt is just: "Hello World", literally
Well, the instance gets provisioned indeed and it does have connectivity
to the magic_ip 169.254.169.254
But, whenever I try:
$ curl http://169.254.169.254
or
$ curl http://169.254.169.254/openstack
(All I get is the following)::
<html>
<head>
<title>400 Bad Request</title>
</head>
<body>
<h1>400 Bad Request</h1>
X-Instance-ID header is missing from request.<br /><br />
http://docs.openstack.org/trunk/openstack-compute/admin/content/metadata-service.html
But according to this document, right down at
the section: *Running the metadataservice*, that should've suffice...
*Here's my setup on /etc/nova/nova.conf*
1 [DEFAULT]
2 allow_admin_api = true
3 metadata_host = 177.x.y.z
4 metadata_port = 8775
5 firewall_driver = nova.virt.firewall.NoopFirewallDriver
6 compute_driver = libvirt.LibvirtDriver
7 service_quantum_metadata_proxy = True
8 linuxnet_interface_driver =
9 libvirt_vif_driver = nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver
10 security_group_api = quantum
11 quantum_url = http://177.x.y.z:9696
12 quantum_admin_tenant_name = service
13 quantum_auth_strategy = keystone
14 quantum_admin_auth_url = http://177.70.105.134:35357/v2.0
15 quantum_admin_password = ficrowstran02
16 quantum_admin_username = quantum
17 network_api_class = nova.network.quantumv2.api.API
18 glance_api_servers = 177.x.y.z:9292
19 rabbit_password = ficrowstran02
20 rabbit_host = localhost
21 rpc_backend = nova.openstack.common.rpc.impl_kombu
22 ec2_dmz_host = 177.x.y.z
23 vncserver_proxyclient_address = 127.0.0.1
24 vncserver_listen = 127.0.0.1
25 vnc_enabled = true
26 xvpvncproxy_base_url = http://177.x.y.z:6081/console
27 novncproxy_base_url = http://177.x.y.z:6080/vnc_auto.html
28 logging_exception_prefix = %(color)s%(asctime)s.%(msecs)03d TRACE
%(name)s ^[[01;35m%(instance)s^[[00m
29 logging_debug_format_suffix = ^[[00;33mfrom (pid=%(process)d)
%(funcName)s %(pathname)s:%(lineno)d^[[00m
30 logging_default_format_string = %(asctime)s.%(msecs)03d
%(color)s%(levelname)s %(name)s [^[[00;36m-%(color)s]
^[[01;35m%(instance)s%(color)s%(mes sage)s^[[00m
31 logging_context_format_string = %(asctime)s.%(msecs)03d
%(color)s%(levelname)s %(name)s [^[[01;36m%(request_id)s
^[[00;36m%(user_name)s %(project _name)s%(color)s]
^[[01;35m%(instance)s%(color)s%(message)s^[[00m
32 instances_path = /opt/stack/data/nova/instances
33 lock_path = /opt/stack/data/nova
34 state_path = /opt/stack/data/nova
Did I miss anything at all ?
If so, could you guys share a working metadata nova.conf file?
Thank you very much in advance.