interop-workloads/workloads/ansible/shade/k8s/roles
Mark T. Voelker 1cc921cef4 Rescan disk bus before using volume
In the LAMP stack workload, we found that one issue for interoperability
between clouds was that in some combinations of
hypervisor/adapter/storage is is necessary to rescan the scsi bus of a
guest VM in order to detect a newly attached Cinder volume.[1] We
neglected to do that in the K8s workload, so this patch ammends the
Ansible play that formats the volume to scan the SCSI bus first.

Note that the LAMP workload was targetted toward one guest OS platform
(Ubuntu), and worked by installing the scsitools package and running the
rescan-scsi-bus script that it provides.  The K8s workload is different
in that it's currently targetted toward multiple guests including Ubuntu
and CoreOS [2]...the latter of which doesn't have a package manager.
Rather than build conditionals into the code to handle this, I've taken
a slightly simpler and more platform-agnostic approach in this patch by
simply looking in /sys/class/scsi_host to see what adapters are present
and then scanning each of them with an echo command.  This approach has
a few advantages: 1.) it works on guest OS's in which the name of the
package containing the rescan-scsi-tools script is different than on
Ubuntu, 2.) it works on guest OS's that don't have a package manager at
all, and 3.) since it doesn't require installing any additional
software, it is slightly faster and requires trivially less disk
footprint.

[1] https://review.openstack.org/#/c/383923/
[2] CentOS support is coming too:
https://review.openstack.org/#/c/457199/

Change-Id: Ie7204a23bc7a7d1da9a8cc60e684fc987159a41a
2017-04-21 14:08:55 -04:00
..
common Added command to wait for cloud-init to be done 2017-04-12 20:55:39 +00:00
master Trivial typo fix in playbook 2017-04-11 11:43:42 +00:00
post Kubernetes workload 2017-03-21 15:09:36 -04:00
postprovision/tasks Correct few doc problems and the description of security group 2017-03-28 09:10:45 -04:00
prepare/tasks Correct few doc problems and the description of security group 2017-03-28 09:10:45 -04:00
provision Kubernetes workload 2017-03-21 15:09:36 -04:00
worker Rescan disk bus before using volume 2017-04-21 14:08:55 -04:00