Public bug reported: Our current VMs are all reporting the same error, since they upgraded cloud-init to the version 23.4.4-0ubuntu0~22.04.1. If I downgrade cloud-init to version 23.1.2-0ubuntu0~22.04.1, the problem disappears.
The following error is visible in journalctl: Mar 07 10:56:44 hostname-redacted cloud-init[2190514]: 2024-03-07 09:56:44,701 - util.py[WARNING]: failed stage init Mar 07 10:56:44 hostname-redacted cloud-init[2190514]: failed run of stage init Mar 07 10:56:44 hostname-redacted cloud-init[2190514]: ------------------------------------------------------------ Mar 07 10:56:44 hostname-redacted cloud-init[2190514]: Traceback (most recent call last): Mar 07 10:56:44 hostname-redacted cloud-init[2190514]: File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 781, in status_wrapper Mar 07 10:56:44 hostname-redacted cloud-init[2190514]: ret = functor(name, args) Mar 07 10:56:44 hostname-redacted cloud-init[2190514]: File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 461, in main_init Mar 07 10:56:44 hostname-redacted cloud-init[2190514]: init.setup_datasource() Mar 07 10:56:44 hostname-redacted cloud-init[2190514]: File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 531, in setup_datasource Mar 07 10:56:44 hostname-redacted cloud-init[2190514]: self.datasource.setup(is_new_instance=self.is_new_instance()) Mar 07 10:56:44 hostname-redacted cloud-init[2190514]: File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceVMware.py", line 239, in setup Mar 07 10:56:44 hostname-redacted cloud-init[2190514]: advertise_local_ip_addrs(host_info, self.rpctool, self.rpctool_fn) Mar 07 10:56:44 hostname-redacted cloud-init[2190514]: AttributeError: 'DataSourceVMware' object has no attribute 'rpctool' Mar 07 10:56:44 hostname-redacted cloud-init[2190514]: ------------------------------------------------------------ ProblemType: Bug DistroRelease: Ubuntu 22.04 Package: cloud-init 23.4.4-0ubuntu0~22.04.1 ProcVersionSignature: Ubuntu 5.15.0-97.107-generic 5.15.136 Uname: Linux 5.15.0-97-generic x86_64 ApportVersion: 2.20.11-0ubuntu82.5 Architecture: amd64 CasperMD5CheckResult: unknown CloudArchitecture: x86_64 CloudID: vmware CloudName: vmware CloudPlatform: vmware CloudSubPlatform: guestinfo (guestinfo.metadata) Date: Thu Mar 7 11:15:49 2024 InstallationDate: Installed on 2024-03-02 (5 days ago) InstallationMedia: Ubuntu-Server 22.04.2 LTS "Jammy Jellyfish" - Release amd64 (20230217.1) PackageArchitecture: all ProcEnviron: TERM=xterm-256color PATH=(custom, no user) LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: cloud-init SubiquityClientDebug: 2024-03-02 02:32:03,283 INFO subiquity:126 Starting Subiquity revision 4380 2024-03-02 02:32:03,284 INFO subiquity:127 Arguments passed: ['/snap/subiquity/4380/usr/bin/subiquity'] 2024-03-02 02:32:03,284 DEBUG subiquitycore.screen:135 KDGKBTYPE returned b'\x02', is_linux_tty True 2024-03-02 02:32:03,284 DEBUG asyncio:59 Using selector: EpollSelector UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: cloud-init (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug jammy ubuntu-pro uec-images -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2056439 Title: Latest cloud-init fails with AttributeError: 'DataSourceVMware To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2056439/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs