vmware: Support cloud-init datasource GuestInfo#290
Conversation
|
@akutz Thank you for your contribution. |
|
Thanks @akutz! Are you sure this does will break the existing vSphere 7.0 use case? |
Are you asking if I'm sure this won't break the existing 7.0 image? If so, then no, I've not tested the image. You should do that yourself prior to merging this PR. What I am sure of is this PR solves the issue encountered with the cloud-init userdata example provided in that e-Mail thread. |
marwinski
left a comment
There was a problem hiding this comment.
We haven't checked VMwareGuestInfo yet.
marwinski
left a comment
There was a problem hiding this comment.
we had to rename features/vmware/file.include/usr/bin/dscheck_VMwareGuestInfo.sh to features/vmware/file.include/usr/bin/dscheck_VMwareGuestInfo. With this it worked for both environments.
Ack. I'll submit the changes to the PR ASAP |
|
@akutz You have pull request review with status CHANGES_REQUESTED, please check |
0b79853 to
dcfe3f0
Compare
This patch adds support for the Cloud-Init Datasource, VMwareGuestInfo, to the VMware image. The files in this commit were copied from release v1.4.1 of the datasource from https://github.com/vmware/cloud-init-vmware-guestinfo. The datasource has a dependency on the netifaces library, and so the package python3-netifaces was added to the package file for the vmware image.
dcfe3f0 to
60ad41f
Compare
|
Both changes are now applied. Please note that this datasource will become a standard part of cloud-init in 21.3 (canonical/cloud-init#953). |
|
Hi @akutz. Thanks for the changes and sorry for the delay. We would like to include this in the upcoming Garden Linux release next week. Could you sign the contributor license agreement so that we can go ahead. Thanks. |
Done and done! |
|
FYI @marwinski, I'm not sure on which Debian release Gardener Linux is based, but Debian Bookworm and Sid both have Cloud-Init v21.3. Since Bookworm is the next release for Debian, I imagine you will be able to take advantage of the Cloud-Init DataSource for VMware soon. |
|
@marwinski The GitHub check above says I've not yet signed the CLA when I clearly have signed the CLA: |

How to categorize this PR?
/kind enhancement
/area os
/os garden-linux
What this PR does / why we need it:
This patch adds support for the Cloud-Init Datasource, VMwareGuestInfo, to the VMware image. The files in this commit were copied from release
v1.4.1of the datasource from https://github.com/vmware/cloud-init-vmware-guestinfo.The datasource has a dependency on the
netifaceslibrary, and so the packagepython3-netifaceswas added to the package file for thevmwareimage.The patch was verified by:
Building the VMware image:
Verifying the cloud-init datasource's files were copied into the image correctly:
Please note the file
dscheck_VMwareGuestInfo.shmaintains its necessary, executable permissions.Verifying the
python3-netifacespackage was installed correctly:Which issue(s) this PR fixes:
Fixes NA
Special notes for your reviewer:
features/vmware/exec.confginstead of copying static files. This is the process used by thekube-image-builderproject. However, a network-based, dynamic install is less deterministic than copying a few static files, so the latter method was used.Release note: