Upgrade OpenStack Newton to Queens with Packstack
This Guide with Centos 7
Disable vault repository, return all repository configuration to default
Remove Package OpenStack Newton
1
$ sudo yum -y erase centos-release-openstack-newton.noarch centos-release-ceph
Update Package OS Centos
1
$ sudo yum -y upgrade centos-release
Install Package OpenStack Queens
1
2$ sudo yum -y install centos-release-openstack-queens.noarch
$ sudo yum -y upgradeBackup file paf
paf-os-queens.txt
1
$ cp paf-os-queens.txt paf-os-queens-backup.txt
Edit file paf
paf-os-queens.txt
1
2
3
4$ vim paf-os-queens.txt
...
CONFIG_KEYSTONE_API_VERSION=v3
...Repackstack
1
2$ sudo -i
# packstack --gen-answer-file=paf-os-queens.txt
If you get error like this
1 | Error: /Stage[main]/Glance::Db::Sync/Exec[glance-manage db_sync]: Failed to call refresh: glance-manage db_sync returned 1 instead of one of [0] |
Update visibility glance in Database
1
2
3
4
5# mysql -u root -p
mysql> show databases;
mysql> use glance;
mysql> show tables;
mysql> update images set visibility='private' where visibility is null;Repackstack again
1
# packstack --gen-answer-file=paf-os-queens.txt
and If you get error like this
1
Error: Execution of '/usr/bin/nova-manage cell_v2 create_cell --name default --verbose' returned 2: The specified transport_url and/or database_connection combination already exists for another cell with uuid 6d8d8cd9-eaa2-4d8c-9243-6c3d1ceff65b.
Sync Database nova with
nova-manage
1
2
3
4
5# nova-manage cell_v2 list_cells
# nova-manage cell_v2 list_hosts
# nova-manage cell_v2 simple_cell_setup
# su -s /bin/sh -c "nova-manage api_db sync" nova
# nova-manage cell_v2 update_cell --cell_uuid 6d8d8cd9-eaa2-4d8c-9243-6c3d1ceff65b --name defaultExample of correct display for output :
1
2
3
4
5
6
7
8
9
10
11
12
13
14# nova-manage cell_v2 list_cells
+---------+--------------------------------------+---------------------------------------+--------------------------------------------------+
| Name | UUID | Transport URL | Database Connection |
+---------+--------------------------------------+---------------------------------------+--------------------------------------------------+
| cell0 | 00000000-0000-0000-0000-000000000000 | none:/ | mysql+pymysql://nova:****@"IP_CONTROLLER"/nova_cell0 |
| default | 3d87b051-1af7-4596-8b2c-a9c4d6099f2d | rabbit://guest:****@"IP_CONTROLLER":5672/ | mysql+pymysql://nova:****@"IP_CONTROLLER"/nova |
+---------+--------------------------------------+---------------------------------------+--------------------------------------------------+
# nova-manage cell_v2 list_hosts
+-----------+--------------------------------------+--------------+
| Cell Name | Cell UUID | Hostname |
+-----------+--------------------------------------+--------------+
| default | 3d87b051-1af7-4596-8b2c-a9c4d6099f2d | compute |
+-----------+--------------------------------------+--------------+If there are cell that are not necessary, you can delete them.
Repackstack again
1
# packstack --gen-answer-file=paf-os-queens.txt
Post Deploy in Node Controller
- Update Metadata DHCP Agent
1
2
3# crudini --set /etc/neutron/dhcp_agent.ini DEFAULT enable_isolated_metadata True
# systemctl restart neutron-dhcp-agent
# systemctl status neutron-dhcp-agent
- Post Deploy in Node compute
- Enable service
virtlogd
1
2
3
4# systemctl status virtlogd
# systemctl enable virtlogd
# systemctl restart virtlogd
# systemctl status virtlogd - Set Proxy Client
1
2
3# crudini --set /etc/nova/nova.conf vnc vncserver_proxyclient_address "IP_COMPUTE"
# systemctl restart openstack-nova-compute
# systemctl status openstack-nova-compute
- Check log service neutron-dhcp-agent.service. if you encounter an error like this:You can manually kill the PID process above and restart service neutron
1
2018-11-15 01:57:49.747 816 ERROR neutron.agent.linux.utils [req-991473ae-d745-47bb-bcad-2e2e1ece9d49 - - - - -] Rootwrap error running command: ['kill', '-9', '31985']: RemoteError:
1
2# kill -9 31985
# systemctl restart neutron-dhcp-agent.service neutron-metadata-agent.service