{"id":799,"date":"2017-06-09T19:35:31","date_gmt":"2017-06-09T07:35:31","guid":{"rendered":"http:\/\/mdickinson.dyndns.org\/php\/wordpress\/?p=799"},"modified":"2017-06-09T19:35:31","modified_gmt":"2017-06-09T07:35:31","slug":"openstack-i-am-stuck-on-newton-for-now","status":"publish","type":"post","link":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/?p=799","title":{"rendered":"OpenStack &#8211; I am stuck on Newton for now"},"content":{"rendered":"<p>Issues with upgrading from Newton to Ocata have made me hold off upgrading to Ocata, I did make a few attempts.<\/p>\n<h2>Attempt One<\/h2>\n<p>\nAfter a normal upgrade from Newton to Ocata there were errors in the logs saying the placement service was optional in Newton but required in Ocata&#8230; and should have been installed in Newton before an upgrade was attempted. And while login to Horizon dashboard worked attempting to display pretty much anything using it failed.\n<\/p>\n<p>\nFound a web post on setting that up so installed the placement package, configured it, added the service, added the endpoints etc&#8230; and eventually eliminated all the errors in the logs. Same issues with horizon.\n<\/p>\n<p>\n<em>The placement database required and initialised was <b>nova_api_cell0<\/b><\/em>.\n<\/p>\n<p>\nAs it still didn&#8217;t fix the issues with the horizon web interface reverted back and tried&#8230;\n<\/p>\n<h2>Attempt Two<\/h2>\n<p>\nReverted back to the backed-up Newton system (don&#8217;t you just love VMs). And installed the placement service there before performing the upgrade.\n<\/p>\n<p>\n<em>The placement database required and initialised was <b>nova_cell0<\/b><\/em>.\n<\/p>\n<p>\nUpgraded to Ocata and got the same errors for the placement service not being configured correctly. Running the database migration\/upgrade scripts gave the error that the database was still missing&#8230; The nova_api sync step failed again because of a missing database, you guessed it, <em>Ocata needs the database nova_api_cell0 not the nova_cell0 used by Newton<\/em>&#8230; so had to recreate that database and run the simple cell creation script to populate that database.\n<\/p>\n<p>\nSo now I had two new databases both containing the same tables, was it safe to delete the first ?.\n<\/p>\n<p>\nAnyway I had the same issues with Horizon not being able to display anything usefull. Dropped those VMs.\n<\/p>\n<h2>Attempt Three<\/h2>\n<p>\nReverted back to the Newton VMs with no placement service installed&#8230; Ok I was lazy and did not want to build a new empty set of VMs for what may be a pointless exercise.\n<\/p>\n<p>\nI stopped all openstack services and dropped all mariadb tables used by openstack. Changed the repository to the RDO Ocata one and did a fresh packstack install. The openstack mariadb databases were created, but none for the placement service nor was placement installed. <b>However I cannot remember if I updated packstack itself before re-running packstack<\/b>, so my bad&#8230; will have to find time to test a all-in-one on a fresh VM when I find the time.\n<\/p>\n<h2>Summary, why I stay on Newton for now<\/h2>\n<ul>\n<li>in &#8220;attempt one&#8221; I did spend days customising the &#8220;*rpmnew&#8221; configuration files to try and get my configuration ported across and the [placement_database] section in nova.conf for Newton does not exist in the rpmnew file installed for Ocata, lack of info on why or what it defaults to<\/li>\n<li>direct upgrade to Ocata has error messages saying placement should be configured on Newton first&#8230; which is a waste of time as Newton and Ocata require different database names, so don&#8217;t bother getting it working in Newton all you have to so a lot of rework<\/li>\n<li>and the big issue, is that the horizon web interface is unable to display anything useful; it cannot even display active hypervisors\/compute-nodes which I assume means it cannot deploy instances onto them either&#8230; that is a show stopper. It may simply be a case of the authorisation URLs changing from V2 to V3 but as well as configuration file changes it would require manual deletion\/recreation of endpoints, and I cannot find any documentation on the changes needed (the commands to delete add endpoints are of course documented as part of the standard documentation; it is the names\/uri&#8217;s\/url&#8217;s that need to be created for Ocata that are impossible to find)<\/li>\n<\/ul>\n<h2>Next steps&#8230; upgrade attempts on hold<\/h2>\n<p>\nThe main reason I have put on hold more attempts to upgrade is that I need a working environment so cannot keep trashing my lab machine.\n<\/p>\n<p>\nI need it to play with a stack installing puppet server and a couple of agent servers to see if it can be of any use to me. For server &#8220;application&#8221; build I do not think puppet is likely to be of much use to me as all my VMs and instances are single purpose; but for server &#8220;management&#8221; it might be of use (ie: making sure all servers with agents have the same nrpe custom check scripts propagated to them, all servers have a bacula-fd service configured and running etc.), but that will be a different post as my &#8220;servers&#8221; run a range of different operating systems and I have a lot of reading to do on how agents provide &#8216;facts&#8217; to allow it all to hang together&#8230; but I have put on hold breaking my lab environment for now.\n<\/p>\n<p>\nAnd something totally unrelated to the post. Neither the horizon interface or command line interfaces for resizing instances work for me in Newton. And after a resize operation fails the instance has a rubbish flavor id (an id that does not match any existing flavor). OK I should have sized the instance correctly in the first place and didn&#8217;t, but there appear to be placeholder commands that partially complete a task and leave a mess to clean up&#8230; but as cleaning up helps understand some of the underlying activities that could be considered a learning bonus.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Issues with upgrading from Newton to Ocata have made me hold off upgrading to Ocata, I did make a few attempts. Attempt One After a normal upgrade from Newton to Ocata there were errors in the logs saying the placement &hellip; <a href=\"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/?p=799\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-799","post","type-post","status-publish","format-standard","hentry","category-openstack"],"_links":{"self":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/799","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=799"}],"version-history":[{"count":3,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/799\/revisions"}],"predecessor-version":[{"id":802,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/799\/revisions\/802"}],"wp:attachment":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=799"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}