cc_growpart broken if parted resizefs found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Won't Fix
|
Medium
|
Unassigned | ||
cloud-init (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
As reported in bug 1212444, the partition growing is broken if growpart is found to be usable.
There are 2 things that are broken,
a.) we invoke parted wrong (passing device after 'resizepart' rather than before)
b.) parted seems somewhat broken, and I dont know how to force it to do what we want. See:
$ sudo parted /dev/vda resizepart --script 1 </dev/null; echo $?
Warning: Partition /dev/vda1 is being used. Are you sure you want to continue?
1
Um... yes, parted, i want you to do what I told you to do.
Related bugs:
* bug 1212444: cc_growpart failed in auto grow mode with "Error: Could not stat device resizepart - No such file or directory." with parted 2.3-14
* bug 1270203: [parted] no way to use resizepart non-interactively on busy partition
Related branches
Changed in cloud-init: | |
status: | New → Confirmed |
Changed in cloud-init (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
description: | updated |
Changed in cloud-init: | |
status: | Confirmed → Won't Fix |
Changed in cloud-init (Ubuntu): | |
status: | Confirmed → Won't Fix |
no longer affects: | parted (Ubuntu) |
description: | updated |
So it looks like we need some way to specify '--force' to parted. The use case we have is known to have 'in use' partition that we're trying to grow.