Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-35290 Change the "users" config from dict to list in the Clouldinit default provisioning template
  3. SAT-36482

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

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Provisioning Templates
    • False
    • Hide

      None

      Show
      None
    • False
    • 0
    • sat-rocket
    • Satellite Rocket Sprint 1, Satellite Rocket Sprint 2, Satellite Rocket Sprint 3

      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

      QE Tracker for https://issues.redhat.com/browse/SAT-35290

              rhn-support-sganar Shubham Ganar
              satellite-jira-automation@redhat.com Satellite Jira-Automation
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: