2 ##############################################################################
3 # Copyright (c) 2017 Mirantis Inc., Enea AB and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
10 CI_DEBUG=${CI_DEBUG:-0}; [[ "${CI_DEBUG}" =~ (false|0) ]] || set -x
12 # shellcheck disable=SC1090
13 source "$(dirname "${BASH_SOURCE[0]}")/../../scripts/lib.sh"
15 salt -I 'nfs:server' file.mkdir /srv/nova/instances
16 salt -I 'nfs:server' state.sls nfs
17 salt -I 'nfs:client' state.sls nfs
19 salt -I 'rabbitmq:server' state.sls rabbitmq
20 salt -I 'rabbitmq:server' cmd.run "rabbitmqctl status"
22 salt -I 'mysql:server' state.sls mysql
23 salt -I 'memcached:server' state.sls memcached
24 salt -I 'haproxy:proxy' state.sls haproxy
26 set +e; salt -I 'keystone:server' state.sls keystone.server; set -e
27 salt -I 'keystone:server' service.restart apache2
28 salt -I 'keystone:server' state.sls keystone.server
30 salt -I 'keystone:server' state.sls keystone.client
31 salt -I 'keystone:server' cmd.run ". /root/keystonercv3; openstack service list"
33 salt -I 'glance:server' state.sls glance
35 # apply nova state twice to complete broken db sync
36 salt -I 'nova:controller' state.sls nova
37 salt -I 'nova:controller' state.sls nova
39 salt -I 'heat:server' state.sls heat
41 salt -I 'cinder:controller' state.sls cinder
42 wait_for 3 "salt -I 'cinder:volume' state.sls cinder"
44 salt -I 'neutron:server' state.sls neutron
46 salt -I 'nova:compute' state.sls nova
48 wait_for 3 "salt -I 'mongodb:server' state.sls mongodb"
49 salt -I 'aodh:server' state.sls aodh
50 salt -I 'ceilometer:server' state.sls ceilometer
51 salt -I 'ceilometer:agent' state.sls ceilometer
53 salt -I 'horizon:server' state.sls horizon
55 # workaround for the pike horizon is missing css, FUEL-324
56 salt -I 'horizon:server' file.symlink \
57 /var/lib/openstack-dashboard/static \
58 /usr/share/openstack-dashboard/static
59 salt -I 'horizon:server' cmd.run "/usr/share/openstack-dashboard/manage.py collectstatic --noinput"
60 salt -I 'horizon:server' cmd.run "/usr/share/openstack-dashboard/manage.py compress --force"
61 salt -I 'horizon:server' file.append /etc/openstack-dashboard/local_settings.py \
62 "AVAILABLE_THEMES = [ ('default', 'Default', 'themes/default'),]"
63 salt -I 'horizon:server' service.reload apache2