system_info can change the distro

Bug #1855170 reported by Mina Galić
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Undecided
Unassigned

Bug Description

In triaging https://bugs.launchpad.net/cloud-init/+bug/1854594 i found that a network provided system_info can actively change which distro class is picked:

system_info:
    default_user:
        lock_passwd: true
        name: root
        shell: /bin/bash
    distro: ubuntu

will use distro/__init__.py's create_user() and hence lock_passwd() methods!

If this is a feature, it should be documented.
If this is a bug, it needs fixing.

Mina Galić (minagalic)
description: updated
Revision history for this message
Ryan Harper (raharper) wrote :

Thanks for filing the issue. Can you attach the tarball from running:

sudo cloud-init collect-logs

If not that, then a copy of /var/log/cloud-init.log would also work.

Changed in cloud-init:
status: New → Incomplete
Revision history for this message
Ryan Harper (raharper) wrote :

Also, could you expand on what you mean by "network provided system_info" ?

Revision history for this message
Mina Galić (minagalic) wrote :

in this case, the change is triggered by vendor-data, which in hetzner's case is coming from network (unless already cached)

Revision history for this message
Ryan Harper (raharper) wrote :

Do you have a copy of what hetzner is setting in vendor-data?

Users can always disable vendor-data or override it; Though I generally would say, vendor-data overriding values that users typically provide is bad form.

Revision history for this message
Chad Smith (chad.smith) wrote :

the easiest way to get vendor data is
sudo cloud-init query vendordata

Revision history for this message
Mina Galić (minagalic) wrote :
Download full text (4.8 KiB)

vendor data, or at least everything we can get out right now, because of how broken the fbsd code-paths are broken. blame me and @goneri on this one.

Content-Type: multipart/mixed; boundary="===============4762425958046506823=="
MIME-Version: 1.0

--===============4762425958046506823==
Content-Type: text/text/cloud-config; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="cloud-config"

#cloud-config
fqdn: ubuntu-2gb-nbg1-1
manage_etc_hosts: true
random_seed:
  data: !!binary |
    dHNWQVZEc0ZsTGNVZHBrSTh5ay85UElkR2xNdEF6Q2pHa1ZReHhZTlJEWmFuVGdPQzVBMHpaUjZN
    Q09EcGkzMC80VkJsQzFsTDdlMm5IcGVCNC9DWkhzcitUQkd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wdy9ZaGpIWkYwaFhYQVl2ZFFs
    MncvK3pub0dzZnRValZPbkFvK2hNNU5odGN5cWpxeU1UZjFMdFR4dWVWOGhvNjlOWm1idEJwcjJW
    bWNDWnJDNjJWbE81Vi80a05BdVVONUNSMFNJRUtpQ3JFU3c2ZjhSTjRNOEt5QUR6eGcvbkgrbGY5
    UDFXcHRCUk5jUy9BbnNMTWU2VXI0UmNWWklsKzY0MWRSR0hJR0Mvc1ZSYUxiY0x1NGRBR3ZQaWpa
    VVFNeEtmeVY4Sy91RG5nTDkwQXNyY3VQOGlDSW9MdEg0VEpjZVlKMndSc...

Read more...

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for cloud-init because there has been no activity for 60 days.]

Changed in cloud-init:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers