]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Fix for Debian wheezy (remove vda from block device list)
authorSandon Van Ness <sandon@inktank.com>
Thu, 1 Aug 2013 19:33:11 +0000 (12:33 -0700)
committerSandon Van Ness <sandon@inktank.com>
Thu, 1 Aug 2013 19:33:11 +0000 (12:33 -0700)
commit88b7d02970431bf7efbd1bba1d50685701924e5c
treec4f33c6728927ececff6c8dc6c83431edbd8fcbd
parent1552a4b97aaed489ef8d062dc49e866b6711cf76
Fix for Debian wheezy (remove vda from block device list)

On debian wheezy its mount output uses device-by-label and makes
our normal method of checking if a device is mounted not work.
Since vm's will always be vda for their boot device we will just
remove it from devs if its in there so it doesn't attempt to zap
vda.

I also added a strip() to remove the last blank entry that was
always getting added to the devs list on all machines. Example:

devs=['/dev/sda', '/dev/sdb', '/dev/sdc', '/dev/sdd', '']

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
Reviewed-by: Alfredo Deza <alfredo@deza.pe>
teuthology/misc.py