[Haizea] About the setting of wakeup interval.

柯俊峰 kjf620520 at gmail.com
Thu Dec 24 21:01:47 CST 2009


Hi,

Firstly, Wishing you a song in your heart at Christmas and blessings all
year long !

Secondly is my problem !
When I modified the configure file "sample_opennebula" like this:
# Option: wakeup-interval
# Required: No (default is 00:01:00.00)
# Valid values: A duration in the format HH:MM:SS
wakeup-interval: 00:00:30.00

Then I run
haizea --fg -c /opt/haizea/share/haizea/etc/sample_opennebula.conf

Have a error happened as following :
Traceback (most recent call last):
  File "/opt/haizea/bin/haizea", line 12, in <module>
    c.run()
  File "/opt/haizea/lib/python/haizea/cli/commands.py", line 111, in run
    config = HaizeaConfig.from_file(configfile)
  File "/opt/haizea/lib/python/haizea/common/config.py", line 149, in
from_file
    cfg = cls(c)
  File "/opt/haizea/lib/python/haizea/core/configfile.py", line 825, in
__init__
    Config.__init__(self, config, self.sections)
  File "/opt/haizea/lib/python/haizea/common/config.py", line 67, in
__init__
    self.__load_all()
  File "/opt/haizea/lib/python/haizea/common/config.py", line 97, in
__load_all
    self.__load_option(sec, opt)
  File "/opt/haizea/lib/python/haizea/common/config.py", line 132, in
__load_option
    value = self.config.getint(secname, optname)
  File "/usr/local/lib/python2.5/ConfigParser.py", line 321, in getint
    return self._get(section, int, option)
  File "/usr/local/lib/python2.5/ConfigParser.py", line 318, in _get
    return conv(self.get(section, option))
ValueError: invalid literal for int() with base 10: '00:00:30.00'

What is the reason?

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


More information about the Haizea mailing list