[Openstack] Upgrading from IceHouse to Juno, perfect!
Martinx - ジェームズ
thiagocmartinsc at gmail.com
Thu Nov 6 04:23:33 UTC 2014
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`.
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`!
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> 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>
> 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
>> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141106/9599d4d5/attachment.html>
More information about the Openstack
mailing list