[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1065875: cloud-init: disk resizing issues



Package: cloud-init
Severity: normal
X-Debbugs-Cc: witold.baryluk@gmail.com

I do not know if this is actually bug in cloud-init, because logging is sparse

but here is how to reproduce:


wget -c https://cloud.debian.org/images/cloud/bookworm-backports/20240201-1644/debian-12-backports-genericcloud-amd64-20240201-1644.qcow2

qemu-img create -f qcow2 -F qcow2 -o backing_file=debian-12-backports-genericcloud-amd64-20240201-1644.qcow2 vm-clone-0001.qcow2 10G

qemu-system-x86_64 \
    -enable-kvm \
    -cpu host \
    -m 256M \
    -drive "if=virtio,file=${HOME}/vm-clone-0001.qcow2,format=qcow2,id=hd0" \
    \
    -device virtio-net,netdev=network0,mac=52:54:01:12:34:56 \
    -netdev user,id=network0,hostname=vm0,tftp=$(pwd)/tftp \
    \
    -nographic

...

[    1.109854] virtio_blk virtio2: 1/0/0 default/read/poll queues
[    1.111388] virtio_blk virtio2: [vda] 20971520 512-byte logical blocks (10.7 GB/10.0 GiB)
[    1.125831] GPT:Primary header thinks Alt. header is not at the end of the disk.
[    1.127187] GPT:4194303 != 20971519
[    1.127877] GPT:Alternate GPT header not at the end of the disk.
[    1.128830] GPT:4194303 != 20971519
[    1.129491] GPT: Use GNU Parted to correct GPT errors.
[    1.130405]  vda: vda1 vda14 vda15
[    1.131229] virtio_net virtio0 ens3: renamed from eth0
[    1.144315] sr 1:0:0:0: [sr0] scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
[    1.145408] cdrom: Uniform CD-ROM driver Revision: 3.20
[    1.157534] virtio_net virtio1 ens4: renamed from eth1
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.38.1
[/sbin/fsck.ext4 (1) -- /dev/vda1] fsck.ext4 -a -C0 /dev/vda1 
/dev/vda1: clean, 25832/122880 files, 194305/491264 blocks
done.
[    1.396275] EXT4-fs (vda1): mounted filesystem 640ab8d4-9063-4a59-a5d5-6879c7f4848e ro with ordered data mode. Quota mode: none.
done.
Begin: Running /scripts/local-bottom ... GROWROOT: /sbin/growpart: 824: /sbin/growpart: grep: not found
GPT PMBR size mismatch (4194303 != 20971519) will be corrected by write.
The backup GPT table is not on the end of the device.
/sbin/growpart: 853: /sbin/growpart: sed: not found
WARN: unknown label 
/sbin/growpart: 354: /sbin/growpart: sed: not found
FAILED: sed failed on dump output
/sbin/growpart: 83: /sbin/growpart: rm: not found
done.
...



GPT warning / error is expected.

But Why it cannot find grep, send and rm?

Must be something wrong with PATH or something.


Please reassign the bug if this is somewhere else to be put.


Yes, I do not know that I do not provide any data to cloud-init (so it
fails later), but still this should not happen.

Regards,
Witold


Reply to: