← Back to team overview

openstack team mailing list archive

Updating Metadata for an instance.

 

Hi,
I created an instance with the following command:

*#>   nova boot  --meta creator=srikanth --meta desc='This is a Test
Description' --flavor=1 --image=4671e99b-1c01-42e8-94d6-2405a59bab57
testserver*
*
*
I am able to see  a file - 'meta.js' in '/' directory of instance file
system, with the given metadata values. And, I can be able to see those
meta values under 'Instance Detail' of that particular instance in Horizon.
Now, I want to modify the metadata, for example here...I want to change the
metadata value for the key 'creator'.

I used the following CURL command to modify the metadata

*#>  curl -k -D - -H "X-Auth-Token: fba5f4286dc245b4b3c4112d770afe29" -X
'POST' -v
http://10.232.0.3:8774/v2/7a6bf89048d04871bb9b46b4f8509198/servers/329ead9d-7cb9-425c-a0c6-a6175a23aa88/metadata-d
'{ "metadata" : { "creator" : "kumar" }}'  -H 'Content-type:
application/json'*
*
*
I got HTTP/1.1 200 OK response, with the modified metadata values. I am
able to see the same on Horizon. But, when I reboot the instance, and see
/meta.js, it has the old values. Why it is showing old values? Metadata
really modified? Please let me know.

-- 
----
Srikanth.