[pve-devel] [PATCH 2/8 container] cloudinit: basic implementation
Fiona Ebner
f.ebner at proxmox.com
Thu Feb 13 13:02:43 CET 2025
Am 13.02.25 um 12:29 schrieb Mira Limbeck:
> On 2/13/25 12:01, Fiona Ebner wrote:
>> Am 10.02.25 um 13:07 schrieb Daniel Herzig:
>>> +sub gen_cloudinit_metadata {
>>> + my ($user) = @_;
>>> +
>>> + my $uuid_str = Digest::SHA::sha1_hex($user);
>>
>> Hmm, shouldn't this also depend on the vendor data? Otherwise, if only
>> the vendor data changes, then it will still have the same instance ID.
>>
>> Seems like for VMs, we only use user and network data here.
>>
>> @Mira do you know more by chance?
> I don't think vendor-data should be part of the instance-id. It's used
> to create a first configuration that a user can override via the user
> config.
> The vendor-data won't be used again once it's already configured.
> I'm not a 100% sure, but changing the instance-id leads to rerunning
> lots of modules (e.g. User, Network and others), but the vendor-data
> parts do not.
>
> Only a complete `cloud-init clean` should trigger the modules using
> vendor-data to run again.
>
>
> https://cloudinit.readthedocs.io/en/latest/explanation/vendordata.html#vendor-data
Oh, thank you for the explanation!
More information about the pve-devel
mailing list