From 87a00e21387fcffd690d75b2e29ee5353c46b73e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 1 Aug 2019 20:06:59 +0200 Subject: [PATCH] Create nova api database and fix nova service start order This avoids having to restart services as well. --- scripts/openstack-quickstart-demosetup | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/scripts/openstack-quickstart-demosetup b/scripts/openstack-quickstart-demosetup index 92cdbfb..3a7e63d 100755 --- a/scripts/openstack-quickstart-demosetup +++ b/scripts/openstack-quickstart-demosetup @@ -681,29 +681,33 @@ fi #--------------------------------------- # Start glance and nova -for s in openstack-glance-api openstack-glance-registry \ - openstack-nova-api openstack-nova-conductor openstack-nova-scheduler \ - openstack-nova-novncproxy openstack-nova-consoleauth +for s in openstack-glance-api openstack-glance-registry do start_and_enable_service $s done -if [ "x$node_is_compute" = "xyes" ]; then - start_and_enable_service openstack-nova-compute -fi +# Setup api_db +nova-manage api_db sync # migrate data directly nova-manage db online_data_migrations +# Start nova (Conductor first, API last!) +for s in openstack-nova-conductor openstack-nova-scheduler \ + openstack-nova-novncproxy openstack-nova-consoleauth \ + openstack-nova-api +do + start_and_enable_service $s +done + +if [ "x$node_is_compute" = "xyes" ]; then + start_and_enable_service openstack-nova-compute +fi + # do cell setup (mandatory since Ocata) nova-manage cell_v2 simple_cell_setup --transport-url rabbit://openstack:$pw@$IP nova-manage cell_v2 discover_hosts --verbose -### Figure out why this restart is needed ??! -# 2018-08-30: without the compute node is not registered properly -for s in openstack-nova-conductor openstack-nova-scheduler; do - systemctl restart $s -done if [ "x$with_tempest" = "xyes" ]; then start_and_enable_service openstack-ec2-api-s3