Skip to content

Commit

Permalink
Create nova api database and fix nova service start order
Browse files Browse the repository at this point in the history
This avoids having to restart services as well.
  • Loading branch information
dirkmueller committed Aug 12, 2019
1 parent 46f8f85 commit e411c5d
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions scripts/openstack-quickstart-demosetup
Original file line number Diff line number Diff line change
Expand Up @@ -685,29 +685,32 @@ 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
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-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
Expand Down

0 comments on commit e411c5d

Please sign in to comment.