Bug 691623 - Regression: loanee cannot schedule if they are not in the system group
Summary: Regression: loanee cannot schedule if they are not in the system group
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: scheduler
Version: 0.6
Hardware: Unspecified
OS: Unspecified
high
high vote
Target Milestone: ---
Assignee: Raymond Mancy
QA Contact:
URL:
Whiteboard:
: 692233 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-29 03:26 UTC by Raymond Mancy
Modified: 2019-05-22 13:38 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-07 03:39:37 UTC


Attachments (Terms of Use)

Description Raymond Mancy 2011-03-29 03:26:53 UTC
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,
                                         ),

Comment 1 Raymond Mancy 2011-03-29 03:27:43 UTC
The quick fix around this for anyone experiencing problems is to ensure they are in a Group which is attached to the System.

Comment 2 Raymond Mancy 2011-03-30 22:54:42 UTC
*** Bug 692233 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.