Bug 2127520
| Summary: | Inventory sync would return "nothing to sync" if "All organizations" is selected. | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Sahil Bhasin <sabhasin> |
| Component: | RH Cloud - Inventory | Assignee: | Shimon Shtein <sshtein> |
| Status: | NEW --- | QA Contact: | Satellite QE Team <sat-qe-bz-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.11.2 | CC: | aruzicka, dsinglet, peter.vreman |
| Target Milestone: | Unspecified | Keywords: | FutureFeature, Triaged |
| Target Release: | Unused | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Sahil Bhasin
2022-09-16 16:33:47 UTC
The behavior you are describing is actually an incorrect message for this specific edge case. Theoretically the action can be performed only in the context of a specific org (as opposed to "Any org" selected in this case). In more techincal terms start_inventory_sync from https://github.com/theforeman/foreman_rh_cloud/blob/731a755c43691d9b61c45c22b94734c8b7e8ec53/app/controllers/concerns/inventory_upload/task_actions.rb#L13 is called with selected_org=nil and this will not return any hosts, causing the "Nothing to sync" message. I suppose we should either support "All orgs" (and then filter out those without manifest) or put a better message to indicate that "All orgs" are not supported. Renaming the issue to indicate that this is a bug. We need to either throw a meaningful message or run the sync task for each organization that the user can see. |