Instance metadata [closed]

asked 2014-04-03 10:53:00 -0500

lacroix1547 gravatar image

updated 2014-04-03 11:02:53 -0500

If I set some metadata with on an instance with --meta as following

host$ nova boot --meta k1=v1 instance1

can I retreive that metadata from within the instance?

I tried without success with

instance1$ curl -s http://169.254.169.254/latest/meta-data/

but it returned only

ami-id
ami-launch-index
ami-manifest-path
block-device-mapping/
hostname
instance-action
instance-id
instance-type
kernel-id
local-hostname
local-ipv4
placement/
public-hostname
public-ipv4
public-keys/
ramdisk-id
reservation-id

UPDATE: I just found the answer at https://ask.openstack.org/en/question/25969/where-is-the-meta-data-i-provide-during-a-nova-boot/ (where-is-the-meta-data-i-provide-during-a-nova-boot)

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by lacroix1547
close date 2014-04-03 10:55:03.016193

Comments

dbaxps gravatar imagedbaxps ( 2014-04-03 10:59:08 -0500 )edit