<div dir="ltr">Bug logged: <a href="https://bugs.launchpad.net/openstack-manuals/+bug/1391328">https://bugs.launchpad.net/openstack-manuals/+bug/1391328</a><div><br></div><div>Called it triaged and low-hanging-fruit, so seems like an easy patch.</div><div>Anne</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 6, 2014 at 10:39 AM, Tom Fifield <span dir="ltr"><<a href="mailto:tom@openstack.org" target="_blank">tom@openstack.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">#LazyBug<br>
<span class=""><br>
<br>
-------- Forwarded Message --------<br>
Subject:        Re: [Openstack] Upgrading from IceHouse to Juno, perfect!<br>
Date:   Thu, 6 Nov 2014 02:23:33 -0200<br>
From:   Martinx - ジェームズ <<a href="mailto:thiagocmartinsc@gmail.com">thiagocmartinsc@gmail.com</a>><br>
To:     Vijay Kakkar <<a href="mailto:vijaykakkars@gmail.com">vijaykakkars@gmail.com</a>><br>
CC:     <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a> <<a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>><br>
<br>
<br>
<br>
Sure! Here we go...<br>
<br>
Upgrading from IceHouse to Juno on Ubuntu 14.04.1.<br>
<br>
-----<br>
1- Stop all OpenStack services on each node, right before running the<br>
upgrade procedure;<br>
<br>
</span>  service keystone stop<br>
  cd /etc/init/; for i in $(ls neutron-* | cut -d \. -f 1 | xargs);<br>
do sudo service $i stop; done<br>
<br>
  cd /etc/init/; for i in $(ls nova-* | cut -d \. -f 1 | xargs);<br>
do sudo service $i stop; done<br>
  cd /etc/init/; for i in $(ls glance-* | cut -d \. -f 1 | xargs);<br>
do sudo service $i stop; done<br>
  cd /etc/init/; for i in $(ls cinder-* | cut -d \. -f 1 | xargs);<br>
do sudo service $i stop; done<br>
  cd /etc/init/; for i in $(ls heat-* | cut -d \. -f 1 | xargs);<br>
do sudo service $i stop; done<br>
  ...<br>
<br>
<br>
2- Run this: "curl<br>
-sÂ<br>
<a href="https://raw.githubusercontent.com/tmartinx/openstack-guides/master/Juno/controller/etc/apt/sources.list.d/ubuntu-cloud-archive-juno-trusty.list%C3%82" target="_blank">https://raw.githubusercontent.com/tmartinx/openstack-guides/master/Juno/controller/etc/apt/sources.list.d/ubuntu-cloud-archive-juno-trusty.listÂ</a><br>
<span class="">><br>
/etc/apt/sources.list.d/ubuntu-cloud-archive-juno-trusty.list"<br>
<br>
<br>
3- Then: "apt-get install<br>
</span>ubuntu-cloud-keyring python-software-properties ; apt-get update";<br>
<span class=""><br>
<br>
4- Upgrade to Juno with: "apt-get dist-upgrade";<br>
<br>
</span>  During the upgrade procedure, `dpkg` will ask you to replace some<br>
<span class="">configuration files, you'll need to chose to keep the files untouched<br>
(n), or to upgrade to the latest version (y).<br>
<br>
</span> I prefer to keep with my `nova.conf` (and with my `ml2_conf.ini`),<br>
<span class="">since it is very customized. Right after the upgrade, I updated<br>
`nova.conf` file according to `<a href="http://doc.openstack.org/juno`" target="_blank">doc.openstack.org/juno`</a><br>
</span><<a href="http://doc.openstack.org/juno`" target="_blank">http://doc.openstack.org/juno`</a>>.<br>
<br>
 Upgrade the following files: neutron.conf, keystone.conf,<br>
<span class="">glance-registry.conf, glance-api.conf, glance-scrubber.conf,<br>
/etc/openstack-dashboard/local_settings.py, heat.conf...<br>
<br>
</span> Also, keep your ml2_conf.ini (update it later by comparing<br>
<span class="">`ml2_conf.ini.dpkg-dist`).<br>
<br>
<br>
5- Repeat step 1, stop all services again (their confs are wrong /<br>
empty / from factory);<br>
<br>
<br>
6- Manually compare and update all the configuration files that was<br>
upgraded by `dpkg` on step 4, like this:<br>
<br>
</span> cd /etc/keystone<br>
 diff -Nru keystone.conf.dpkg-old keystone.conf | vim -<br>
<br>
 Where "keystone.conf.dpkg-old" is your previous "keystone.conf".<br>
<span class="">Lines starting with "minus -", was removed by new "keystone.conf",<br>
lines starting with "plus +" was added by it. So, you might want to<br>
restore mostly of your customized settings. Like for example:<br>
<br>
</span> admin_token<br>
 bind_host = ::<br>
 connection # [database]<br>
<br>
 Save new "keystone.conf" with your custom settings from<br>
"keystone.conf.dpkg-old"...<br>
<br>
 Run:<br>
