[OpenStack-docs] Fwd: Re: [Openstack] Upgrading from IceHouse to Juno, perfect!

Matt Kassawara mkassawara at gmail.com
Tue Nov 11 03:32:28 UTC 2014


Hmm... upgrades as low-hanging fruit sounds ambitious. :)

On Mon, Nov 10, 2014 at 4:27 PM, Anne Gentle <anne at openstack.org> wrote:

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


More information about the OpenStack-docs mailing list