Disks never used unless overwrite=True
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cinder (Juju Charms Collection) |
Fix Released
|
High
|
Liang Chen |
Bug Description
"overwrite" is needed even for a totally empty disk, but I didn't notice it from the description:
====
overwrite:
default: "false"
type: string
description: |
If true, charm will attempt to overwrite block devices containing
previous filesystems or LVM, assuming it is not in use.
====
I specified block-device=
[hooks/
====
# NOTE(jamespage)
# might need todo an initial one-time scrub on install if need be
vg_found = False
new_devices = []
for device in devices:
if (not is_lvm_
# Existing LVM but not part of required VG or new device
if overwrite is True:
====
The logic above or the description of the config can be improved, IMHO.
Related branches
- Edward Hope-Morley: Approve
-
Diff: 119 lines (+69/-5)2 files modifiedhooks/cinder_utils.py (+19/-5)
unit_tests/test_cinder_utils.py (+50/-0)
tags: | added: cts |
tags: | added: openstack |
Changed in cinder (Juju Charms Collection): | |
importance: | Undecided → High |
status: | New → Triaged |
summary: |
- description of "overwrite" is misleading + Disks never used unless overwrite=True |
Changed in cinder (Juju Charms Collection): | |
assignee: | nobody → Liang Chen (cbjchen) |
Changed in cinder (Juju Charms Collection): | |
status: | Triaged → In Progress |
Changed in cinder (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
tags: | added: backport-potential |
Changed in cinder (Juju Charms Collection): | |
milestone: | none → 15.01 |
Changed in cinder (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |