| Summary: | Regression: loanee cannot schedule if they are not in the system group | ||
|---|---|---|---|
| Product: | [Retired] Beaker | Reporter: | Raymond Mancy <rmancy> |
| Component: | scheduler | Assignee: | Raymond Mancy <rmancy> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 0.6 | CC: | bpeck, dcallagh, ebaak, hjia, mcsontos, pcassaro, rmancy, stl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-04-07 03:39:37 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
The quick fix around this for anyone experiencing problems is to ensure they are in a Group which is attached to the System. *** Bug 692233 has been marked as a duplicate of this bug. *** |
beaker cannot find a valid system if a loanee schedules a job against a system which has groups of which they are not a member. This is because the _available() in model.py does not take into account loaned users anymore. The fix is to do index 8717939..4240fa5 100644 --- a/Server/bkr/server/model.py +++ b/Server/bkr/server/model.py @@ -1721,6 +1721,7 @@ def _available(self, user, system_status=None, systems=None): if not user.is_admin(): query = query.filter(or_(and_(System.owner==user), + System.loaned == user, and_(System.shared==True, System.groups==None, ),