diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-11-16 12:20:09 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-11-16 12:20:09 +0000 |
| commit | 2933b9df757337e790ce7ff46d3010a49d63c406 (patch) | |
| tree | 2656308dd7540474b130024c54b52b34a4396f0b | |
| parent | 7b3feb612ba979d585e423ca824bfd0c2222e2a5 (diff) | |
| parent | c9e4e3d9076f69d541b5648c9edad431b9bacc17 (diff) | |
| download | kolla-2933b9df757337e790ce7ff46d3010a49d63c406.tar.gz kolla-2933b9df757337e790ce7ff46d3010a49d63c406.zip | |
Merge "Unmount Ceph OSD disks as part of destroy"
| -rw-r--r-- | releasenotes/notes/unmount-ceph-osds-43b7b59685bff5b4.yaml | 3 | ||||
| -rwxr-xr-x | tools/cleanup-host | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/releasenotes/notes/unmount-ceph-osds-43b7b59685bff5b4.yaml b/releasenotes/notes/unmount-ceph-osds-43b7b59685bff5b4.yaml new file mode 100644 index 000000000..b8f778b55 --- /dev/null +++ b/releasenotes/notes/unmount-ceph-osds-43b7b59685bff5b4.yaml @@ -0,0 +1,3 @@ +--- +features: + - Unmount Ceph OSD disks as part of 'kolla-ansible destroy' diff --git a/tools/cleanup-host b/tools/cleanup-host index 59d463b22..392b92fee 100755 --- a/tools/cleanup-host +++ b/tools/cleanup-host @@ -47,6 +47,11 @@ fi echo "Creating a fstab backup..." sudo cp /etc/fstab /etc/fstab_backup +echo "Unmounting Ceph OSD disks" +for mount in $(mount | awk '/\/var\/lib\/ceph/ { print $3 }'); do + umount $mount +done + echo "Removing ceph references from fstab..." sudo sed -i '/\/var\/lib\/ceph\/osd\//d' /etc/fstab |
