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

Mailing List Archive: OpenStack: Dev

How to see the metadata and personality files in the virtual servers?

 

 

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


johanna.heinonen at nsn

Mar 16, 2012, 6:44 AM

Post #1 of 1 (70 views)
Permalink
How to see the metadata and personality files in the virtual servers?

Hi,

I have made some tests with openstack api v1.1. Now I try to send some
information to the virtual server by using metadata and personality
files, but I am not able to find this information from my virtual
server.
I am able to create the virtual server successfully with curl:

curl -H "Content-type: application/json" -H "x-auth-token:
493dcf75416382323621a868d042058f17579aa9" -d '{"server": {"min_count":
1, "flavorRef": "2", "name": "test5", "imageRef": "5", "metadata":
{"test": "qwerty"}, "personality": [{"path": "/etc/banner.txt",
"contents": "ZGF0YSB0byBiZSBlbmNvZGVk"}], "max_count": 1}}'
http://192.168.10.6:8774/v1.1/tenant1/servers

{"server": {"status": "BUILD", "updated": "2012-03-16T13:10:08Z",
"hostId": "", "user_id": "novaadmin", "name": "test5", "links":
[{"href": "http://192.168.10.6:8774/v1.1/tenant1/servers/34", "rel":
"self"}, {"href": "http://192.168.10.6:8774/tenant1/servers/34", "rel":
"bookmark"}], "addresses": {}, "tenant_id": "tenant1", "image": {"id":
"5", "links": [{"href": "http://192.168.10.6:8774/tenant1/images/5",
"rel": "bookmark"}]}, "created": "2012-03-16T13:10:08Z", "uuid":
"3401137b-5687-4da6-a082-533780df173b", "accessIPv4": "", "accessIPv6":
"", "key_name": null, "adminPass": "LwSvaeCazQZwBzuE", "progress": 0,
"flavor": {"id": "2", "links": [{"href":
"http://192.168.10.6:8774/tenant1/flavors/2", "rel": "bookmark"}]},
"config_drive": "", "id": 34, "metadata": {"test": "qwerty"}}}

But when I ssh to the newly created server I am not able to locate the
metadata or see the /etc/banner.txt in the VM.
I tried next to use metadata server:

root [at] test:~# curl -m 10 -s http://169.254.169.254/latest/meta-data
local-ipv4
reservation-id
local-hostname
placement/
ami-launch-index
public-hostname
mpi/
hostname
ami-id
kernel-id
instance-action
public-ipv4
block-device-mapping/
ami-manifest-path
security-groups
instance-type

But here either I cannot locate my metadata or personality files.

What am I missing?

Best regards,
Johanna

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.