{"id":873,"date":"2016-11-11T12:46:47","date_gmt":"2016-11-11T12:46:47","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=873"},"modified":"2016-11-11T12:48:50","modified_gmt":"2016-11-11T12:48:50","slug":"fixing-nova-agent-bugs-caused-yum-update","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2016\/11\/11\/fixing-nova-agent-bugs-caused-yum-update\/","title":{"rendered":"Fixing nova-agent bugs caused by yum update"},"content":{"rendered":"<p>1. Download newest version of nova-agent from the github repo to the server you want to upgrade : https:\/\/github.com\/rackerlabs\/openstack-guest-agents-unix\/releases<\/p>\n<p>For this instance I used &#8220;nova-agent-1.39-1.x86_64.rpm&#8221; since it&#8217;s CentOS \/ Redhat based<\/p>\n<p>2. Stop current nova-agent service<\/p>\n<pre>\r\nservice nova-agent stop\r\n<\/pre>\n<p>3. Remove current in place nova-agent. I found the easiest way to do this is to just remove the entire contents of it&#8217;s directory.<\/p>\n<pre>\r\nrm -rf \/usr\/share\/nova-agent\/*\r\n<\/pre>\n<p>4. Install the new nova-agent with the RPM<\/p>\n<pre>\r\nrpm -ivh --nosignature nova-agent-1.39-1.x86_64.rpm\r\n<\/pre>\n<p>5. Start the new nova-agent service<\/p>\n<pre>\r\nservice nova-agent start (might need to use systemd for CentOS\/RHEL 7 and above)\r\n# ie \r\nsystemctl enable nova-agent\r\nsystemctl start nova-agent\r\n<\/pre>\n<p>6. Issue a networking reset to verify it is working. Check logs and verify that you see this message : &#8216;resetnetwork&#8217; completed with code &#8216;0&#8217;, message &#8221;<\/p>\n<pre>\r\nuuid=$(uuidgen)\r\nxenstore-write data\/host\/$uuid '{\"name\":\"resetnetwork\",\"value\":\"\"}'\r\n\r\ntail -20 \/var\/log\/nova-agent.log\r\n<\/pre>\n<p>That&#8217;s it! Once you&#8217;ve done that you should reboot to verify that the nova-agent comes up on boot but otherwise nothing else is needed. Hope it helps!<\/p>\n<p>Thanks to Sean from Rackspace for this.. you rock dudery.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Download newest version of nova-agent from the github repo to the server you want to upgrade : https:\/\/github.com\/rackerlabs\/openstack-guest-agents-unix\/releases For this instance I used &#8220;nova-agent-1.39-1.x86_64.rpm&#8221; since it&#8217;s CentOS \/ Redhat based 2. Stop current nova-agent service service nova-agent stop 3. &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2016\/11\/11\/fixing-nova-agent-bugs-caused-yum-update\/\">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":[76,7,21,71,61],"tags":[],"class_list":["post-873","post","type-post","status-publish","format-standard","hentry","category-guest-utilities","category-management-tools","category-nova","category-nova-agent","category-rackspace"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/873","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=873"}],"version-history":[{"count":2,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/873\/revisions"}],"predecessor-version":[{"id":875,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/873\/revisions\/875"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=873"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=873"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}