Skip to content

Commit d393b63

Browse files
committed
Create nova api database and fix nova service start order
This avoids having to restart services as well.
1 parent ab6c7e9 commit d393b63

1 file changed

Lines changed: 15 additions & 11 deletions

File tree

scripts/openstack-quickstart-demosetup

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -686,29 +686,33 @@ fi
686686
#---------------------------------------
687687

688688
# Start glance and nova
689-
for s in openstack-glance-api openstack-glance-registry \
690-
openstack-nova-api openstack-nova-conductor openstack-nova-scheduler \
691-
openstack-nova-novncproxy openstack-nova-consoleauth
689+
for s in openstack-glance-api openstack-glance-registry
692690
do
693691
start_and_enable_service $s
694692
done
695693

696-
if [ "x$node_is_compute" = "xyes" ]; then
697-
start_and_enable_service openstack-nova-compute
698-
fi
694+
# Setup api_db
695+
nova-manage api_db sync
699696

700697
# migrate data directly
701698
nova-manage db online_data_migrations
702699

700+
# Start nova (Conductor first, API last!)
701+
for s in openstack-nova-conductor openstack-nova-scheduler \
702+
openstack-nova-novncproxy openstack-nova-consoleauth \
703+
openstack-nova-api
704+
do
705+
start_and_enable_service $s
706+
done
707+
708+
if [ "x$node_is_compute" = "xyes" ]; then
709+
start_and_enable_service openstack-nova-compute
710+
fi
711+
703712
# do cell setup (mandatory since Ocata)
704713
nova-manage cell_v2 simple_cell_setup --transport-url rabbit://openstack:$pw@$IP
705714
nova-manage cell_v2 discover_hosts --verbose
706715

707-
### Figure out why this restart is needed ??!
708-
# 2018-08-30: without the compute node is not registered properly
709-
for s in openstack-nova-conductor openstack-nova-scheduler; do
710-
systemctl restart $s
711-
done
712716

713717
if [ "x$with_tempest" = "xyes" ]; then
714718
start_and_enable_service openstack-ec2-api-s3

0 commit comments

Comments
 (0)