Skip to content

Conversation

@palash-gandhi
Copy link
Contributor

@palash-gandhi palash-gandhi commented Jan 7, 2025

Problem

cloud-init failed on a 24.04 appliance because of a function call from the wrong module.
The read_dmi_data function exists in dmi.py and not in util.py.

Solution

Use the correct module.

Testing Done

appliance-build: https://ops-jenkins.eng-tools-prd.aws.delphixcloud.com/job/appliance-build/job/os-upgrade/job/pre-push/83/console
pg-os-upgrade.dcol2.delphix.com:

delphix@localhost:~$ sudo tail -f /var/log/cloud-init.log
sudo: unable to resolve host localhost.localdomain: Name or service not known
2025-01-08 02:10:31,754 - main.py[DEBUG]: Ran 7 modules with 0 failures
2025-01-08 02:10:31,754 - util.py[DEBUG]: Reading from /proc/uptime (quiet=False)
2025-01-08 02:10:31,755 - util.py[DEBUG]: Read 12 bytes from /proc/uptime
2025-01-08 02:10:31,755 - atomic_helper.py[DEBUG]: Atomically writing to file /var/lib/cloud/data/status.json (via temporary file /var/lib/cloud/data/tmp665tf6u0) - w: [644] 541 bytes/chars
2025-01-08 02:10:31,756 - atomic_helper.py[DEBUG]: Atomically writing to file /var/lib/cloud/data/result.json (via temporary file /var/lib/cloud/data/tmp1jthhq31) - w: [644] 103 bytes/chars
2025-01-08 02:10:31,756 - util.py[DEBUG]: Creating symbolic link from '/run/cloud-init/result.json' => '../../var/lib/cloud/data/result.json'
2025-01-08 02:10:31,756 - util.py[DEBUG]: Reading from /proc/uptime (quiet=False)
2025-01-08 02:10:31,756 - util.py[DEBUG]: Read 12 bytes from /proc/uptime
2025-01-08 02:10:31,756 - util.py[DEBUG]: cloud-init mode 'modules' took 0.308 seconds (0.30)
2025-01-08 02:10:31,756 - handlers.py[DEBUG]: finish: modules-final: SUCCESS: running modules for final
^C

@palash-gandhi palash-gandhi force-pushed the dlpx/pr/palash-gandhi/cb7354fa-c499-446b-94d9-d4cc9ae42cb1 branch from 2248d68 to 9222334 Compare January 7, 2025 23:32
@palash-gandhi palash-gandhi changed the title 24.04: cloud-init fails due to incorrect module call DLPX-93024 24.04: cloud-init fails due to incorrect module call Jan 8, 2025
@palash-gandhi palash-gandhi force-pushed the dlpx/pr/palash-gandhi/cb7354fa-c499-446b-94d9-d4cc9ae42cb1 branch from 9222334 to 9a25ac8 Compare January 8, 2025 02:13
@palash-gandhi palash-gandhi marked this pull request as ready for review January 8, 2025 02:13
@palash-gandhi palash-gandhi enabled auto-merge (squash) January 8, 2025 02:18
@palash-gandhi palash-gandhi merged commit 184127b into os-upgrade Jan 8, 2025
14 of 21 checks passed
@palash-gandhi palash-gandhi deleted the dlpx/pr/palash-gandhi/cb7354fa-c499-446b-94d9-d4cc9ae42cb1 branch January 8, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants