dib fails to cleanup images with several partitions and volumes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
diskimage-builder |
Fix Released
|
Undecided
|
Ian Wienand |
Bug Description
When having an image with different partitions and volumes, the order of the cleanup is incorrectly set.
As a sample, when using that schema:
- local_loop:
name: image0
- partitioning:
base: image0
label: gpt
partitions:
- name: root
flags: [ boot ]
size: 23G
- name: ESP
type: 'EF00'
size: 8MiB
mkfs:
type: vfat
mount:
fstab:
- name: BSP
type: 'EF02'
size: 8MiB
- lvm:
name: lvm
base: [ root ]
pvs:
- name: pv
base: root
options: [ "--force" ]
vgs:
- name: vg
base: [ "pv" ]
options: [ "--force" ]
lvs:
- name: lv_root
base: vg
extents: 28%VG
- name: lv_tmp
base: vg
extents: 4%VG
- name: lv_var
base: vg
extents: 40%VG
- name: lv_log
base: vg
extents: 23%VG
- name: lv_audit
base: vg
extents: 4%VG
- name: lv_home
base: vg
extents: 1%VG
- mkfs:
name: fs_root
base: lv_root
type: xfs
label: "img-rootfs"
mount:
fstab:
- mkfs:
name: fs_tmp
base: lv_tmp
type: xfs
mount:
fstab:
- mkfs:
name: fs_var
base: lv_var
type: xfs
mount:
fstab:
- mkfs:
name: fs_log
base: lv_log
type: xfs
mount:
fstab:
- mkfs:
name: fs_audit
base: lv_audit
type: xfs
mount:
fstab:
- mkfs:
name: fs_home
base: lv_home
type: xfs
mount:
fstab:
The system unmounts first the ESP and BSP partitions, but then goes up in the tree and tries to detach the image, without having cleaned the root partition and volumes first.
Sample of the iteration: https:/
Changed in diskimage-builder: | |
status: | New → In Progress |
assignee: | nobody → Yolanda Robla (yolanda.robla) |
Changed in diskimage-builder: | |
assignee: | Yolanda Robla (yolanda.robla) → Ian Wienand (iwienand) |
Fix proposed to branch: master /review. openstack. org/576876
Review: https:/