Enable glance v1 api for orchestra tests 59/46659/1
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Fri, 3 Nov 2017 10:59:20 +0000 (14:59 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Fri, 3 Nov 2017 10:59:20 +0000 (14:59 +0400)
Change-Id: Ia896c3f9fcd96dd498eef6d1f83d46e29df0cd6b
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
mcp/config/states/openstack_ha

index 9237cc0..e816a9d 100755 (executable)
@@ -70,3 +70,7 @@ clstr_vip_addr=$(salt -C 'I@nginx:server and *01*' --out=yaml \
 salt -C 'I@nginx:server and *01*' cp.push \
   "/etc/ssl/certs/${clstr_vip_addr}-with-chain.crt" upload_path='certs/os_cacert'
 cd /etc/ssl/certs && ln -sf /var/cache/salt/master/minions/prx01.*/files/certs/os_cacert
+
+# glance v1 api is required by orchestra tests
+salt -I 'glance:server' ini.set_option /etc/glance/glance-api.conf '{DEFAULT: {enable_v1_api: True}}'
+salt -I 'glance:server' service.restart glance-api