Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-35290

Change the "users" config from dict to list in the Clouldinit default provisioning template

XMLWordPrintable

    • Bug Fix
    • Hide
      .Deprecated `dict` replaced with `list` in `Cloudinit default` template

      Before this update, a `cloud-init` provisioning failure occurred due to the deprecated `dict` type in the `Cloudinit default` template.
      As a consequence, `cloud-init` provisioning failed in RHEL 9.6 due to deprecation warnings.
      With this release, the deprecated `dict` type in users configuration is replaced with the `list` type, and this resolves the deprecation warning.
      As a result, `cloud-init` provisioning for RHEL 9.6 and later versions is functional.
      Show
      .Deprecated `dict` replaced with `list` in `Cloudinit default` template Before this update, a `cloud-init` provisioning failure occurred due to the deprecated `dict` type in the `Cloudinit default` template. As a consequence, `cloud-init` provisioning failed in RHEL 9.6 due to deprecation warnings. With this release, the deprecated `dict` type in users configuration is replaced with the `list` type, and this resolves the deprecation warning. As a result, `cloud-init` provisioning for RHEL 9.6 and later versions is functional.
    • Done
    • Manual

      Description of problem:

      As per the deprecated warning below, dict type is deprecated and list should be used for users config.

      cloud-init[962]: 2025-06-13 06:01:11,556 - lifecycle.py[DEPRECATED]: 'users' of type <class 'dict'> is deprecated in 22.2 and scheduled to be removed in 27.2. Use 'users' as a list.

       

      To avoid the deprecated warning, we need to change the following value from {} to [] in the Cloudinit default template.

      #cloud-config
      hostname: <%= @host.name %>
      fqdn: <%= @host %>
      manage_etc_hosts: true
      users: {}  <================
      runcmd:
      - | 

       

       

      This deprecated warning also somehow causing the failure of cloud-init user-data provisioning for RHEL 9.6. For more information, please refer to the following Jira ticket.

      https://issues.redhat.com/browse/RHEL-96831

          There are no Sub-Tasks for this issue.

              rhn-engineering-lstejska Leos Stejskal
              rhn-support-hyu Hao Chang Yu
              Hao Chang Yu
              Shubham Ganar Shubham Ganar
              Lena Ansorgová (zuansorg) Lena Ansorgová (zuansorg)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: