OpenStack Upgrade 測試
這篇超級古文,沒什麼參考價值,現在都使用 kolla 佈署跟升級 OpenStack,只是發現以前有記錄過程,所以搬上來
本文紀錄時間為2018/01/22,看看就好,不要太認真,之前被公司要求如何升版,所以才做這測試
測試從Mitaka手動升級到Newton
環境
OS: Ubuntu 14.04
OpenStack version: Mitaka
Node:
1台 controller
1台 compute
1台 storage
All node
所有節點更新OS至ubuntu 16.04,安裝都選第一個選項跟Y
備份所有節點的config檔
備份資料庫(controller)
Enable the OpenStack repository
Upgrade the packages on your host
Upgrade the OpenStack client
Controller node
keystone
Stop Keystone service
Upgrade Keystone service
Restart the Apache service
Create keystone database
Populate the Identity service database:
Import keystone db
Create the service project:
Initialize Fernet key repositories
Mysql restart
Backup wsgi-keystone.conf
Remove site-enable
Apache2 restart
glance
Stop all glance service
Upgrade glance service
Create glance database
Populate the Image service database:
Import glance database
Start glance all service
Confirm upload of the image and validate attributes:
有可能出現錯誤:(錯誤:500 Internal Server Error: The server has either erred or is incapable of performing the requested operation.) CantStartEngineError: No sql_connection parameter is established 或(An unexpected error prevented the server from fulfilling your request. (HTTP 500)
nova
Stop nova all service
Upgrade nova all service
Create nova database
Populate the Compute databases:
Import nova database
Start nova all service
neutron
Stop nova all service
Upgrade neutron all service
Create neutron database
Populate the Neutron databases
Import neutron database
Start neutron all service
cinder
Stop cinder all service
Upgrade cinder all service
Create cinder database
Populate the cinder databases
Import cinder database
Start cinder all service
horizon
Upgrade horizon service
Restart apache2 service
Compute node
nova
Stop nova-compute stop
Upgrade nova-compute
Start nova-compute service
neutron
Stop neutron-linuxbridge-agent stop
Upgrade neutron-linuxbridge-agent
Start nova-compute and neutron-linuxbridge-agent service
Volume node
Stop cinder-volume stop
Upgrade cinder-volume
Start cinder-volume tgt service
備註
以下列出遇到的問題
nova list噴錯:
LOG如果出現:DBError: (pymysql.err.InternalError) (1054, u“Unknown column 'XXXXXXXXXXX 'field list'”) 請重新sync db
建立VM噴錯 因為compute上的nova-compute有問題,只要建立VM,nova-compute就會死掉:
無法進入dashboard,查看apache2 error.log
ImportError: cannot import name securitygrouprules 然後在controller輸入 openstack flavor list,出現下錯誤
之後查看nova所有服務,發現狀態為dead,重啟後為active,但是再下一次openstack flavorlist或重整網頁,nova所有服務又死了
Last updated
Was this helpful?