32546d9c1b
This lets us test the direct-lun volume attachment model. Change-Id: Ibc7bff377cc5b5572e2a11006116401babaac347 Depends-On: https://review.opendev.org/c/openstack/tempest/+/918457
19 lines
523 B
YAML
19 lines
523 B
YAML
- hosts: controller
|
|
tasks:
|
|
- name: create local.sh
|
|
become: yes
|
|
blockinfile:
|
|
path: /opt/stack/devstack/local.sh
|
|
create: True
|
|
mode: 0777
|
|
block: |
|
|
#!/bin/bash
|
|
set -x
|
|
image_ids=$(openstack image list -f value -c ID)
|
|
|
|
echo "Setting required image metadata properties"
|
|
for image_id in $image_ids; do
|
|
openstack image set --property hw_scsi_model=virtio-scsi ${image_id}
|
|
done
|
|
openstack image list
|