[Haizea] unmatching host CPU information between ONE and Haizea

Shi Jin jinzishuai at gmail.com
Tue Oct 19 10:49:41 CDT 2010


Thanks.
First of all, the change you proposed does not work since q is a list.
I give it sum(q) instead
return "  |  ".join("%s: %i" % (res_type,sum(q)) for res_type, q in
self.quantity.items())
It does print out 1600 instead of 100 in the haizea.log. But
haizea-list-hosts still shows 100.
I ran it again and got the same problem: only 1 vm can be deployed on a
host.

I have another question. If I set wakeup-interval:30 in the configuration
file, haizea does not wake up any more after the first
rounds. wakeup-interval:1 works as below. I am not sure whether this is a
related problem.
By the way, I am using Haizea-1.0. Should I better use the subversion code
instead for later bug fix?
Thanks.
Shi


Here is haizea.log
[cloudadmin at frontend-dev var]$ cat haizea.log
[                      ] ENACT.ONE.INFO Fetching nodes from OpenNebula
[                      ] ENACT.ONE.INFO Fetched node 1 node4 Disk: 80000  |
 CPU: 1600  |  Memory: 64434
[                      ] ENACT.ONE.INFO Fetched 1 nodes from OpenNebula
[2010-10-19 09:43:14.81] RM      Starting resource manager
[2010-10-19 09:43:14.81] CLOCK   Starting clock
[2010-10-19 09:43:14.83] CLOCK   Waking up to manage resources
[2010-10-19 09:43:14.83] CLOCK   Wake-up time recorded as 2010-10-19
09:43:15.00
[2010-10-19 09:43:14.81] RPCSERVER RPC server started on port 42493
[2010-10-19 09:43:14.93] RM      Requesting leases
[2010-10-19 09:43:14.93] LSCHED  Lease #1 has been requested.
[2010-10-19 09:43:14.93] LEASES
 __________________________________________________
[2010-10-19 09:43:14.93] LEASES  Lease ID       : 1
[2010-10-19 09:43:14.93] LEASES  Type           : Best-effort
[2010-10-19 09:43:14.93] LEASES  Submission time: 2010-10-19 09:39:55.00
[2010-10-19 09:43:14.93] LEASES  Start          : REQ: Unspecified  |  SCH:
None  |  ACT: None
[2010-10-19 09:43:14.93] LEASES  Duration       : REQ: 36500:00:00:00.00  |
 ACC: 00:00:00.00  |  ACT: None  |  KNW: None
[2010-10-19 09:43:14.93] LEASES  State          : New
[2010-10-19 09:43:14.93] LEASES  Resource req   : {1: Disk: 0  |  CPU: 100
 |  Memory: 1000}
[2010-10-19 09:43:14.93] LEASES  Software       :
<haizea.core.leases.UnmanagedSoftwareEnvironment object at 0xbe85910>
[2010-10-19 09:43:14.93] LEASES  VM RESOURCE RESERVATIONS
[2010-10-19 09:43:14.93] LEASES  ~~~~~~~~~~~~~~~~~~~~~~~~
[2010-10-19 09:43:14.93] LEASES
 --------------------------------------------------
[2010-10-19 09:43:14.93] LSCHED  Lease #1 has been marked as pending.
[2010-10-19 09:43:14.93] LSCHED  Lease #2 has been requested.
[2010-10-19 09:43:14.93] LEASES
 __________________________________________________
[2010-10-19 09:43:14.93] LEASES  Lease ID       : 2
[2010-10-19 09:43:14.93] LEASES  Type           : Best-effort
[2010-10-19 09:43:14.93] LEASES  Submission time: 2010-10-19 09:39:57.00
[2010-10-19 09:43:14.93] LEASES  Start          : REQ: Unspecified  |  SCH:
None  |  ACT: None
[2010-10-19 09:43:14.93] LEASES  Duration       : REQ: 36500:00:00:00.00  |
 ACC: 00:00:00.00  |  ACT: None  |  KNW: None
[2010-10-19 09:43:14.93] LEASES  State          : New
[2010-10-19 09:43:14.93] LEASES  Resource req   : {1: Disk: 0  |  CPU: 100
 |  Memory: 1000}
[2010-10-19 09:43:14.93] LEASES  Software       :
<haizea.core.leases.UnmanagedSoftwareEnvironment object at 0xbe859d0>
[2010-10-19 09:43:14.93] LEASES  VM RESOURCE RESERVATIONS
[2010-10-19 09:43:14.93] LEASES  ~~~~~~~~~~~~~~~~~~~~~~~~
[2010-10-19 09:43:14.93] LEASES
 --------------------------------------------------
[2010-10-19 09:43:14.93] LSCHED  Lease #2 has been marked as pending.
[2010-10-19 09:43:14.94] RM      Running scheduling function
[2010-10-19 09:43:14.94] LSCHED  Queued best-effort lease request #1, 1
nodes for 36500:00:00:00.00.
[2010-10-19 09:43:14.94] LSCHED  Queued best-effort lease request #2, 1
nodes for 36500:00:00:00.00.
[2010-10-19 09:43:14.94] LSCHED  Next request in the queue is lease 1.
Attempting to schedule...
[2010-10-19 09:43:14.94] LEASES
 __________________________________________________
[2010-10-19 09:43:14.94] LEASES  Lease ID       : 1
[2010-10-19 09:43:14.94] LEASES  Type           : Best-effort
[2010-10-19 09:43:14.94] LEASES  Submission time: 2010-10-19 09:39:55.00
[2010-10-19 09:43:14.94] LEASES  Start          : REQ: Unspecified  |  SCH:
None  |  ACT: None
[2010-10-19 09:43:14.94] LEASES  Duration       : REQ: 36500:00:00:00.00  |
 ACC: 00:00:00.00  |  ACT: None  |  KNW: None
[2010-10-19 09:43:14.94] LEASES  State          : Queued
[2010-10-19 09:43:14.94] LEASES  Resource req   : {1: Disk: 0  |  CPU: 100
 |  Memory: 1000}
[2010-10-19 09:43:14.94] LEASES  Software       :
<haizea.core.leases.UnmanagedSoftwareEnvironment object at 0xbe85910>
[2010-10-19 09:43:14.94] LEASES  VM RESOURCE RESERVATIONS
[2010-10-19 09:43:14.94] LEASES  ~~~~~~~~~~~~~~~~~~~~~~~~
[2010-10-19 09:43:14.94] LEASES
 --------------------------------------------------
[2010-10-19 09:43:14.94] VMSCHED Attempting to map from 2010-10-19
09:43:25.00 to 2110-09-25 09:43:25.00
[2010-10-19 09:43:14.94] VMSCHED This lease can be scheduled from 2010-10-19
09:43:25.00 to 2110-09-25 09:43:25.00 (full duration)
[2010-10-19 09:43:14.94] VMSCHED Lease #1 has been scheduled on nodes [1]
from 2010-10-19 09:43:25.00 to 2110-09-25 09:43:25.00
[2010-10-19 09:43:14.94] LEASES
 __________________________________________________
[2010-10-19 09:43:14.94] LEASES  Lease ID       : 1
[2010-10-19 09:43:14.94] LEASES  Type           : Best-effort
[2010-10-19 09:43:14.94] LEASES  Submission time: 2010-10-19 09:39:55.00
[2010-10-19 09:43:14.94] LEASES  Start          : REQ: Unspecified  |  SCH:
None  |  ACT: None
[2010-10-19 09:43:14.94] LEASES  Duration       : REQ: 36500:00:00:00.00  |
 ACC: 00:00:00.00  |  ACT: None  |  KNW: None
[2010-10-19 09:43:14.94] LEASES  State          : Ready
[2010-10-19 09:43:14.94] LEASES  Resource req   : {1: Disk: 0  |  CPU: 100
 |  Memory: 1000}
[2010-10-19 09:43:14.94] LEASES  Software       :
<haizea.core.leases.UnmanagedSoftwareEnvironment object at 0xbe85910>
[2010-10-19 09:43:14.94] LEASES  VM RESOURCE RESERVATIONS
[2010-10-19 09:43:14.94] LEASES  ~~~~~~~~~~~~~~~~~~~~~~~~
[2010-10-19 09:43:14.94] LEASES  Type           : VM
[2010-10-19 09:43:14.94] LEASES  Nodes          : V1 -> P1
[2010-10-19 09:43:14.94] LEASES  Start          : 2010-10-19 09:43:25.00
[2010-10-19 09:43:14.94] LEASES  End            : 2110-09-25 09:43:25.00
[2010-10-19 09:43:14.94] LEASES  State          : Scheduled
[2010-10-19 09:43:14.94] LEASES  Resources      :
                         N1: 0:100 1:1000 2:0
