Skip to content

Commit 87a00e2

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

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
@@ -681,29 +681,33 @@ fi
681681
#---------------------------------------
682682

683683
# Start glance and nova
684-
for s in openstack-glance-api openstack-glance-registry \
685-
openstack-nova-api openstack-nova-conductor openstack-nova-scheduler \
686-
openstack-nova-novncproxy openstack-nova-consoleauth
684+
for s in openstack-glance-api openstack-glance-registry
687685
do
688686
start_and_enable_service $s
689687
done
690688

691-
if [ "x$node_is_compute" = "xyes" ]; then
692-
start_and_enable_service openstack-nova-compute
693-
fi
689+
# Setup api_db
690+
nova-manage api_db sync
694691

695692
# migrate data directly
696693
nova-manage db online_data_migrations
697694

695+
# Start nova (Conductor first, API last!)
696+
for s in openstack-nova-conductor openstack-nova-scheduler \
697+
openstack-nova-novncproxy openstack-nova-consoleauth \
698+
openstack-nova-api
699+
do
700+
start_and_enable_service $s
701+
done
702+
703+
if [ "x$node_is_compute" = "xyes" ]; then
704+
start_and_enable_service openstack-nova-compute
705+
fi
706+
698707
# do cell setup (mandatory since Ocata)
699708
nova-manage cell_v2 simple_cell_setup --transport-url rabbit://openstack:$pw@$IP
700709
nova-manage cell_v2 discover_hosts --verbose
701710

702-
### Figure out why this restart is needed ??!
703-
# 2018-08-30: without the compute node is not registered properly
704-
for s in openstack-nova-conductor openstack-nova-scheduler; do
705-
systemctl restart $s
706-
done
707711

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

0 commit comments

Comments
 (0)