{"id":464,"date":"2016-02-25T13:36:33","date_gmt":"2016-02-25T13:36:33","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=464"},"modified":"2016-02-25T13:36:52","modified_gmt":"2016-02-25T13:36:52","slug":"updating-metadata-and-inside-view","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2016\/02\/25\/updating-metadata-and-inside-view\/","title":{"rendered":"Updating Metadata and inside view on Cloud Servers and thru Nova API"},"content":{"rendered":"<p>So, a customer today was playing around with some metadata i.e.<\/p>\n<p>  &#8220;meta&#8221;: {<br \/>\n    &#8220;rax-heat&#8221;: &#8220;dfdjh32j21-121c-411d-912c-77209ffc6642&#8221;<br \/>\n  },<\/p>\n<p>He understood setting the meta data key value pairs like;<\/p>\n<pre>\r\nnova meta platform-minion0-pp.gb-lon1.kubernetes.metroscales.io set foo=bar\r\n<\/pre>\n<p>and wanted to retrieve inside and outside of the VM. This is easy to do and can be done like<\/p>\n<pre>\r\nsupernova lon show 812c7fed-ae3b-43ff-a0a1-0f07d52b795a | grep metadata\r\n| metadata                            | {\"rax-heat\": \"dfdjh32j21-121c-411d-912c-77209ffc6642\", \"foo\": \"bar\", \"rax_service_level_automation\": \"Complete\"} |\r\n<\/pre>\n<p>or with nova<\/p>\n<pre>\r\nnova show 812c7fed-ae3b-43ff-a0a1-0f07d52b795a | grep metadata\r\n<\/pre>\n<p>Also it can be done inside the VM directly with xenstore-read<\/p>\n<pre>\r\nxenstore-read vm-data\/user-metadata\/build_config\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>So, a customer today was playing around with some metadata i.e. &#8220;meta&#8221;: { &#8220;rax-heat&#8221;: &#8220;dfdjh32j21-121c-411d-912c-77209ffc6642&#8221; }, He understood setting the meta data key value pairs like; nova meta platform-minion0-pp.gb-lon1.kubernetes.metroscales.io set foo=bar and wanted to retrieve inside and outside of the &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2016\/02\/25\/updating-metadata-and-inside-view\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,7,12,5],"tags":[],"class_list":["post-464","post","type-post","status-publish","format-standard","hentry","category-api","category-management-tools","category-openstack-api","category-xen"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=464"}],"version-history":[{"count":2,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/464\/revisions"}],"predecessor-version":[{"id":466,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/464\/revisions\/466"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}