[2010-10-19 09:43:14.94] LEASES  --
[2010-10-19 09:43:14.94] LEASES  Type           : SHUTDOWN
[2010-10-19 09:43:14.94] LEASES  Start          : 2110-09-25 09:43:25.00
[2010-10-19 09:43:14.94] LEASES  End            : 2110-09-25 09:43:25.00
[2010-10-19 09:43:14.94] LEASES  State          : Scheduled
[2010-10-19 09:43:14.94] LEASES  Resources      :
                         N1: 0:100 1:1000 2:0
[2010-10-19 09:43:14.94] LEASES  ##
[2010-10-19 09:43:14.94] LEASES
 --------------------------------------------------
[2010-10-19 09:43:14.94] LSCHED  Used up all future reservations and slot
table is full. Skipping rest of queue.
[2010-10-19 09:43:14.95] CLOCK   Going back to sleep. Waking up at
2010-10-19 09:43:16.00 to see if something interesting has happened by then.
[2010-10-19 09:43:15.99] CLOCK   Waking up to manage resources
[2010-10-19 09:43:15.99] CLOCK   Wake-up time recorded as 2010-10-19
09:43:16.00
[2010-10-19 09:43:16.06] RM      Requesting leases
[2010-10-19 09:43:16.06] RM      Running scheduling function
[2010-10-19 09:43:16.06] LSCHED  Used up all future reservations and slot
table is full. Skipping rest of queue.
[2010-10-19 09:43:16.06] CLOCK   Going back to sleep. Waking up at
2010-10-19 09:43:17.00 to see if something interesting has happened by then.
[2010-10-19 09:43:17.00] CLOCK   Waking up to manage resources
[2010-10-19 09:43:17.00] CLOCK   Wake-up time recorded as 2010-10-19
09:43:17.00
[2010-10-19 09:43:17.06] RM      Requesting leases
[2010-10-19 09:43:17.06] RM      Running scheduling function
[2010-10-19 09:43:17.06] LSCHED  Used up all future reservations and slot
table is full. Skipping rest of queue.
[2010-10-19 09:43:17.06] CLOCK   Going back to sleep. Waking up at
2010-10-19 09:43:18.00 to see if something interesting has happened by then.
[2010-10-19 09:43:18.00] CLOCK   Waking up to manage resources
[2010-10-19 09:43:18.00] CLOCK   Wake-up time recorded as 2010-10-19
09:43:18.00
[2010-10-19 09:43:18.06] RM      Requesting leases
[2010-10-19 09:43:18.06] RM      Running scheduling function
[2010-10-19 09:43:18.06] LSCHED  Used up all future reservations and slot
table is full. Skipping rest of queue.
[2010-10-19 09:43:18.06] CLOCK   Going back to sleep. Waking up at
2010-10-19 09:43:19.00 to see if something interesting has happened by then.


On Mon, Oct 18, 2010 at 5:14 PM, Borja Sotomayor <borja at borjanet.com> wrote:

> Hi,
>
> I still don't see anything immediately wrong with the log file,
> although that could be because Haizea doesn't print multi-instance
> resource types, which could be an important piece of the puzzle here.
> Could you change the following:
>
> lib/python/haizea/core/leases.py:
> 805     def __repr__(self):
>  806         """Returns a string representation of the Capacity"""
>  807         return "  |  ".join("%s: %i" % (res_type,q[0]) for
> res_type, q in self.quantity.items())
>
> to be this:
>
> lib/python/haizea/core/leases.py:
> 805     def __repr__(self):
>  806         """Returns a string representation of the Capacity"""
>  807         return "  |  ".join("%s: %i" % (res_type,q) for res_type,
> q in self.quantity.items())
>
> (i.e., remove the "[0]")
>
> And run Haizea and submit the VMs as before? (and re-send the log file)
>
> Cheers!
> --
> Borja Sotomayor
> -Scientific Writer at UChicago's Computation Institute
> http://people.cs.uchicago.edu/~borja/
> -Community Manager for the OpenNebula project
> http://www.opennebula.org/
> _______________________________________________
> Haizea mailing list
> Haizea at mailman.cs.uchicago.edu
> https://mailman.cs.uchicago.edu/mailman/listinfo/haizea
>



-- 
Shi Jin, Ph.D.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.uchicago.edu/pipermail/haizea/attachments/20101019/5c2553e7/attachment-0001.htm 


More information about the Haizea mailing list