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

User should not allow be allowed to remove Satellite hostname profile

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Do
    • Icon: Normal Normal
    • None
    • 6.15.0
    • RH Cloud
    • 1
    • False
    • Moderate
    • sat-proton
    • None
    • None
    • None
    • To Do

      Description of problem:

      Updating all the self-registered satellite instances to point to another instance and noticed that the RHCloud inventory upload stopped working since then The tasks fails with: "can't find record with friendly id: "satellite.example.com "can't find record with friendly id: "satellite.example.com"can't find record with friendly id: "satellite.example.com""

       

      And triggering it manual from 'restart' in the rchloud upload task:

      ~~~ I, 2024-05-22T23:48:03.718942 #2954385 INFO – : Report archived successfully Successfully generated /var/lib/foreman/red_hat_inventory/generated_reports/report_for_3.tar.xz for organization id x I, 2024-06-12T09:57:30.832526 #1063289 INFO – : Started generating hosts report in /tmp/xx rake aborted!

      ActiveRecord::RecordNotFound: can't find record with friendly id: "satellite.example.com" /usr/share/gems/gems/friendly_id-5.5.1/lib/friendly_id/finder_methods.rb:119:in `raise_not_found_exception' /usr/share/gems/gems/friendly_id-5.5.1/lib/friendly_id/finder_methods.rb:34:in `find' /usr/share/gems/gems/foreman_rh_cloud-9.0.55/lib/foreman_rh_cloud.rb:102:in `rescue in foreman_host' /usr/share/gems/gems/foreman_rh_cloud

       

      Why is there a host record all when Self-registered is not even supported. When the sat6 has a record for itself then it uploads it also, but when the Sat6 is attached to another Sat6 then it is a duplicate upload to the RHCloud.

       

       

      Steps to Reproduce:

      Delete the host entries of the Satellite server itself and run the rh_cloud_inventory:report:generate task

      1. hammer host delete --name=$(hostname -f)
      2. hammer host delete --name=<internalcapsule name if it is on a CNAME>
      3. foreman-rake rh_cloud_inventory:report:generate

      Actual behavior:

      There is a host record when the Satellite is Self-registered ( unsupported scenario) where the Satellite has a record for itself then it also uploads on RH Cloud.

      Updating all the self-registered satellite instances to point to another Satellite then it performs  a duplicate upload to the RHCloud.

       

      Business Impact / Additional info:

      Sat6 self-registered not supported, but it looks like Sat6 to Sat6 is also not supported. 

              rhn-support-chrobert Chris Roberts
              rhn-support-amiagarw Amit Agarwal
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: