Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-81169

Cloud-init fails to subscribe system if activation key 'org' is not an integer [rhel-8.10.z]

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • rhel-8.10.z
    • None
    • cloud-init
    • cloud-init-23.4-7.el8_10.9
    • No
    • Moderate
    • 1
    • rhel-virt-cloud
    • ssg_virtualization
    • 2
    • Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • RHELOPC Sprint 41
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      This is a clone of issue RHEL-80331 to use for version rhel-8.10.z

      Original description:

      What were you trying to do that didn't work?

      Subscribing a VM with Satellite using an activation key in cloud-init fails if 'org' is a string.

      What is the impact of this issue to you?

      Important, as it's preventing updates in customer's machine fleet.

      Please provide the package NVR for which the bug is seen:

      cloud-init-23.4-19.el9_5.4.noarch

      How reproducible is this bug?:

      Always in customer environment. I've not tried to reproduce it locally.

      Steps to reproduce

      1. In Satellite, have an org using a string instead of a number.
      2. Create an activation key.
      3. Provision a VM and try to subscribe it using the activation key. Add something like this to cloud-init user data:
      rh_subscription:
        activation-key: my-activation-key
        org: my-org

      Expected results

      System subscribed

      Actual results

      Registration failed.

      When validating the schema:

      # cloud-init schema --system
      Invalid user-data /var/lib/cloud/...
      Error: Cloud config schema errors: rh_subscription.org: 'my-org' is not of type 'integer'

      This issue is already fixed upstream:

      https://github.com/canonical/cloud-init/issues/5382

       

       

              rh-ee-anisinha Ani Sinha
              watson-automation Watson Automation
              virt-maint virt-maint
              Amy Chen Amy Chen
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: