Ask Your Question
0

juno to kilo upgrade instructions?

asked 2015-06-05 14:56:26 -0500

liandrosg gravatar image

updated 2015-06-08 07:40:39 -0500

There is instruction for upgrade from juno to kilo ? After performing these steps, my centos7 cluster stopped working:

yum install http://rdo.fedorapeople.org/openstack-kilo/rdo-release-kilo.rpm
yum upgrade

The first thing that I can see, are changes in my mysql keystone tables . From /var/log/keystone/keystone.log:

2015-06-08 08:59:31.727 6030 TRACE keystone.common.wsgi OperationalError: (OperationalError) (1054, "Unknown column 'project.parent_id' in 'field list'") 'SELECT project.id AS project_id, project.name AS project_name, project.domain_id AS project_domain_id, project.description AS project_description, project.enabled AS project_enabled, project.extra AS project_extra, project.parent_id AS project_parent_id \nFROM project \nWHERE project.name = %s AND project.domain_id = %s' ('service', 'default')

DB schema has changed. Apparently, the package updater does not perform schema updates.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2015-06-08 13:59:32 -0500

liandrosg gravatar image

updated 2015-06-09 16:17:39 -0500

Auto answer:

The links suggested in the answer, give enough information to make the update, but for the beginner in OpenStack (like me), more information is needed. I share some notes on which successfully realize the update (based on http://docs.openstack.org/openstack-ops/content/ops_upgrades-general-steps.html (http://docs.openstack.org/openstack-o...) ):

  1. Perform some "cleaning" of the environment prior to starting the upgrade process to ensure a consistent state. For example, instances not fully purged from the system after deletion might cause indeterminate behavior.

  2. Read the release notes and documentation: https://wiki.openstack.org/wiki/ReleaseNotes/Kilo (https://wiki.openstack.org/wiki/Relea...)

  3. Find incompatibilities between your versions:

    • Keystone: The keystone CLI is deprecated in favor of openstack, the Common OpenStack client supporting multiple services. If you have custom scripts using keystone CLI command, you must adapt them.
  4. Develop an upgrade procedure and assess it thoroughly by using a test environment similar to your production environment.

    • You can perform an upgrade with operational instances, but this strategy can be dangerous. You might consider using live migration to temporarily relocate instances to other compute nodes while performing upgrades.

    • The following order for service upgrades seems the most successful. Try it, or use full upgrade:

      • Identity Service (keystone)
      • Image service (glance)
      • Compute (nova), including networking components
      • Block Storage (cinder)
      • dashboard
  5. Make a full database backup of your production data. As of Kilo, database downgrades are not supported, and the only method available to get back to a prior database version will be to restore from backup.

  6. Run the upgrade procedure on the production environment.

         yum upgrade
         yum install http://rdo.fedorapeople.org/openstack-kilo/rdo-release-kilo.rpm
    
    • Take down all the services, or by services(using the order mentioned above), and upgrade to kilo

       yum upgrade
      
  7. Upgrade services configuration, and databases

  • keystone:

    • Update db

       keystone-manage db_sync
      
    • Install common Openstack client:

       yum install python-openstackclient
      
    • Keystone use httpd mod_wsgi. You must to do configuration changes in httpd, according to install guide: http://docs.openstack.org/kilo/install-guide/install/yum/content/keystone-install.html (http://docs.openstack.org/kilo/instal...)

    • Update/verify configuration according : http://docs.openstack.org/kilo/install-guide/install/yum/content/keystone-verify.html (http://docs.openstack.org/kilo/instal...)

  • Nova

    • Scan for null uuid (Pass the --delete option to the null_instance_uuid_scan command to automatically remove any null records where instances.uuid is null.):

          nova-manage db null_instance_uuid_scan
      
    • Update db

          nova-manage db sync
      
    • Verify service according: http://docs.openstack.org/kilo/install-guide/install/yum/content/ch_nova.html#nova-verify (http://docs.openstack.org/kilo/instal...)

    • Update compute nodes (try previous migration of guests)

    • Test of nova services list:

          nova service-list
      
  • Glance:

    • Update db

          glance-manage db_sync
      

      . Update/verify configuration according: http://docs.openstack.org/kilo/install-guide/install/yum/content/glance-verify.html (http://docs.openstack.org/kilo/instal...)

  • Cinder:

    • Update db

          cinder-manage db sync
      
    • Update/verify configuration according: http://docs.openstack.org/kilo/install-guide/install/yum/content/cinder-verify.html (http://docs.openstack.org/kilo/instal...)

  • Horizon:

  • Heat:

    • Read upgrade notes: https://wiki.openstack.org/wiki/ReleaseNotes/Kilo#Upgrade_Notes_9 (https://wiki.openstack ...
(more)
edit flag offensive delete link more

Comments

You will also need to add the new section oslo_messaging_rabbit if you are running RabbitMQ, you can verify it working by checking for the log entry where it connects to the RabbitMQ nodes.

Tobias Urdin gravatar imageTobias Urdin ( 2015-06-10 03:12:58 -0500 )edit
0

answered 2015-06-08 16:11:03 -0500

Tobias Urdin gravatar image

Hello,

There are several changes to OpenStack configuration. I was able to cather all information I needed for upgrade RDO Juno to Kilo from these links:

https://wiki.openstack.org/wiki/Relea...

http://docs.openstack.org/kilo/instal...

Best regards

edit flag offensive delete link more

Comments

Thanks for your answer. I expected to find a formally documented Upgrade Guide. It seems for now is a process of collecting small pieces of information to build the road. (At least for a beginner like me, where the steps are not obvious)

liandrosg gravatar imageliandrosg ( 2015-06-09 07:44:21 -0500 )edit

Hmm. That's a good idea, I'll have to look into that.

kevin-michael-lloyd gravatar imagekevin-michael-lloyd ( 2015-06-09 23:18:26 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-06-05 14:55:12 -0500

Seen: 10,318 times

Last updated: Jun 09 '15