Revision history [back]

click to hide/show revision 1
initial version

Instance metadata

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

Instance metadata

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/

Instance metadata

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