[Haizea] How to clear or reset the queue of haizea

prashanth.srinivas at wipro.com prashanth.srinivas at wipro.com
Wed Oct 7 00:54:54 CDT 2009


Hi Borja,
 
Thanks for that, I have used haizea-cancel-lease command, but it is throwing "list index out of range" error and not cancelling the lease. However once I delete ~/.haizea/leases.dat file, it is working fine
 
Steps followed:
(1). First executed haizea-list-leases command
(2). Then fired haizea-cancel-lease command
 
-------------------------------------------------------------------
root at wipro-desktop:/opt/opennebula# haizea-list-leases
 ID   Type          State      Starting time           Duration      Nodes
 1    Best-effort   Active     Unspecified             01:00:00.00   1
root at wipro-desktop:/opt/opennebula# haizea-cancel-lease -l 1
XMLRPC fault: <type 'exceptions.RuntimeError'>:cannot join current thread
------------------------------------------------------------------------------

root at wipro-desktop:/opt/opennebula# haizea --fg -c /usr/share/haizea/etc/sample_opennebula.conf
[                      ] ENACT.ONE.INFO Fetched 1 nodes from OpenNebula length is
[2009-10-04 11:13:39.57] RM      Starting resource manager
[2009-10-04 11:13:39.57] RPCSERVER RPC server started on port 42493
[2009-10-04 11:13:39.57] RM      Recovered lease 1
[2009-10-04 11:13:39.57] RM      Recovered lease 3 (already done)
[2009-10-04 11:13:39.58] RM      Recovered lease 5 (already done)
[2009-10-04 11:13:39.58] RM      Recovered lease 2 (already done)
[2009-10-04 11:13:39.58] RM      Recovered lease 4 (already done)
[2009-10-04 11:13:39.58] RM      Recovered lease 6 (already done)
[2009-10-04 11:13:39.58] CLOCK   Starting clock
[2009-10-04 11:13:39.58] CLOCK   Waking up to manage resources
[2009-10-04 11:13:39.58] CLOCK   Wake-up time recorded as 2009-10-04 11:13:40.00
[2009-10-04 11:13:39.59] CLOCK   Going back to sleep. Waking up at 2009-10-04 11:14:40.00 to see if something interesting has happened by then.localhost - - [04/Oct/2009 11:13:46] "POST /RPC2 HTTP/1.0" 200 -
[2009-10-04 11:13:51.62] LSCHED  Cancelling lease 1...
[2009-10-04 11:13:51.62] LSCHED  Lease 1 is active. Stopping active reservation.
..
[2009-10-04 11:13:51.62] RM      An unexpected exception has happened.
[2009-10-04 11:13:51.62] RM        File "/usr/lib/python2.5/site-packages/haizea/core/manager.py", line 470, in cancel_lease    self.scheduler.cancel_lease(lease)
[2009-10-04 11:13:51.62] RM        File "/usr/lib/python2.5/site-packages/haizea/core/scheduler/lease_scheduler.py", line 333, in cancel_lease    vmrr = lease.get_active_vmrrs(time)[0]
[2009-10-04 11:13:51.62] RM      Message: list index out of range
[2009-10-04 11:13:51.62] RM      Panicking...
localhost - - [04/Oct/2009 11:13:51] "POST /RPC2 HTTP/1.0" 200 -
----------------------------------------------------------------------------------
 
 
 
 
Thanks & regards,
Prashanth

________________________________

From: haizea-bounces at mailman.cs.uchicago.edu on behalf of Borja Sotomayor
Sent: Wed 10/7/2009 3:42 AM
To: haizea at mailman.cs.uchicago.edu
Subject: Re: [Haizea] How to clear or reset the queue of haizea



Hi,

[Replying to an off-list message]

> I had submitted one vm with haieza scheduler, it was fine. Then I
> submitted 2 more VM's, but they were in pending state (For reasons which
> I do not know). Hence I deleted those vm's from nebula and restarted
> Haizea, but still see VMid's (5,6) still queued. How do I clear or reset
> the queue.

If you're just testing, you can stop Haizea, delete the persistence file
(in ~/.haizea/leases.dat) and that will make Haizea start from a clean
slate. You can also remove each lease individually using the
haizea-cancel-lease command.

However, take into account that Haizea currently does not react to
unexpected changes in OpenNebula. If Haizea starts up VMs, and you
cancel them in OpenNebula, this will put Haizea in an inconsistent
state. This will eventually be changed but, for now, it is best to not
make changes through OpenNebula (other than submitting the VMs), and
only allow Haizea to manage them.

Cheers!
--
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Borja Sotomayor, University of Chicago
  Ph.D. Candidate, Department of Computer Science
  Ryerson 257-C, 1100 East 58th Street, Chicago, IL
  http://people.cs.uchicago.edu/~borja/
Haizea: http://haizea.cs.uchicago.edu/
·····························································
          "Dis maschine vill run und run!"
                -- Kurt Gödel (on the Turing Machine)
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
_______________________________________________
Haizea mailing list
Haizea at mailman.cs.uchicago.edu
https://mailman.cs.uchicago.edu/mailman/listinfo/haizea



Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 8623 bytes
Desc: not available
Url : http://mailman.cs.uchicago.edu/pipermail/haizea/attachments/20091007/f77b4a54/attachment.bin 


More information about the Haizea mailing list