Dennis Dmitriev | ab83ea4 | 2017-05-12 16:52:45 +0300 | [diff] [blame] | 1 | {% from 'virtual-mcp-ocata-dvr/underlay.yaml' import HOSTNAME_CFG01 with context %} |
Tatyana Leontovich | 6238ba5 | 2017-06-22 19:31:56 +0300 | [diff] [blame] | 2 | {% from 'virtual-mcp-ocata-dvr/underlay.yaml' import HOSTNAME_CTL01 with context %} |
| 3 | {% from 'virtual-mcp-ocata-dvr/underlay.yaml' import HOSTNAME_CTL02 with context %} |
| 4 | {% from 'virtual-mcp-ocata-dvr/underlay.yaml' import HOSTNAME_CTL03 with context %} |
Tatyana Leontovich | 7c97e80 | 2017-07-19 17:08:39 +0300 | [diff] [blame] | 5 | {% from 'virtual-mcp-ocata-dvr/underlay.yaml' import HOSTNAME_GTW01 with context %} |
Sergii Golovatiuk | 50f9189 | 2017-08-04 18:11:06 +0200 | [diff] [blame] | 6 | {% from 'shared-salt.yaml' import IPV4_NET_EXTERNAL_PREFIX with context %} |
| 7 | {% from 'shared-salt.yaml' import IPV4_NET_TENANT_PREFIX with context %} |
Tatyana Leontovich | f51eb2e | 2017-07-25 17:39:27 +0300 | [diff] [blame] | 8 | {% set PATTERN = os_env('PATTERN', 'smoke') %} |
Dmitry Tyzhnenko | 8f6a63e | 2017-09-05 15:37:23 +0300 | [diff] [blame] | 9 | {% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME') %} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 10 | |
| 11 | # Install OpenStack control services |
| 12 | |
Dmitry Tyzhnenko | 8f6a63e | 2017-09-05 15:37:23 +0300 | [diff] [blame] | 13 | - description: Upload policy override |
| 14 | upload: |
| 15 | local_path: {{ config.salt_deploy.templates_dir }}{{ LAB_CONFIG_NAME }}/ |
| 16 | local_filename: overrides-policy.yml |
| 17 | remote_path: /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/ |
| 18 | node_name: {{ HOSTNAME_CFG01 }} |
| 19 | |
| 20 | - description: Create custom cluster control class |
| 21 | cmd: echo -e "classes:\n- cluster.{{ LAB_CONFIG_NAME }}.openstack.control_orig\n$(cat /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/overrides-policy.yml)" > /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/overrides-policy.yml |
| 22 | node_name: {{ HOSTNAME_CFG01 }} |
| 23 | |
| 24 | - description: Rename control classes |
| 25 | cmd: mv /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/control.yml /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/control_orig.yml && |
| 26 | ln -s /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/overrides-policy.yml /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/openstack/control.yml && |
| 27 | salt --hard-crash --state-output=mixed --state-verbose=False '*' saltutil.sync_all && |
| 28 | salt --hard-crash --state-output=mixed --state-verbose=False '*' saltutil.refresh_pillar |
| 29 | node_name: {{ HOSTNAME_CFG01 }} |
| 30 | |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 31 | - description: Install glance on all controllers |
| 32 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 33 | -C 'I@glance:server' state.sls glance -b 1 |
| 34 | node_name: {{ HOSTNAME_CFG01 }} |
| 35 | retry: {count: 1, delay: 5} |
| 36 | skip_fail: false |
| 37 | |
| 38 | - description: Install keystone service (note that different fernet keys are created on different nodes) |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 39 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 40 | -C 'I@keystone:server' state.sls keystone.server -b 1 |
| 41 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | d4f1fd3 | 2017-04-21 13:31:44 +0300 | [diff] [blame] | 42 | retry: {count: 2, delay: 15} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 43 | skip_fail: false |
| 44 | |
Tatyana Leontovich | fa7ae4d | 2017-04-25 13:46:14 +0300 | [diff] [blame] | 45 | - description: Restart apache due to PROD-10477 |
| 46 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' cmd.run "systemctl restart apache2" |
| 47 | node_name: {{ HOSTNAME_CFG01 }} |
| 48 | retry: {count: 1, delay: 15} |
| 49 | skip_fail: false |
| 50 | |
| 51 | - description: Check apache status to PROD-10477 |
| 52 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl*' cmd.run "systemctl status apache2" |
| 53 | node_name: {{ HOSTNAME_CFG01 }} |
| 54 | retry: {count: 1, delay: 15} |
| 55 | skip_fail: false |
| 56 | |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 57 | - description: Mount glusterfs.client volumes (resuires created 'keystone' and 'glusterfs' system users) |
| 58 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 59 | -C 'I@glance:server' state.sls glusterfs.client |
| 60 | node_name: {{ HOSTNAME_CFG01 }} |
| 61 | retry: {count: 1, delay: 5} |
| 62 | skip_fail: false |
| 63 | |
| 64 | - description: Update fernet keys for keystone server on the mounted glusterfs volume |
| 65 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 66 | -C 'I@keystone:server' state.sls keystone.server -b 1 |
| 67 | node_name: {{ HOSTNAME_CFG01 }} |
| 68 | retry: {count: 1, delay: 5} |
| 69 | skip_fail: false |
| 70 | |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 71 | - description: Populate keystone services/tenants/admins |
| 72 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 73 | -C 'I@keystone:client' state.sls keystone.client |
| 74 | node_name: {{ HOSTNAME_CFG01 }} |
| 75 | retry: {count: 1, delay: 5} |
| 76 | skip_fail: false |
| 77 | |
| 78 | - description: Check keystone service-list |
| 79 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
Tatyana Leontovich | b8b02d8 | 2017-04-21 14:07:33 +0300 | [diff] [blame] | 80 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; openstack service list' |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 81 | node_name: {{ HOSTNAME_CFG01 }} |
| 82 | retry: {count: 1, delay: 5} |
| 83 | skip_fail: false |
| 84 | |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 85 | - description: Check glance image-list |
| 86 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 87 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; glance image-list' |
| 88 | node_name: {{ HOSTNAME_CFG01 }} |
| 89 | retry: {count: 1, delay: 5} |
| 90 | skip_fail: false |
| 91 | |
| 92 | |
| 93 | - description: Install nova on all controllers |
| 94 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 95 | -C 'I@nova:controller' state.sls nova -b 1 |
| 96 | node_name: {{ HOSTNAME_CFG01 }} |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 97 | retry: {count: 2, delay: 5} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 98 | skip_fail: false |
| 99 | |
| 100 | - description: Check nova service-list |
| 101 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
Tatyana Leontovich | 902f1b4 | 2017-07-27 17:00:19 +0300 | [diff] [blame] | 102 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; nova --debug service-list' |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 103 | node_name: {{ HOSTNAME_CFG01 }} |
Tatyana Leontovich | 902f1b4 | 2017-07-27 17:00:19 +0300 | [diff] [blame] | 104 | retry: {count: 3, delay: 5} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 105 | skip_fail: false |
| 106 | |
| 107 | |
| 108 | - description: Install cinder |
| 109 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 110 | -C 'I@cinder:controller' state.sls cinder -b 1 |
| 111 | node_name: {{ HOSTNAME_CFG01 }} |
| 112 | retry: {count: 1, delay: 5} |
| 113 | skip_fail: false |
| 114 | |
| 115 | - description: Check cinder list |
| 116 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 117 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; cinder list' |
| 118 | node_name: {{ HOSTNAME_CFG01 }} |
| 119 | retry: {count: 1, delay: 5} |
| 120 | skip_fail: false |
| 121 | |
| 122 | |
| 123 | - description: Install neutron service |
| 124 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 125 | -C 'I@neutron:server' state.sls neutron -b 1 |
| 126 | node_name: {{ HOSTNAME_CFG01 }} |
| 127 | retry: {count: 1, delay: 5} |
| 128 | skip_fail: false |
| 129 | |
| 130 | - description: Install neutron on gtw node |
| 131 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 132 | -C 'I@neutron:gateway' state.sls neutron |
| 133 | node_name: {{ HOSTNAME_CFG01 }} |
| 134 | retry: {count: 1, delay: 5} |
| 135 | skip_fail: false |
| 136 | |
Tatyana Leontovich | c33be1f | 2017-07-19 17:38:30 +0300 | [diff] [blame] | 137 | # isntall designate |
| 138 | - description: Install powerdns |
| 139 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 140 | -C 'ctl*' state.sls powerdns |
| 141 | node_name: {{ HOSTNAME_CFG01 }} |
| 142 | retry: {count: 1, delay: 5} |
| 143 | skip_fail: false |
| 144 | |
| 145 | - description: Install designate |
| 146 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 147 | -C 'I@designate:server' state.sls designate -b 1 |
| 148 | node_name: {{ HOSTNAME_CFG01 }} |
| 149 | retry: {count: 5, delay: 10} |
| 150 | skip_fail: false |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 151 | |
| 152 | - description: Check neutron agent-list |
| 153 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 154 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; neutron agent-list' |
| 155 | node_name: {{ HOSTNAME_CFG01 }} |
| 156 | retry: {count: 1, delay: 5} |
| 157 | skip_fail: false |
| 158 | |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 159 | - description: Install heat service |
| 160 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 161 | -C 'I@heat:server' state.sls heat -b 1 |
| 162 | node_name: {{ HOSTNAME_CFG01 }} |
| 163 | retry: {count: 1, delay: 5} |
| 164 | skip_fail: false |
| 165 | |
| 166 | - description: Check heat service |
| 167 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
Igor Yozhikov | 8ec6d2f | 2017-05-23 16:17:29 +0300 | [diff] [blame] | 168 | -C 'I@keystone:server' cmd.run '. /root/keystonerc; openstack orchestration resource type list' |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 169 | node_name: {{ HOSTNAME_CFG01 }} |
Igor Yozhikov | 8ec6d2f | 2017-05-23 16:17:29 +0300 | [diff] [blame] | 170 | retry: {count: 5, delay: 10} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 171 | skip_fail: false |
| 172 | |
| 173 | |
| 174 | - description: Deploy horizon dashboard |
| 175 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 176 | -C 'I@horizon:server' state.sls horizon |
| 177 | node_name: {{ HOSTNAME_CFG01 }} |
| 178 | retry: {count: 1, delay: 5} |
| 179 | skip_fail: true |
| 180 | |
| 181 | - description: Deploy nginx proxy |
| 182 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False |
| 183 | -C 'I@nginx:server' state.sls nginx |
| 184 | node_name: {{ HOSTNAME_CFG01 }} |
| 185 | retry: {count: 1, delay: 5} |
| 186 | skip_fail: true |
| 187 | |
| 188 | |
| 189 | # Install compute node |
| 190 | |
| 191 | - description: Apply formulas for compute node |
| 192 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply |
| 193 | node_name: {{ HOSTNAME_CFG01 }} |
| 194 | retry: {count: 1, delay: 5} |
| 195 | skip_fail: true |
| 196 | |
| 197 | - description: Re-apply(as in doc) formulas for compute node |
| 198 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply |
| 199 | node_name: {{ HOSTNAME_CFG01 }} |
| 200 | retry: {count: 1, delay: 5} |
| 201 | skip_fail: true |
| 202 | |
| 203 | - description: Check IP on computes |
| 204 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run |
| 205 | 'ip a' |
| 206 | node_name: {{ HOSTNAME_CFG01 }} |
| 207 | retry: {count: 10, delay: 30} |
| 208 | skip_fail: false |
Oleksandr Ivashchenko | a95a72b | 2017-06-06 15:55:59 +0300 | [diff] [blame] | 209 | |
| 210 | |
| 211 | # Upload cirros image |
| 212 | |
| 213 | - description: Upload cirros image on ctl01 |
| 214 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 215 | 'wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-i386-disk.img' |
| 216 | node_name: {{ HOSTNAME_CFG01 }} |
| 217 | retry: {count: 2, delay: 30} |
| 218 | skip_fail: false |
| 219 | |
| 220 | - description: Register image in glance |
| 221 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 222 | '. /root/keystonercv3; glance image-create --name cirros --visibility public --disk-format qcow2 --container-format bare --progress < /root/cirros-0.3.4-i386-disk.img' |
| 223 | node_name: {{ HOSTNAME_CFG01 }} |
| 224 | retry: {count: 1, delay: 30} |
| 225 | skip_fail: false |
| 226 | |
| 227 | - description: Create net04_external |
| 228 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
Tatyana Leontovich | 674abf8 | 2017-07-20 15:44:15 +0300 | [diff] [blame] | 229 | '. /root/keystonercv3; neutron net-create net04_ext --router:external True --provider:physical_network physnet1 --provider:network_type flat' |
Oleksandr Ivashchenko | a95a72b | 2017-06-06 15:55:59 +0300 | [diff] [blame] | 230 | node_name: {{ HOSTNAME_CFG01 }} |
| 231 | retry: {count: 1, delay: 30} |
| 232 | skip_fail: false |
| 233 | |
| 234 | - description: Create subnet_external |
| 235 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 236 | '. /root/keystonercv3; neutron subnet-create net04_ext {{ IPV4_NET_EXTERNAL_PREFIX }}.0/24 --name net04_ext__subnet --disable-dhcp --allocation-pool start={{ IPV4_NET_EXTERNAL_PREFIX }}.150,end={{ IPV4_NET_EXTERNAL_PREFIX }}.180 --gateway {{ IPV4_NET_EXTERNAL_PREFIX }}.1' |
| 237 | node_name: {{ HOSTNAME_CFG01 }} |
| 238 | retry: {count: 1, delay: 30} |
| 239 | skip_fail: false |
| 240 | |
| 241 | - description: Create net04 |
| 242 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 243 | '. /root/keystonercv3; neutron net-create net04' |
| 244 | node_name: {{ HOSTNAME_CFG01 }} |
| 245 | retry: {count: 1, delay: 30} |
| 246 | skip_fail: false |
| 247 | |
| 248 | - description: Create subnet_net04 |
| 249 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 250 | '. /root/keystonercv3; neutron subnet-create net04 {{ IPV4_NET_TENANT_PREFIX }}.0/24 --name net04__subnet --allocation-pool start={{ IPV4_NET_TENANT_PREFIX }}.120,end={{ IPV4_NET_TENANT_PREFIX }}.240' |
| 251 | node_name: {{ HOSTNAME_CFG01 }} |
| 252 | retry: {count: 1, delay: 30} |
| 253 | skip_fail: false |
| 254 | |
| 255 | - description: Create router |
| 256 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 257 | '. /root/keystonercv3; neutron router-create net04_router01' |
| 258 | node_name: {{ HOSTNAME_CFG01 }} |
| 259 | retry: {count: 1, delay: 30} |
| 260 | skip_fail: false |
| 261 | |
| 262 | - description: Set geteway |
| 263 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 264 | '. /root/keystonercv3; neutron router-gateway-set net04_router01 net04_ext' |
| 265 | node_name: {{ HOSTNAME_CFG01 }} |
| 266 | retry: {count: 1, delay: 30} |
| 267 | skip_fail: false |
| 268 | |
| 269 | - description: Add interface |
| 270 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 271 | '. /root/keystonercv3; neutron router-interface-add net04_router01 net04__subnet' |
| 272 | node_name: {{ HOSTNAME_CFG01 }} |
| 273 | retry: {count: 1, delay: 30} |
| 274 | skip_fail: false |
| 275 | |
| 276 | - description: Allow all tcp |
| 277 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 278 | '. /root/keystonercv3; nova secgroup-add-rule default tcp 1 65535 0.0.0.0/0' |
| 279 | node_name: {{ HOSTNAME_CFG01 }} |
| 280 | retry: {count: 1, delay: 30} |
| 281 | skip_fail: false |
| 282 | |
| 283 | - description: Allow all icmp |
| 284 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run |
| 285 | '. /root/keystonercv3; nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0' |
| 286 | node_name: {{ HOSTNAME_CFG01 }} |
| 287 | retry: {count: 1, delay: 30} |
| 288 | skip_fail: false |
| 289 | |
Tatyana Leontovich | fa31b39 | 2017-07-24 18:37:41 +0300 | [diff] [blame] | 290 | - description: sync time |
| 291 | cmd: salt --hard-crash --state-output=mixed --state-verbose=False '*' cmd.run |
| 292 | 'service ntp stop; ntpd -gq; service ntp start' |
| 293 | node_name: {{ HOSTNAME_CFG01 }} |
| 294 | retry: {count: 1, delay: 30} |
| 295 | skip_fail: false |
| 296 | |
Tatyana Leontovich | fa31b39 | 2017-07-24 18:37:41 +0300 | [diff] [blame] | 297 | # Configure cinder-volume salt-call PROD-13167 |
Oleksandr Ivashchenko | a95a72b | 2017-06-06 15:55:59 +0300 | [diff] [blame] | 298 | - description: Set disks 01 |
| 299 | cmd: salt-call cmd.run 'echo -e "nn\np\n\n\n\nw" | fdisk /dev/vdb' |
| 300 | node_name: {{ HOSTNAME_CTL01 }} |
| 301 | retry: {count: 1, delay: 30} |
| 302 | skip_fail: false |
| 303 | |
| 304 | - description: Set disks 02 |
| 305 | cmd: salt-call cmd.run 'echo -e "nn\np\n\n\n\nw" | fdisk /dev/vdb' |
| 306 | node_name: {{ HOSTNAME_CTL02 }} |
| 307 | retry: {count: 1, delay: 30} |
| 308 | skip_fail: false |
| 309 | |
| 310 | - description: Set disks 03 |
| 311 | cmd: salt-call cmd.run 'echo -e "nn\np\n\n\n\nw" | fdisk /dev/vdb' |
| 312 | node_name: {{ HOSTNAME_CTL03 }} |
| 313 | retry: {count: 1, delay: 30} |
| 314 | skip_fail: false |
| 315 | |
| 316 | - description: Create partitions 01 |
| 317 | cmd: salt-call cmd.run 'pvcreate /dev/vdb1' |
| 318 | node_name: {{ HOSTNAME_CTL01 }} |
| 319 | retry: {count: 1, delay: 30} |
| 320 | skip_fail: false |
| 321 | |
| 322 | - description: Create partitions 02 |
| 323 | cmd: salt-call cmd.run 'pvcreate /dev/vdb1' |
| 324 | node_name: {{ HOSTNAME_CTL01 }} |
| 325 | retry: {count: 1, delay: 30} |
| 326 | skip_fail: false |
| 327 | |
| 328 | - description: Create partitions 03 |
| 329 | cmd: salt-call cmd.run 'pvcreate /dev/vdb1' |
| 330 | node_name: {{ HOSTNAME_CTL01 }} |
| 331 | retry: {count: 1, delay: 30} |
Tatyana Leontovich | 7c97e80 | 2017-07-19 17:08:39 +0300 | [diff] [blame] | 332 | skip_fail: false |
| 333 | |
| 334 | - description: create volume_group |
| 335 | cmd: salt "ctl*" cmd.run 'vgcreate cinder-volumes /dev/vdb1' |
| 336 | node_name: {{ HOSTNAME_CFG01 }} |
| 337 | retry: {count: 1, delay: 30} |
| 338 | skip_fail: false |
| 339 | |
| 340 | - description: Install cinder-volume |
| 341 | cmd: salt 'ctl*' cmd.run 'apt-get install cinder-volume -y' |
| 342 | node_name: {{ HOSTNAME_CFG01 }} |
| 343 | retry: {count: 1, delay: 30} |
| 344 | skip_fail: false |
| 345 | |
| 346 | - description: Install crudini |
| 347 | cmd: salt "ctl*" cmd.run 'apt-get install crudini -y' |
| 348 | node_name: {{ HOSTNAME_CFG01 }} |
| 349 | retry: {count: 1, delay: 30} |
| 350 | skip_fail: false |
| 351 | |
| 352 | - description: Temporary WR set enabled backends value 01 |
| 353 | cmd: salt-call cmd.run 'crudini --verbose --set /etc/cinder/cinder.conf DEFAULT enabled_backends lvm' |
| 354 | node_name: {{ HOSTNAME_CTL01 }} |
| 355 | retry: {count: 1, delay: 30} |
| 356 | skip_fail: false |
| 357 | |
| 358 | - description: Temporary WR set enabled backends value 02 |
| 359 | cmd: salt-call cmd.run 'crudini --verbose --set /etc/cinder/cinder.conf DEFAULT enabled_backends lvm' |
| 360 | node_name: {{ HOSTNAME_CTL02 }} |
| 361 | retry: {count: 1, delay: 30} |
| 362 | skip_fail: false |
| 363 | |
| 364 | - description: Temporary WR set enabled backends value 03 |
| 365 | cmd: salt-call cmd.run 'crudini --verbose --set /etc/cinder/cinder.conf DEFAULT enabled_backends lvm' |
| 366 | node_name: {{ HOSTNAME_CTL03 }} |
| 367 | retry: {count: 1, delay: 30} |
| 368 | skip_fail: false |
| 369 | |
| 370 | - description: Install docker.io on gtw |
| 371 | cmd: salt-call cmd.run 'apt-get install docker.io -y' |
| 372 | node_name: {{ HOSTNAME_GTW01 }} |
| 373 | retry: {count: 1, delay: 30} |
| 374 | skip_fail: false |
| 375 | |
| 376 | - description: create rc file on cfg |
| 377 | cmd: scp ctl01:/root/keystonercv3 /root |
| 378 | node_name: {{ HOSTNAME_CFG01 }} |
| 379 | retry: {count: 1, delay: 30} |
| 380 | skip_fail: false |
| 381 | |
| 382 | - description: Copy rc file |
| 383 | cmd: scp /root/keystonercv3 gtw01:/root |
| 384 | node_name: {{ HOSTNAME_CFG01 }} |
| 385 | retry: {count: 1, delay: 30} |
| 386 | skip_fail: false |
| 387 | |
| 388 | - description: Run tests |
Tatyana Leontovich | 07bc6ed | 2017-07-25 13:26:48 +0300 | [diff] [blame] | 389 | cmd: | |
Tatyana Leontovich | ee972fd | 2017-07-26 14:38:54 +0300 | [diff] [blame] | 390 | if [[ {{ PATTERN }} == "false" ]]; then |
Tatyana Leontovich | 07bc6ed | 2017-07-25 13:26:48 +0300 | [diff] [blame] | 391 | salt-call cmd.run 'docker run --rm --net=host -e TEMPEST_CONF=lvm_mcp.conf -e SKIP_LIST=mcp_skip.list -e SOURCE_FILE=keystonercv3 -v /root/:/home/rally docker-sandbox.sandbox.mirantis.net/rally-tempest/rally-tempest:with_designate >> image.output' |
Tatyana Leontovich | 6c61db3 | 2017-07-26 12:34:41 +0300 | [diff] [blame] | 392 | else |
Tatyana Leontovich | ee972fd | 2017-07-26 14:38:54 +0300 | [diff] [blame] | 393 | salt-call cmd.run "docker run --rm --net=host -e TEMPEST_CONF=lvm_mcp.conf -e SKIP_LIST=mcp_skip.list -e SOURCE_FILE=keystonercv3 -e CUSTOM='--pattern {{ PATTERN }}' -v /root/:/home/rally docker-sandbox.sandbox.mirantis.net/rally-tempest/rally-tempest:with_designate >> image.output" |
Tatyana Leontovich | 07bc6ed | 2017-07-25 13:26:48 +0300 | [diff] [blame] | 394 | fi |
Tatyana Leontovich | e3ecb5e | 2017-07-25 19:29:41 +0300 | [diff] [blame] | 395 | node_name: {{ HOSTNAME_GTW01 }} |
Tatyana Leontovich | 07bc6ed | 2017-07-25 13:26:48 +0300 | [diff] [blame] | 396 | retry: {count: 1, delay: 5} |
Tatyana Leontovich | 7c97e80 | 2017-07-19 17:08:39 +0300 | [diff] [blame] | 397 | skip_fail: false |
Dennis Dmitriev | 2dfb8ef | 2017-07-21 20:19:38 +0300 | [diff] [blame] | 398 | |
Tatyana Leontovich | 902f1b4 | 2017-07-27 17:00:19 +0300 | [diff] [blame] | 399 | - description: Download xml results |
Dennis Dmitriev | 2dfb8ef | 2017-07-21 20:19:38 +0300 | [diff] [blame] | 400 | download: |
| 401 | remote_path: /root |
| 402 | remote_filename: "report_*.xml" |
| 403 | local_path: {{ os_env('PWD') }} |
| 404 | node_name: {{ HOSTNAME_GTW01 }} |
Tatyana Leontovich | 902f1b4 | 2017-07-27 17:00:19 +0300 | [diff] [blame] | 405 | skip_fail: true |
| 406 | |
| 407 | - description: Download html results |
| 408 | download: |
| 409 | remote_path: /root |
| 410 | remote_filename: "report_*.html" |
| 411 | local_path: {{ os_env('PWD') }} |
| 412 | node_name: {{ HOSTNAME_GTW01 }} |
| 413 | skip_fail: true |