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

Need an option to identify Orphaned Products/Repositories using the Hammer utility in Red Hat Satellite 6

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 6.15.z, 6.16.z, 6.17.z, 6.18.z
    • Hammer, Repositories
    • None
    • False
    • sat-artemis
    • None
    • None
    • None
    • None

      Problem Statement

      Need an option to identify Orphaned Products/Repositories using the Hammer utility in Red Hat Satellite 6

       

      User Experience & Workflow

      Once the subscription expires/removed from the Red Hat Satellite 6's manifest file, the existing belonging products and their repositories become "Orphan". 

      This leads to failure of repository sync (403, message='Forbidden') or the existing sync plan, and sometimes impacts manifest refresh jobs too.

      Example - The "Red Hat Enterprise Linux Server - Extended Life Cycle Support (Orphaned)" product is orphaned; however, none of the executed hammer commands can show a column to identify whether this repo is "orphaned" or not. 

       ~~~

      $ hammer repository list | grep -i Extended
      2   | Red Hat Enterprise Linux 7 Server - Extended Life Cycle Support - Optional RP... | Red Hat Enterprise Linux Server - Extended Life Cycle Support | yum          | rhel-7-server-els-optional-rpms                          | https://cdn.redhat.com/content/els/rhel/server/7/7Server/x86_64/optional/os       

             
      ~~~
      ~~~

      $

      hammer product list --organization-id=1
      {}{}{}|{}{}{}------------------------------------------------------------------------{}{}{}{}{}|{}{}{}{}{}---{}{}{}{}{}|{}{}{}{}{}--{}{}{}{}{}|{}{}{}{}{}--{}{}{}{}{}|{}{}{}{}{}------------
      ID  | NAME                                                                             | DESCRIPTION   | ORGANIZATION | REPOSITORIES | SYNC STATE       
      {}{}{}|{}{}{}------------------------------------------------------------------------{}{}{}{}{}|{}{}{}{}{}---{}{}{}{}{}|{}{}{}{}{}--{}{}{}{}{}|{}{}{}{}{}--{}{}{}{}{}|{}{}{}{}{}------------
       ...
      250 | Red Hat Enterprise Linux Server - Extended Life Cycle Support                    |               | RedHat       | 3            |                  
      65  | Red Hat Enterprise Linux Server - Extended Life Cycle Support (for IBM z Syst... |               | RedHat       | 0            |              
      

        
      ~~~
      ~~~

       

      $ hammer repository info --id=2
      Id:                 2
      Name:               Red Hat Enterprise Linux 7 Server - Extended Life Cycle Support - Optional RPMs x86_64
      Label:              Red_Hat_Enterprise_Linux_7_Server_Extended_Life_Cycle_Support_Optional_RPMs_x86_64
      Description:        
      Organization:       RedHat
      Red Hat Repository: yes
      Content Type:       yum
      Content Label:      rhel-7-server-els-optional-rpms
      Mirroring Policy:   Complete Mirroring
      Url:                https://cdn.redhat.com/content/els/rhel/server/7/7Server/x86_64/optional/os
      Publish Via HTTP:   no
      Published At:       https://satellite.example.com/pulp/content/RedHat/Library/content/els/rhel/server/7/7Server/x86_64/optional/os/
      Relative Path:      RedHat/Library/content/els/rhel/server/7/7Server/x86_64/optional/os
      Download Policy:    on_demand
      Publish Settings:   
          Restrict to architecture: x86_64
          Restrict to OS Version:   No restriction
      HTTP Proxy:         
          HTTP Proxy Policy: global_default_http_proxy
      Product:            
          Id:   250
          Name: Red Hat Enterprise Linux Server - Extended Life Cycle Support
      GPG Key:            
      Sync:               
          Status:         Not Synced
          Last Sync Date: about 1 year
      Created:            2024/11/13 16:44:35
      Updated:            2024/11/13 16:44:35
      Content Counts:     
          Packages:       24519
          SRPMs:          0
          Module Streams: 0
          Package Groups: 2
          Errata:         3545
      

      ~~~

      Requirements:

      • The hammer command like "hammer product list\info" and "hammer repository list\info" should have the Orphaned status displayed
      • As of now, the only option to identify such repos is using the "Content" -> "Sync status" page and "Content" -> "Red Hat Repositories" page in Satellite WEBUI.

      Business Impact:

      • Not every customer and user has satellite webui access, but they can access the command line and Hammer. That is why it's important for Hammer to be able to show this" .

              Unassigned Unassigned
              rhn-support-snarya Sneha Arya
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: