[Haizea] Haizea with Nebula1.4 | list index out of range
prashanth.srinivas at wipro.com
prashanth.srinivas at wipro.com
Thu Oct 1 07:04:53 CDT 2009
Hi,
I fired onehost create command for hid 2, nebula usually takes around 20 sec to fetch cpu and memory details from host. During this time if I start haizea, then I get following error message.
Please can you fix this to handle zero cpu and zero memory values. I feel opennebula.py needs to be fixed to handle null values
Host details:
------------------
root at wipro-desktop:/opt/template/haizeaTest# onehost list
HID NAME RVM TCPU FCPU ACPU TMEM FMEM STAT
1 10.101.102.34 0 100 99 99 2030592 1480704 on
2 10.101.102.113 0 0 0 100 0 0 on
Error Message:
----------------------------
root at wipro-desktop:/opt/template/haizeaTest# haizea --fg -c /usr/share/haizea/etc/sample_opennebula.conf
[ ] ENACT.ONE.INFO Fetched 2 nodes from OpenNebula length isTraceback (most recent call last):
File "/usr/bin/haizea", line 12, in <module> c.run()
File "/usr/lib/python2.5/site-packages/haizea/cli/commands.py", line 114, in run manager = Manager(config, daemon, pidfile)
File "/usr/lib/python2.5/site-packages/haizea/common/utils.py", line 132, in __call__ self.instance = super(Singleton, self).__call__(*args, **kw)
File "/usr/lib/python2.5/site-packages/haizea/core/manager.py", line 165, in __init__info_enact = OpenNebulaResourcePoolInfo()
File "/usr/lib/python2.5/site-packages/haizea/core/enact/opennebula.py", line89, in __init__self.logger.debug("%i %s %s" % (n.id, n.hostname, n.capacity))
File "/usr/lib/python2.5/site-packages/haizea/core/leases.py", line 802, in __repr__return " | ".join("%s: %i" % (res_type,q[0]) for res_type, q in self.quantity.items())
File "/usr/lib/python2.5/site-packages/haizea/core/leases.py", line 802, in <genexpr> return " | ".join("%s: %i" % (res_type,q[0]) for res_type, q in self.quantity.items())
IndexError: list index out of range
--------------------------------------------
I am using Nebula 1.4, haizea-0.9.2, Python 2.5.2
Thanks & regards,
Prashanth
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 --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.uchicago.edu/pipermail/haizea/attachments/20091001/feaf3a87/attachment.htm
More information about the Haizea
mailing list