[Haizea] xml file error

Paulo Renato paulorenat at gmail.com
Wed Sep 28 14:36:33 CDT 2011


Hi all,

I try to use the command "haizea-request-lease" specificaly your method
run(). I pass to method the xml file bellow. But it return the following
error:

Traceback (most recent call last):
  File "/usr/local/bin/haizea-request-lease", line 7, in <module>
    c.run()
  File "/usr/local/lib/python2.6/dist-packages/haizea/cli/rpc_commands.py",
line 107, in run
    exact = lease.find("start/exact")
UnboundLocalError: local variable 'lease' referenced before assignment

XML File

<?xml version="1.0" encoding="utf-8"?>

<!--lease-request arrival="00:01:00"-->
<lease preemptible="true">
    <nodes>
        <node-set numnodes="1">
            <res type="CPU" amount="100"/>
            <res type="Memory" amount="1024"/>
        </node-set>
    </nodes>
    <start>
        <exact time="+00:00:01:00"/>
    </start>
    <duration time="00:03:00"/>
    <software>
        <disk-image id="foobar.img" size="1024"/>
    </software>
</lease>
<!--/lease-request-->

-- 

Paulo Renato
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.uchicago.edu/pipermail/haizea/attachments/20110928/7c78d26e/attachment.htm 


More information about the Haizea mailing list