Latest cloud-init fails with AttributeError: 'DataSourceVMware' object has no attribute 'rpctool'

Bug #2056439 reported by Thomas Seip
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
Fix Released
Undecided
Chad Smith

Bug Description

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)

Revision history for this message
Thomas Seip (btseip) wrote :
Thomas Seip (btseip)
summary: - Latest cloud-init fails with AttributeError: 'DataSourceVMware
+ Latest cloud-init fails with AttributeError: 'DataSourceVMware' object
+ has no attribute 'rpctool'
Revision history for this message
Alberto Contreras (aciba) wrote :

Thanks, Thomas, for reporting this!

Upstream PR fixing this: https://github.com/canonical/cloud-init/pull/5021

Changed in cloud-init (Ubuntu):
status: New → In Progress
assignee: nobody → Chad Smith (chad.smith)
Brett Holman (holmanb)
Changed in cloud-init (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-init - 24.1.1-0ubuntu1

---------------
cloud-init (24.1.1-0ubuntu1) noble; urgency=medium

  * Upstream snapshot based on 24.1.1.
    List of changes from upstream can be found at
    https://raw.githubusercontent.com/canonical/cloud-init/24.1.1/ChangeLog
    - Bugs fixed in this snapshot: (LP: #2056439, #2056460, #2055077)
      (LP: #2056194)

 -- Brett Holman <email address hidden> Mon, 11 Mar 2024 21:09:37 -0600

Changed in cloud-init (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.