Open TheRealFalcon opened 2 weeks ago
test: Allow unknown size in growpart test
The test occasionally fails because it could not properly determine the sizes.
Relevant logs:
2024-11-14 20:57:53,534 - handlers.py[DEBUG]: start: init-network/config-growpart: running config-growpart with frequency always 2024-11-14 20:57:53,534 - helpers.py[DEBUG]: Running config-growpart using lock (<cloudinit.helpers.DummyLock object at 0x7fa841cbdeb0>) 2024-11-14 20:57:53,535 - subp.py[DEBUG]: Running command ['growpart', '--help'] with allowed return codes [0] (shell=False, capture=True) 2024-11-14 20:57:53,546 - performance.py[DEBUG]: Running ['growpart', '--help'] took 0.011 seconds 2024-11-14 20:57:53,547 - util.py[DEBUG]: Reading from /proc/505/mountinfo (quiet=False) 2024-11-14 20:57:53,547 - util.py[DEBUG]: Reading 3422 bytes from /proc/505/mountinfo 2024-11-14 20:57:53,547 - cc_growpart.py[DEBUG]: growpart found fs=ext4 2024-11-14 20:57:53,547 - util.py[DEBUG]: Reading from /sys/class/block/sda1/partition (quiet=False) 2024-11-14 20:57:53,547 - util.py[DEBUG]: Reading 2 bytes from /sys/class/block/sda1/partition 2024-11-14 20:57:53,547 - util.py[DEBUG]: Reading from /sys/devices/pci0000:00/0000:00:01.1/0000:02:00.0/virtio6/host0/target0:0:0/0:0:0:1/block/sda/dev (quiet=False) 2024-11-14 20:57:53,547 - util.py[DEBUG]: Reading 4 bytes from /sys/devices/pci0000:00/0000:00:01.1/0000:02:00.0/virtio6/host0/target0:0:0/0:0:0:1/block/sda/dev 2024-11-14 20:57:53,548 - util.py[DEBUG]: Reading from /proc/505/mountinfo (quiet=False) 2024-11-14 20:57:53,548 - util.py[DEBUG]: Reading 3422 bytes from /proc/505/mountinfo 2024-11-14 20:57:53,548 - util.py[DEBUG]: Reading from /proc/505/mountinfo (quiet=False) 2024-11-14 20:57:53,548 - util.py[DEBUG]: Reading 3422 bytes from /proc/505/mountinfo 2024-11-14 20:57:53,552 - subp.py[DEBUG]: Running command ['growpart', '--dry-run', '/dev/sda', '1'] with allowed return codes [0] (shell=False, capture=True) 2024-11-14 20:57:53,600 - performance.py[DEBUG]: Running ['growpart', '--dry-run', '/dev/sda', '1'] took 0.048 seconds 2024-11-14 20:57:53,601 - cc_growpart.py[DEBUG]: growpart found fs=None 2024-11-14 20:57:53,604 - util.py[DEBUG]: Reading from /sys/class/block/sdb1/partition (quiet=False) 2024-11-14 20:57:53,604 - util.py[DEBUG]: Reading 2 bytes from /sys/class/block/sdb1/partition 2024-11-14 20:57:53,604 - util.py[DEBUG]: Reading from /sys/devices/pci0000:00/0000:00:01.1/0000:02:00.0/virtio6/host0/target0:0:1/0:0:1:1/block/sdb/dev (quiet=False) 2024-11-14 20:57:53,604 - util.py[DEBUG]: Reading 5 bytes from /sys/devices/pci0000:00/0000:00:01.1/0000:02:00.0/virtio6/host0/target0:0:1/0:0:1:1/block/sdb/dev 2024-11-14 20:57:53,604 - util.py[DEBUG]: Reading from /proc/505/mountinfo (quiet=False) 2024-11-14 20:57:53,604 - util.py[DEBUG]: Reading 3422 bytes from /proc/505/mountinfo 2024-11-14 20:57:53,605 - util.py[DEBUG]: Reading from /proc/505/mountinfo (quiet=False) 2024-11-14 20:57:53,605 - util.py[DEBUG]: Reading 3422 bytes from /proc/505/mountinfo 2024-11-14 20:57:53,606 - subp.py[DEBUG]: Running command ['growpart', '--dry-run', '/dev/sdb', '1'] with allowed return codes [0] (shell=False, capture=True) 2024-11-14 20:57:53,655 - performance.py[DEBUG]: Running ['growpart', '--dry-run', '/dev/sdb', '1'] took 0.048 seconds 2024-11-14 20:57:53,655 - subp.py[DEBUG]: Running command ['growpart', '/dev/sdb', '1'] with allowed return codes [0] (shell=False, capture=True) 2024-11-14 20:57:53,976 - performance.py[DEBUG]: Running ['growpart', '/dev/sdb', '1'] took 0.320 seconds 2024-11-14 20:57:53,976 - performance.py[DEBUG]: Resizing devices took 0.430 seconds 2024-11-14 20:57:53,977 - cc_growpart.py[DEBUG]: '/' NOCHANGE: no change necessary (/dev/sda, 1) 2024-11-14 20:57:53,977 - cc_growpart.py[INFO]: '/dev/sdb1' resized: changed (/dev/sdb1) size, new size is unknown 2024-11-14 20:57:53,977 - handlers.py[DEBUG]: finish: init-network/config-growpart: SUCCESS: config-growpart ran successfully and took 0.442 seconds
Which platform?
LXD VMs
Proposed Commit Message
Additional Context
The test occasionally fails because it could not properly determine the sizes.
Relevant logs:
Test Steps
Merge type