Bug 709853

Summary: Loaned machines listed as available for provisioning
Product: [Retired] Beaker Reporter: Marian Csontos <mcsontos>
Component: web UIAssignee: Raymond Mancy <rmancy>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: 0.6CC: bpeck, dcallagh, ebaak, mcsontos, 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-06-16 00:51:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Marian Csontos 2011-06-01 19:14:38 UTC
Description of problem:
Go to reserve workflow page, select a distro and click on "Show Systems". Machines loaned to other users have "Reserve Now" link instead of "Queue Reservation". Also the "User" column is empty. Everything looks just fine.

Version-Release number of selected component (if applicable):
0.6.12 (devel version)

How reproducible:
100%

Steps to Reproduce:
1. Find a machine loaned to another user
2. Go to reserve workflow page, pick a distro and click on "Show Systems"
3. Find the machine from step 1
  
Actual results:
Machines has "Reserve Now" link instead of "Queue Reservation". Also the "User" column is empty. (Here one does "Reserve Now" and few hours later will start wonder why it is still in "Queued" state.)

Expected results:
Machine has "Queue Reservation" link and the user camping on the machine is displayed.

Additional info:
Observed on beaker-stage where I have admin rights.

Comment 1 Raymond Mancy 2011-06-01 23:09:46 UTC
You're right. The problem is that the logic that determines 'Reserve Now' vs 'Queue Reservation' is merely a check to see if the system has a user.

Comment 2 Raymond Mancy 2011-06-10 05:13:21 UTC
In the interests of consistency I think it would be better to not try and use the 'User' column to describe the User and/or Loanee, as everywhere else they are two different things.