...
- This documents expects that your cloud is deployed with the latest newton tag(vN.1.0) of the ntnuopenstack repository.
- Your cloud is designed with one of the two architecturesarchitecture:
- Each openstack project have their own VM(s) for their services
- All openstack services is deployed on 3 physical controllers
- You have a recent mysql backup in case things go south.
...
- Run puppet with the ocata modules/tags
- Run apt-get dist-upgrade
- If it fails, verify that /etc/mysql/my.cnf.fallback exists. If it doesnt, create it with the content "!includedir /etc/mysql/conf.d/"
- Keystone often have to be reinstalled; so "apt-get purge keystone" followed by a puppet-run fixes a lot
- Run puppet again
- Perform the DB sync
- keystone-manage db_sync
- Restart keystone services
...
- Run puppet with the ocata modules/tags
- Run apt-get dist-upgrade
- Run puppet with the ocata modules/tags
- Restart neutron services
Nova
Create nova cells database on a mysql host:
Code Block |
---|
create database nova_cell0;
grant all privileges on nova_cell0.* TO 'nova'@'<mgmt-nett>' IDENTIFIED BY 'NOVA DB PASSORD';
grant all privileges on nova_cell0.* TO 'nova'@'localhost' IDENTIFIED BY 'NOVA DB PASSORD'; |
On the services-node:
Code Block |
---|
# nova-manage cell_v2 simple_cell_setup --transport-url rabbit://rabbit:<KANINPASSORD>@<KANIN-IP>/ |
On the API node:
- Run puppet with the ocata modules/tags
- Run apt-get dist-upgrade
- Run puppet again
- Perform the DB sync
- nova-manage db sync
- nova-manage api_db sync
- Restart nova services
...
- Run puppet with the ocata modules/tags
- Run apt-get dist-upgrade
- Run puppet again
- Perform the DB sync
- novaheat-manage db syncnova-manage api_db sync
- Restart heat services
...
- Run puppet with the ocata modules/tags
- Run apt-get dist-upgrade
- Run puppet again
Controller based architecture
On the controller-based architecture there is a lot less control of order etc. We are thus recommending the following approach:
- Stop puppet on all controllers, and stop all openstack services
- Select one controller to be the first one to go:
- Run puppet with the ocata modules/tags Perform a dist-upgradeSync databases
- keystone-manage db_sync
- cinder-manage db sync glance-manage db syncneutron-db-manage upgrade head
- nova-manage db sync
- nova-manage api_db sync
- Run puppet again
- Restart all services.
- Verify successful upgrade Upgrade the next two controllers, without step c: sync databases.
Compute-nodes
When controllers etc. are upgraded, it is time to do the same on the comute-nodes. Compute nodes are simple to upgrade:
...