{"id":220,"date":"2015-10-29T14:43:10","date_gmt":"2015-10-29T14:43:10","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=220"},"modified":"2015-10-29T14:43:10","modified_gmt":"2015-10-29T14:43:10","slug":"resetting-meta-data-of-a-rax-rackspace-xen-server","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2015\/10\/29\/resetting-meta-data-of-a-rax-rackspace-xen-server\/","title":{"rendered":"Resetting Meta data of a RAX Rackspace Xen Server"},"content":{"rendered":"<p>At work we had some customers complaining of metadata not being removed on their servers.<\/p>\n<pre>\r\n\r\nnova --os-username username --os-password apigoeshere meta uuidgoeshere delete rax:reboot_window\r\n\r\n<\/pre>\n<p>It was pretty simple to do as a one liner right.<\/p>\n<p>But imagine we have a list.txt full of 100 servers that need clearing for an individual customer, that would be a nightmare to do manually like above. so we can do it like:<\/p>\n<pre>\r\nfor server in $(cat list.txt); do nova --os-username username --os-password apikeygoeshere meta $server delete rax:reboot_window; done\r\n<\/pre>\n<p>Now that is pretty cool. And saved me and my colleagues a lot of time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>At work we had some customers complaining of metadata not being removed on their servers. nova &#8211;os-username username &#8211;os-password apigoeshere meta uuidgoeshere delete rax:reboot_window It was pretty simple to do as a one liner right. But imagine we have a &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2015\/10\/29\/resetting-meta-data-of-a-rax-rackspace-xen-server\/\">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,15,7,11,12,5],"tags":[],"class_list":["post-220","post","type-post","status-publish","format-standard","hentry","category-api","category-cloud","category-management-tools","category-openstack","category-openstack-api","category-xen"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/220","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=220"}],"version-history":[{"count":1,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/220\/revisions"}],"predecessor-version":[{"id":221,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/220\/revisions\/221"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}