Bad xmlrpc response from CH2 SA
I can actually create a slice (yay!), but the response from the geni-sa
endpoint when doing so is malformed:
<?xml version="1.0"?>
<methodResponse>
<params>
<param><value><struct>
<member><name>protogeni_error_log</name><value><string>urn:publicid:IDN+emulab.net+log+e26d3de4f80edb3ad5a5817605bec69d</string></value></member>
<member><name>protogeni_error_url</name><value><string>https://www.emulab.net/spewlogfile.php3?logfile=e26d3de4f80edb3ad5a5817605bec69d</string></value></member>
<member><name>value</name><value><struct>
<member><name>SLICE_URN</name><value><string>urn:publicid:IDN+emulab.net:ig-control-of+slice+scratch-a</string></value></member>
<member><name>SLICE_EXPIRATION</name><value><string>2016-03-31T17:38:31Z</string></value></member>
<member><name>SLICE_DESCRIPTION</name><value><string></string></value></member>
<member><name>SLICE_NAME</name><value><string>scratch-a</string></value></member>
<member><name>SLICE_PROJECT_URN</name><value><string>urn:publicid:IDN+emulab.net+project+ig-control-of</string></value></member>
<member><name>SLICE_UID</name><value><string>17537809-f735-11e5-b570-99cadac50270</string></value></member>
<member><name>SLICE_EXPIRED</name><value><boolean></boolean></value>
</member>
<member><name>_EMULAB_SLICE_HRN</name><value><string>utahemulab.scratch-a</string></value></member>
<member><name>SLICE_CREATION</name><value><string>2016-03-31T11:38:31Z</string></value></member>
</struct></value>
</member>
<member><name>output</name><value><string></string></value></member>
<member><name>code</name><value><i4>0</i4></value></member>
</struct></value>
</param>
</params>
</methodResponse>
The SLICE_EXPIRED
boolean needs to have an actual value (preferably False
.. :-)), otherwise geni-lib
bails out on:
...
File "/usr/lib/python2.7/xmlrpclib.py", line 557, in feed
self._parser.Parse(data, 0)
File "/usr/lib/python2.7/xmlrpclib.py", line 823, in end
return f(self, join(self._data, ""))
File "/usr/lib/python2.7/xmlrpclib.py", line 853, in end_boolean
raise TypeError, "bad boolean value"
TypeError: bad boolean value