Public bug reported:

Hi,

I've a server with:
Linux test-02 4.15.0-106-generic #107-Ubuntu SMP Thu Jun 4 11:27:52 UTC 2020 
x86_64 x86_64 x86_64 GNU/Linux
cloud-guest-utils/now 0.30-0ubuntu5 all [installed,local]
cloud-init/now 19.4-33-gbb4131a2-0ubuntu1~18.04.1 all [installed,local]
cloud-initramfs-copymods/now 0.40ubuntu1.1 all [installed,local]
cloud-initramfs-dyn-netconf/now 0.40ubuntu1.1 all [installed,local]
cloud-initramfs-growroot/now 0.40ubuntu1.1 all [installed,local]

If I resize FS it works correctly:
2021-03-25 14:04:48,301 - stages.py[DEBUG]: Running module growpart (<module 
'cloudinit.config.cc_growpart' from 
'/usr/lib/python3/dist-packages/cloudinit/config/cc_growpart.py'>) with 
frequency always
2021-03-25 14:04:48,302 - handlers.py[DEBUG]: start: 
init-network/config-growpart: running config-growpart with frequency always
2021-03-25 14:04:48,302 - helpers.py[DEBUG]: Running config-growpart using lock 
(<cloudinit.helpers.DummyLock object at 0x7f90a6c728d0>)
2021-03-25 14:04:48,302 - cc_growpart.py[DEBUG]: growpart disabled: mode=off
2021-03-25 14:04:48,302 - handlers.py[DEBUG]: finish: 
init-network/config-growpart: SUCCESS: config-growpart ran successfully
2021-03-25 14:04:48,302 - stages.py[DEBUG]: Running module resizefs (<module 
'cloudinit.config.cc_resizefs' from 
'/usr/lib/python3/dist-packages/cloudinit/config/cc_resizefs.py'>) with 
frequency always
2021-03-25 14:04:48,303 - handlers.py[DEBUG]: start: 
init-network/config-resizefs: running config-resizefs with frequency always
2021-03-25 14:04:48,303 - helpers.py[DEBUG]: Running config-resizefs using lock 
(<cloudinit.helpers.DummyLock object at 0x7f90a6ccf400>)
2021-03-25 14:04:48,303 - cc_resizefs.py[DEBUG]: Skipping module named 
resizefs, resizing disabled
2021-03-25 14:04:48,304 - cc_resizefs.py[DEBUG]: resize_info: dev=/dev/sda1 
mnt_point=/ path=/
2021-03-25 14:04:48,314 - cc_resizefs.py[DEBUG]: Resizing / (ext4) using 
resize2fs /dev/sda1
2021-03-25 14:04:48,314 - util.py[DEBUG]: Running command ('resize2fs', 
'/dev/sda1') with allowed return codes [0] (shell=False, capture=True)
2021-03-25 14:04:48,495 - cc_resizefs.py[DEBUG]: Resized root filesystem 
(type=ext4, val=False)
2021-03-25 14:04:48,495 - handlers.py[DEBUG]: finish: 
init-network/config-resizefs: SUCCESS: config-resizefs ran successfully


If I upgrade server:
Linux test-update 4.15.0-140-generic #144-Ubuntu SMP Fri Mar 19 14:12:35 UTC 
2021 x86_64 x86_64 x86_64 GNU/Linux
cloud-guest-utils/bionic,now 0.30-0ubuntu5 all [installed]
cloud-init/bionic-updates,now 20.4.1-0ubuntu1~18.04.1 all [installed]
cloud-initramfs-copymods/bionic-updates,now 0.40ubuntu1.1 all [installed]
cloud-initramfs-dyn-netconf/bionic-updates,now 0.40ubuntu1.1 all [installed]
cloud-initramfs-growroot/bionic-updates,now 0.40ubuntu1.1 all [installed]
2021-03-25 16:00:43,019 - stages.py[DEBUG]: Running module growpart (<module 
'cloudinit.config.cc_growpart' from 
'/usr/lib/python3/dist-packages/cloudinit/config/cc_growpart.py'>) with 
frequency always
2021-03-25 16:00:43,019 - handlers.py[DEBUG]: start: 
init-network/config-growpart: running config-growpart with frequency always
2021-03-25 16:00:43,019 - helpers.py[DEBUG]: Running config-growpart using lock 
(<cloudinit.helpers.DummyLock object at 0x7f97dd2c8400>)
2021-03-25 16:00:43,019 - cc_growpart.py[DEBUG]: growpart disabled: mode=off
2021-03-25 16:00:43,019 - handlers.py[DEBUG]: finish: 
init-network/config-growpart: SUCCESS: config-growpart ran successfully
2021-03-25 16:00:43,019 - stages.py[DEBUG]: Running module resizefs (<module 
'cloudinit.config.cc_resizefs' from 
'/usr/lib/python3/dist-packages/cloudinit/config/cc_resizefs.py'>) with 
frequency always
2021-03-25 16:00:43,019 - handlers.py[DEBUG]: start: 
init-network/config-resizefs: running config-resizefs with frequency always
2021-03-25 16:00:43,019 - helpers.py[DEBUG]: Running config-resizefs using lock 
(<cloudinit.helpers.DummyLock object at 0x7f97dd2c8358>)
2021-03-25 16:00:43,020 - cc_resizefs.py[DEBUG]: Skipping module named 
resizefs, resizing disabled
2021-03-25 16:00:43,020 - handlers.py[DEBUG]: finish: 
init-network/config-resizefs: SUCCESS: config-resizefs ran successfully

Resize doesn't work.
root@test-update:~# fdisk -l
Disk /dev/loop0: 99.2 MiB, 104030208 bytes, 203184 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 97 MiB, 101724160 bytes, 198680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 20 GiB, 21474836480 bytes, 41943040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xbd227ddc

Device     Boot Start      End  Sectors Size Id Type
/dev/sda1        2048 41943006 41940959  20G 83 Linux
root@test-update:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            966M     0  966M   0% /dev
tmpfs           200M  5.5M  194M   3% /run
/dev/sda1       9.8G  3.2G  6.1G  35% /
tmpfs           997M     0  997M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           997M     0  997M   0% /sys/fs/cgroup
/dev/loop0      100M  100M     0 100% /snap/core/10908
/dev/loop1       98M   98M     0 100% /snap/core/9289
tmpfs           200M     0  200M   0% /run/user/0

Regards,

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: cloud-init 20.4.1-0ubuntu1~18.04.1 [modified: 
usr/lib/python3/dist-packages/cloudinit/config/cc_resizefs.py]
ProcVersionSignature: Ubuntu 4.15.0-140.144-generic 4.15.18
Uname: Linux 4.15.0-140-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.23
Architecture: amd64
CloudName: OpenStack
Date: Thu Mar 25 17:15:19 2021
Ec2AMI: ami-00000156
Ec2AMIManifest: FIXME
Ec2AvailabilityZone: nova
Ec2InstanceType: 1x2048
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.cloud.templates.sources.list.debian.tmpl: 
mtime.conffile..etc.cloud.cloud.cfg: 2020-06-16T12:14:12.855482
mtime.conffile..etc.cloud.templates.sources.list.debian.tmpl: 
2018-05-07T12:50:43.862668

** Affects: cloud-init (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic ec2-images

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1921408

Title:
  Ubuntu 18 fails resizefs after upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1921408/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to