<br>
 "rm /var/lib/keystone/keystone.db"<br>
 "su -s /bin/sh -c "keystone-manage db_sync" keystone";<br>
 "service keystone restart"<br>
 "keystone tenant-list"<br>
<span class=""><br>
<br>
7- Repeat step 6 for each configuration file... Remember to run<br>
</span>`diff -Nru ... ...` to compare each new config file with its<br>
<span class="">`backup.conf.dpkg-old` and before running "db_sync" to starting the<br>
services again (for each service you might have), plus a reboot in the<br>
end to make sure everything is working as expected. Pay attention to<br>
your `ml2_conf.ini`, you'll want to enable `ipset`, compare yours with<br>
`ml2_conf.ini.dpkg-dist`. Review your Cinder confs!<br>
<br>
<br>
8- Enjoy OpenStack Juno!<br>
<br>
<br>
Note: When updating Neutron Server, you'll need to run:<br>
<br>
</span> neutron-db-manage --config-file<br>
/etc/neutron/neutron.conf --config-file<br>
/etc/neutron/plugins/ml2/ml2_conf.ini stamp icehouse<br>
<br>
 ...Before:<br>
<br>
 su -s /bin/sh -c "neutron-db-manage<br>
--config-file /etc/neutron/neutron.conf<br>
--config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade juno" neutron<br>
<span class="">-----<br>
<br>
<br>
Sorry if this is not a complete upgrade procedure but, let me know if<br>
something goes wrong...<br>
<br>
</span>Keep two eyes on `<a href="http://doc.openstack.org/juno`" target="_blank">doc.openstack.org/juno`</a> <<a href="http://doc.openstack.org/juno`" target="_blank">http://doc.openstack.org/juno`</a>>!<br>
<span class=""><br>
First hand: I'm updating my Juno guide,<br>
</span>here: <a href="https://github.com/tmartinx/openstack-guides/tree/master/Juno" target="_blank">https://github.com/tmartinx/openstack-guides/tree/master/Juno</a> -<br>
I'll announce it later, when finished... Â  Â :-)<br>
<span class=""><br>
Best!<br>
Thiago<br>
<br>
On 30 October 2014 02:36, Vijay Kakkar <<a href="mailto:vijaykakkars@gmail.com">vijaykakkars@gmail.com</a><br>
</span><span class=""><mailto:<a href="mailto:vijaykakkars@gmail.com">vijaykakkars@gmail.com</a>>> wrote:<br>
> Great to know Martinx,Can you share some more details of the process which<br>
> you followed to upgrade to Juno ?<br>
><br>
</span>> On Wed, Oct 29, 2014 at 7:56 AM, Martinx - ã‚¸ã‚§ãƒ¼ãƒ ã‚º<br>
<<a href="mailto:thiagocmartinsc@gmail.com">thiagocmartinsc@gmail.com</a> <mailto:<a href="mailto:thiagocmartinsc@gmail.com">thiagocmartinsc@gmail.com</a>>><br>
<span class="">> wrote:<br>
>><br>
>> Hey guys,<br>
>><br>
>> I just want to say that (small feedback) I just upgraded a huge (for<br>
>> me) OpenStack Region, with about 50 Compute Nodes, from IceHouse to<br>
>> Juno.<br>
>><br>
>> I'm using Ubuntu 14.04.1.<br>
>><br>
>> It is working without any problems!<br>
>><br>
>> The `dpkg` upgraded a lots of config files (keystone.conf, nova.conf,<br>
>> neutron.conf, ml2_conf.ini and etc) but, after reading the new files,<br>
>> I just copied the previous modifications to the new files and voiala'!<br>
>> Juno online!<br>
>><br>
>> Thank you guys! IceHouse is already impressive and now, with Juno, I<br>
</span>>> have native IPv6 support! YAY! Â  :-D<br>
<span class="">>><br>
>> Cheers!<br>
>> Thiago<br>
>><br>
>> _______________________________________________<br>
>> Mailing list:<br>
>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
</span>>> Post to Â  Â  : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
<mailto:<a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>><br>
<div class="HOEnZb"><div class="h5">>> Unsubscribe :<br>
>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Regards,<br>
><br>
> Vijay Kakkar - RHC{E,SS,VA,DS,A,I,X}<br>
><br>
> Techgrills Systems Pvt. Ltd.<br>
> E4,3rd Floor,<br>
> South EX Part I,<br>
> New Delhi,110049<br>
> 011-46521313 | <a href="tel:%2B919999103657" value="+919999103657">+919999103657</a><br>
> Singapore: <a href="tel:%2B6593480537" value="+6593480537">+6593480537</a><br>
> Australia: <a href="tel:%2B61426044312" value="+61426044312">+61426044312</a><br>
> <a href="http://lnkd.in/bnj2VUU" target="_blank">http://lnkd.in/bnj2VUU</a><br>
> <a href="http://www.facebook.com/techgrills" target="_blank">http://www.facebook.com/techgrills</a><br>
<br>
<br>
</div></div><br>_______________________________________________<br>
OpenStack-docs mailing list<br>
<a href="mailto:OpenStack-docs@lists.openstack.org">OpenStack-docs@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs</a><br>
<br></blockquote></div><br></div>