Return back glusterfs client state 11/45211/1
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Mon, 16 Oct 2017 11:45:54 +0000 (15:45 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Mon, 16 Oct 2017 11:53:50 +0000 (15:53 +0400)
In order to set properly keystone fernet keys, apply glusterfs client
state before second keystone server state. Also leave out user/group
settings for glusterfs volume of nova instances as it will be set later
by nova compute packages themselves.

Change-Id: I069e37c67f08c51ed29f45cf6f92d4a00a1ac97b
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
mcp/config/states/openstack_ha
mcp/reclass/classes/cluster/baremetal-mcp-ocata-common/openstack_compute.yml

index 2e55fc8..aada4ad 100755 (executable)
@@ -39,6 +39,7 @@ salt -I 'keystone:client' state.sls keystone.client
 salt -I 'keystone:server' cmd.run ". /root/keystonercv3; openstack service list"
 
 salt -I 'glance:server' state.sls glance -b 1
+salt -I 'glusterfs:client' state.sls glusterfs.client
 salt -I 'keystone:server' state.sls keystone.server
 
 salt -I 'nova:controller' state.sls nova -b 1
@@ -51,7 +52,6 @@ salt -I 'neutron:server' state.sls neutron -b 1
 salt -I 'neutron:gateway' state.sls neutron.gateway
 
 salt -I 'nova:compute' state.sls nova
-salt -I 'glusterfs:client' state.sls glusterfs.client
 
 salt -I 'mongodb:server' state.sls mongodb
 wait_for 90 "salt -C 'I@mongodb:server and *01*' cmd.run 'mongo localhost:27017/admin'"
index aca416e..1540133 100644 (file)
@@ -42,8 +42,6 @@ parameters:
         nova_instances:
           path: /var/lib/nova/instances
           server: ${_param:glusterfs_service_host}
-          user: nova
-          group: nova
           # yamllint disable-line rule:line-length
           opts: "defaults,backup-volfile-servers=${_param:cluster_node01_address}:${_param:cluster_node02_address}:${_param:cluster_node03_address}"
   linux: