Flawed volume delete behavior in teardown script
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Low
|
Jean-Philippe Evrard | ||
Liberty |
Fix Released
|
Low
|
Jesse Pretorius | ||
Trunk |
Fix Released
|
Low
|
Jean-Philippe Evrard |
Bug Description
Teardown script has a serious flaw in the task "Remove all logical volumes".
It ignore the scenario where the admin may have created another volume outside of AIO, and AIO deletes that too.
I stumbled on this because we create a snapshot volume that we use to revert the system back to know good state.
This step is easy to create.
1. Create a snapshot volume (for example, lvcreate --size 50G -s -n root_lv /dev/lxc/root)
2. Run lvs (you will see you root_lv volume)
3. Run AIO
4. From /opt/openstack-
5. Run lvs (You will see that root_lv has disappeared, and so has your ability to revert the system to an earlier know good image)
Why doesn't teardown only delete the volumes created to host the containers?
Changed in openstack-ansible: | |
importance: | Undecided → Low |
status: | New → Confirmed |
I think the LXC volume group was intended for exclusive use by the LXC containers managed by OpenStack-Ansible. If you need a LV for other purposes, as you have suggested, create a separate VG.