[Haizea] How to define the time format in the Haizea parameter ?

柯俊峰 kjf620520 at gmail.com
Wed Dec 23 23:25:32 CST 2009


Hi,
The VM template file ketianj.cfg like this
CPU=0.6
MEMORY=400
NAME=hhh
DISK=[source="/opt/nebula/images/centos5.2.img",target="xvda",readonly="no"]
OS=[bootloader="/usr/bin/pygrub"]
HAIZEA = [
  start        = "+00:01:30",
*  duration     = "111:12:00",*
  preemptible  = "no"
]

When I used  "onevm submit /opt/nebula/ketianj.cfg"

Hava a error happened !


[2009-12-24 13:15:48.75] RM      Starting resource manager
[2009-12-24 13:15:48.75] RPCSERVER RPC server started on port 42493
[2009-12-24 13:15:48.75] CLOCK   Starting clock
[2009-12-24 13:15:48.75] CLOCK   Waking up to manage resources
[2009-12-24 13:15:48.75] CLOCK   Wake-up time recorded as 2009-12-24
13:15:49.00
[2009-12-24 13:15:48.77] RM      An unexpected exception has happened.
[2009-12-24 13:15:48.77] RM        File
"/opt/haizea/lib/python/haizea/core/manager.py", line 355, in start
    self.clock.run()

[2009-12-24 13:15:48.77] RM        File
"/opt/haizea/lib/python/haizea/core/manager.py", line 953, in run
    self.manager.process_requests(self.nextschedulable)

[2009-12-24 13:15:48.77] RM        File
"/opt/haizea/lib/python/haizea/core/manager.py", line 412, in
process_requests
    requests += frontend.get_accumulated_requests()

[2009-12-24 13:15:48.77] RM        File
"/opt/haizea/lib/python/haizea/core/frontends/opennebula.py", line 124, in
get_accumulated_requests
    pending_vms.append(OpenNebulaHaizeaVM(vm_detailed))

[2009-12-24 13:15:48.77] RM        File
"/opt/haizea/lib/python/haizea/core/frontends/opennebula.py", line 78, in
__init__
    self.duration = Duration(ISO.ParseTimeDelta(self.duration))

[2009-12-24 13:15:48.77] RM        File
"/usr/local/lib/python2.5/site-packages/mx/DateTime/ISO.py", line 281, in
ParseTimeDelta
    raise ValueError,'wrong format, use [-]HH:MM:SS'

But I want to let VM run more than "100 hours", the time format should how
to define !

Regards,
Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.uchicago.edu/pipermail/haizea/attachments/20091224/a28fb86a/attachment.htm 


More information about the Haizea mailing list