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

Search query for Actions::Katello::Repository::Sync using resource_id is inconsistent

XMLWordPrintable

    • None
    • None
    • None
    • None

      Description of problem:

      I have four repos (two products with two repos each in my case):

      ~]# hammer repository list --organization-id 3
      --|------------|------------|-------------|
      ID | NAME | PRODUCT | CONTENT TYPE |
      --|------------|------------|-------------|
      4 | AJHDxRmzkKuO | hrIfAN | yum |
      3 | fxMckIvZRhr | hrIfAN | yum |
      2 | PSXHeiTjSubu | fqwiXHEcQxTm | yum |
      1 | xovZbdO | fqwiXHEcQxTm | yum |
      --|------------|------------|-------------|

      and searched for:

      Actions::Katello::Repository::Sync and organization_id = 3 and resource_id = 4

      I got one repo as expected.

      I searched for:

      Actions::Katello::Repository::Sync and organization_id = 3 and resource_id = 3

      this time I got more than one repo.

      Version-Release number of selected component (if applicable):
      Sat6.11.1 snap 1

      How reproducible:
      every time

      Steps to Reproduce:
      1. Create two products with two repos each
      2. Search `
      Actions::Katello::Repository::Sync and organization_id = 3 and resource_id = 4`
      3. Search `
      Actions::Katello::Repository::Sync and organization_id = 3 and resource_id = 3`
      4. Compare the results

      Actual results:
      multiple repos

      Expected results:
      one repo

      Additional info:

      Using a search in this format, with resource_type = Katello::Repository, works as expected:
      Actions::Katello::Repository::Sync and organization_id = 3 and resource_type = Katello::Repository and resource_id = 3

              jira-bugzilla-migration RH Bugzilla Integration
              jira-bugzilla-migration RH Bugzilla Integration
              RH Bugzilla Integration RH Bugzilla Integration
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: