-
Bug
-
Resolution: Done-Errata
-
Normal
-
stream
-
1
-
False
-
-
False
-
0
-
Phoenix - Content
-
-
-
Sprint 137, Sprint 138, Sprint 139, Sprint 140, Sprint 141
-
Low
-
Automated
-
Yes
Description of problem:
When we trigger repo discovery via API and provide url of particular repo, all repos hosted there are returned in the Discover task instead.
How reproducible:
Always
Is this issue a regression from an earlier version:
Yes
Steps to Reproduce:
1. Run test id 38df5479-9127-49f3-a30e-26b33655971a and watch it fail.
or
1. Trigger the discover task via API
[root@sat ~]# curl -sku admin:changeme -H "Content-type: application/json" -X POST -d '{"id": 5, "url": "http://myfixturehost.redhat.com/repo_discovery", "content_type": "yum"}' https://$(hostname)/katello/api/organizations/5/repo_discover | jq
{
"id": "1f5d7e26-9c64-4a3c-a955-39becd16430e",
"label": "Actions::Katello::Repository::Discover",
"pending": true,
"action": "Discover",
"username": "admin",
"started_at": "2024-07-29 13:55:12 UTC",
"ended_at": null,
"state": "planned",
"result": "pending",
"progress": 0.0,
"input":
,
"output": [],
"humanized":
,
"cli_example": null,
"start_at": "2024-07-29 13:55:12 UTC",
"available_actions":
}
2. Check the task result
[root@sat ~]# curl -sku admin:changeme -H "Content-type: application/json" -X GET https://$(hostname)/foreman_tasks/api/tasks/1f5d7e26-9c64-4a3c-a955-39becd16430e | jq
{
"id": "1f5d7e26-9c64-4a3c-a955-39becd16430e",
"label": "Actions::Katello::Repository::Discover",
"pending": false,
"action": "Discover",
"username": "admin",
"started_at": "2024-07-29 13:55:12 UTC",
"ended_at": "2024-07-29 13:55:21 UTC",
"duration": "8.277642",
"state": "stopped",
"result": "success",
"progress": 1.0,
"input":
,
"output": [
"http://myfixturehost.redhat.com/repo_discovery/fakerepo01/",
"http://myfixturehost.redhat.com/repo_discovery/fakerepo01/",
"http://myfixturehost.redhat.com/fake_yum0/",
"http://myfixturehost.redhat.com/fake_yum1/",
"http://myfixturehost.redhat.com/fake_yum2/",
...
],
"humanized":
,
"cli_example": null,
"start_at": "2024-07-29 13:55:12 UTC",
"available_actions":
}
Actual behavior:
Returns all repos on that host.
Expected behavior:
Should return just the one we are looking for.
Business Impact / Additional info:
Low
- links to
-
RHBA-2024:140284 Important: Satellite 6.16.0 release