Message902

Author rader
Recipients dan, rader
Date 2007.01.31 08:07
Content
> >  > "GeneralPurposeVM" is unclaimed, it reports the status of the 
 > >  > "SuspendVM" instead.  Without this, our reports of GLOW utilization are 
 > >  > not showing the full utilization that really exists.
 > >  > 
 > >  > Here's an example of a condor_status query that does the right thing.  
 > >  > It shows the state of each general purpose VM or, if unclaimed, the 
 > >  > state of the corresponding suspension VM.
 > >  > 
 > >  > condor_status -pool glow.cs.wisc.edu -constraint 'IsGeneralPurposeVM && OpSys == "LINUX"' \
 > >  >  -f "%s\n" 'ifThenElse(State=?="Unclaimed",ifThenElse(SuspendVMClaimed,"Claimed","Unclaimed"),State)'
 > >
 > > So change
 > >
 > >  -constraint 'IsGeneralPurposeVM =?= True'
 > >
 > > to that crazy one above, right?
 > 
 > Notice that the constraint isn't all that crazy in the command above.  
 > What is crazy is the -f (-format) option to print out the state of the 
 > VM.  It prints the state of the VM in a way that takes into account the 
 > state of the suspension VM.

Sorry, I can't parse that ifThenElse format thing...

Here's what the graphing backend does...

condor_remoteuser_status does "condor_status -constraint 'IsGeneralPurposeVM =?= True' -long"
and pretty prints the results

extract_condor_status parses the pretty print output of condor_remoteuser_status 

So...

grepping on ^host|claimed on the -long output for some host I get...

 Name = "vm3@glow-c176.cs.wisc.edu"
 SuspendVMClaimed = (vm4_State == "Claimed")
 State = "Claimed"
 vm3_State = "Claimed"
 vm2_State = "Claimed"
 vm4_State = "Claimed"

...and I need help parsing that.  Let's do it in person sometime.

steve
- - -
History
Date User Action Args
2007-01-31 08:07:48radersetrecipients: + rader, dan
2007-01-31 08:07:48raderlinkissue4164 messages
2007-01-31 08:07:48radercreate