Bug 975437
| Summary: | Headpin Nightly : System Group info command in cli failing in jenkins automated job | ||
|---|---|---|---|
| Product: | [Retired] Subscription Asset Manager | Reporter: | Tazim Kolhar <tkolhar> |
| Component: | katello | Assignee: | Katello Bug Bin <katello-bugs> |
| Status: | CLOSED WORKSFORME | QA Contact: | Tazim Kolhar <tkolhar> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.3 | CC: | bkearney, cwelton, omaciel, sthirugn |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-06-27 21:10:33 UTC | 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 971511 | ||
|
Description
Tazim Kolhar
2013-06-18 13:11:41 UTC
Please. refer to this explanation Changes to api/v1/system_groups_controller#index have introduced a race condition: 1) Creating a system group adds it to elasticsearch (an async operation) 2) Immediately calling index() w/ search by name will fail if elasticsearch not finished Potential solutions: 1) Make elasticsearch indexing an orchestration event such that the call to create does not return until elasticsearch has finished. 2) When calling index() w/ name param, use ActiveRecord search instead of elasticsearch there was a similar BZ filed but the cli command is different (same feature) https://bugzilla.redhat.com/show_bug.cgi?id=974115#c2 I hope this is information makes sense Thanks This works fine in SAM 1.4. Please reopen if this fails again.
# system_group info --org "ACME_Corporation" --name "sg1"
-------------------------------------------------------------------------------------
System Group Information For Org [ ACME_Corporation ]
-------------------------------------------------------------------------------------
ID : 1
Name : sg1
Description:
None
Max Systems : -1
|