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

Container Repo Discovery "Registry Search Parameter" field not showing content as expected for "rhel9/*" search query

XMLWordPrintable

    • False
    • sat-artemis
    • None
    • None
    • None
    • None

      Description of problem:

      • When attempting to use "Repository Discovery" in Satellite 6.17 to find rhel9 content, the Registry Search Parameter field will show only two rhel8 image repos when searching for "rhel9/*"
      • This is duplicated when making a direct CURL request to the endpoint

      How reproducible:

      • Consistently reproducible in both the Satellite WebUI and direct CURL results

      Is this issue a regression from an earlier version:

      • Unknown

      Steps to Reproduce:

      • In the Satellite Web UI Under Content --> Products 
      • Click "Repo Discovery" in the top-right
      • Choose "Container Images" for Repository Type
      • Use registry.redhat.io
      • Enter credentials
      • Under "Registry Search Parameter" type: 
        • rhel9/*'
      • Click "Discover"

       

      • When running the registry search query using curl:
      [root@rhel9 ~]# curl -s "https://registry.redhat.io/v1/search?q=rhel9/*" | jq                                                        {                                                                                                                                            "num_results": 2,                                                                                                                          "query": "rhel9/*",                                                                                                                        "results": [                                                                                                                                 {                                                                                                                                            "name": "rhel8/dotnet-90",                                                                                                                 "description": "rhcc_registry.access.redhat.com_rhel8/dotnet-90",                                                                          "star_count": 0,                                                                                                                           "is_official": false,                                                                                                                      "is_trusted": false,                                                                                                                       "is_automated": false                                                                                                                    },                                                                                                                                         {                                                                                                                                            "name": "rhel8/dotnet-90-runtime",                                                                                                         "description": "rhcc_registry.access.redhat.com_rhel8/dotnet-90-runtime",                                                                  "star_count": 0,                                                                                                                           "is_official": false,                                                                                                                      "is_trusted": false,                                                                                                                       "is_automated": false                                                                                                                    }                                                                                                                                        ]                                                                                                                                        }    

       


       

      • Looking at the word counts for these different rhel queries, grepping for the name of the result and getting the word counts:
      • RHEL8:
      [root@rhel9 ~]# curl -s "https://registry.redhat.io/v1/search?q=rhel8/*" | jq | grep name | wc -l                                    1755                                                                 
      • RHEL9 (removing the word count to show the only 2 unrelated to rhel 9 results)
      [root@rhel9 ~]# curl -s "https://registry.redhat.io/v1/search?q=rhel9/*" | jq | grep name                                                  "name": "rhel8/dotnet-90",                                                                                                                 "name": "rhel8/dotnet-90-runtime",      
      • RHEL10
      [root@rhel9 ~]# curl -s "https://registry.redhat.io/v1/search?q=rhel10/*" | jq | grep name | wc -l                                   52                                                                  

       

      Actual behavior:

      • The only two discovered repositories will be
        • rhel8/dotnet-90
        • rhel8/dotnet-90-runtime

      Expected behavior:

      • RHEL9 images should be shown, just as seen with using rhel8/* and rhel10/*as "Registry Search Parameters"
      • Would it be possible to add a "Formatting/Syntax Help" helper item in the page to assist customers in finding the desired content?

      Business Impact / Additional info:

       

              Unassigned Unassigned
              rhn-support-dsheets Daniel Sheets
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: