OpenStack Upgrade 測試

這篇超級古文,沒什麼參考價值,現在都使用 kolla 佈署跟升級 OpenStack,只是發現以前有記錄過程,所以搬上來

測試從Mitaka手動升級到Newton

環境

OS: Ubuntu 14.04

OpenStack version: Mitaka

Node:

  • 1台 controller

  • 1台 compute

  • 1台 storage

All node

  1. 所有節點更新OS至ubuntu 16.04,安裝都選第一個選項跟Y

  2. 備份所有節點的config檔

  3. 備份資料庫(controller)

# mysqldump -u root -p –opt –add-drop-database –all-databases > mitaka-db-backup.sql
  • Enable the OpenStack repository

    # add-apt-repository cloud-archive:newton
  • Upgrade the packages on your host

    # apt update
  • Upgrade the OpenStack client

    # apt install --only-upgrade python-openstackclient

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:

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

Compute node

nova

neutron

  • Stop neutron-linuxbridge-agent stop

  • Upgrade neutron-linuxbridge-agent

  • Start nova-compute and neutron-linuxbridge-agent service

Volume node

備註

以下列出遇到的問題

  1. nova list噴錯:

  2. LOG如果出現:DBError: (pymysql.err.InternalError) (1054, u“Unknown column 'XXXXXXXXXXX 'field list'”) 請重新sync db

  3. 建立VM噴錯 因為compute上的nova-compute有問題,只要建立VM,nova-compute就會死掉:

  4. 無法進入dashboard,查看apache2 error.log

ImportError: cannot import name securitygrouprules 然後在controller輸入 openstack flavor list,出現下錯誤

之後查看nova所有服務,發現狀態為dead,重啟後為active,但是再下一次openstack flavorlist或重整網頁,nova所有服務又死了

Last updated

Was this helpful?