Uploaded image for project: 'Automation Hub'
  1. Automation Hub
  2. AAH-1958

Index Execution Environments on Remote Registry brings Deprecated EE from 2.0 Early Access

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • 2.4
    • 2.2.1
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Skip deprecated EE when syncing from registry.redhat.io
    • Bug Fix

      Description

      Index Execution Environments on Remote Registry brings Deprecated EE from 2.0 Early Access

      Private Automation Hub installed with latest AAP 2.2.1 installer.

      Key Dependency Versions

       

      "versions": [
              {
                  "component": "core",
                  "version": "3.18.6"
              },
              {
                  "component": "container",
                  "version": "2.10.7"
              },
              {
                  "component": "ansible",
                  "version": "0.13.2"
              },
              {
                  "component": "galaxy",
                  "version": "4.5.2"
              }
          ], 

       

      Steps to Reproduce

      1. Add a remote registry for syncing EE from registry.redhat.io
      2. Sync the remote registry
      3. Index execution environments

      Actual Behavior

      Index Execution Environments on Remote Registry brings Deprecated EE from 2.0 Early Access.

      Expected Behavior

      Index shouldn't download deprecated EE from 2.0 Early Access.

      Possible fix below ( also tested on my lab and worked fine).

      https://github.com/ansible/galaxy_ng/blob/master/galaxy_ng/app/tasks/index_registry.py#L130-L134

      query = {
              "filter": "build_categories=in=('Automation execution environment') and release_categories=in=('Generally Available')",
              "page": 0,
              "sort_by": "creation_date[asc]"
          } 

              rhn-support-brsanche Bruno Sanchez
              rhn-support-brsanche Bruno Sanchez
              Bruno Rocha
              Bruno Rocha Bruno Rocha
              Christian Torrens Christian Torrens
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: