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

Unable to register an image to Satellite

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • 6.15.z
    • Registration
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • 0
    • None

      Description of problem:

      Need to register a qcow2 image to Satellite

      How reproducible:

      100%

      Is this issue a regression from an earlier version:

      No

      Steps to Reproduce:

      I only have a mac so this is aarch64 image but same error on x86_64

      virt-customize -a rhel-9.4-aarch64-kvm.qcow2 \
        --run-command "curl -O http://10.37.195.169/pub/katello-ca-consumer-latest.noarch.rpm && rpm -Uvh katello-ca-consumer-latest.noarch.rpm" \
        --run-command "echo '{\"network.hostname-override\":\"host1.example.com\", \"network.hostname\":\"host1.example.com\"}' > /etc/rhsm/facts/katello.facts" \
        --hostname "host1.example.com" \
        --run-command "echo '10.37.195.169 pmoravec-sat615.gsslab.brq2.redhat.com pmoravec-sat615' >> /etc/hosts" \
        --run-command "echo '127.0.0.1 host1.example.com host1' >> /etc/hosts" \
        --run-command "subscription-manager register --org='RedHat' --activationkey='cloud'" 

      Actual behavior:
      This is the full log from the Satellite side:

      ==> /var/log/foreman/production.log <==
      2024-08-26T16:54:52 [I|app|1f1fedb2] Started POST "/rhsm/consumers?owner=RedHat&activation_keys=cloud" for
      10.45.225.5
      at 2024-08-26 16:54:52 +0200
      2024-08-26T16:54:52 [I|app|1f1fedb2] Processing by Katello::Api::Rhsm::CandlepinProxiesController#consumer_activate as JSON
      2024-08-26T16:54:52 [I|app|1f1fedb2] Parameters: {"type"=>"system", "name"=>"(none)", "facts"=>"[FILTERED]", "installedProducts"=>[

      {"productId"=>"419", "productName"=>"Red Hat Enterprise Linux for ARM 64", "version"=>"9.4", "arch"=>"aarch64"}

      ], "contentTags"=>["rhel-9-aarch64", "rhel-9"], "role"=>"", "addOns"=>[], "usage"=>"", "serviceLevel"=>"", "owner"=>"RedHat", "activation_keys"=>"cloud"}

      2024-08-26T16:54:52 [W|app|1f1fedb2] Not queueing Nic::Managed: ["Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123"]
      2024-08-26T16:54:52 [W|app|1f1fedb2] Not queueing Nic::Managed: ["Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123"]
      2024-08-26T16:54:52 [W|app|1f1fedb2] Not queueing Nic::Managed: ["Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123"]
      2024-08-26T16:54:52 [W|app|1f1fedb2] Not queueing Host::Managed: ["Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123", "Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123", "Name (none) can contain only lowercase letters, numbers, dashes and dots."]
      2024-08-26T16:54:52 [W|app|1f1fedb2] Not queueing Host::Managed: ["Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123", "Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123", "Name (none) can contain only lowercase letters, numbers, dashes and dots."]
      2024-08-26T16:54:52 [W|app|1f1fedb2] Not queueing Host::Managed: ["Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123", "Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123", "Name (none) can contain only lowercase letters, numbers, dashes and dots."]
      2024-08-26T16:54:52 [W|app|1f1fedb2] Not queueing Discovery reboot: Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123, Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123, and Name (none) can contain only lowercase letters, numbers, dashes and dots.
      2024-08-26T16:54:52 [E|kat|1f1fedb2] <Class> ActiveRecord::RecordInvalid
      2024-08-26T16:54:52 [E|kat|1f1fedb2] interfaces.name: ["hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123"]
      2024-08-26T16:54:52 [E|kat|1f1fedb2] name: ["hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123", "(none) can contain only lowercase letters, numbers, dashes and dots."]
      2024-08-26T16:54:52 [I|app|1f1fedb2] Completed 422 Unprocessable Entity in 214ms (Views: 1.4ms | ActiveRecord: 20.6ms | Allocations: 42536)
      Expected behavior:
      no issues

      Business Impact / Additional info:

       

            Unassigned Unassigned
            rhn-support-ktordeur Kenny Tordeurs
            Kenny Tordeurs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: