Building images fails because of a bug in the handling of error return codes. The traceback from a build image process is:
Mon Dec 16 13:38:54 2013 [TM][I]: Command execution fail: /usr/lib/one/tm_commands/stratuslab/tm_save_cache.py onehost-15.lal.in2p3.fr:/var/lib/one//1511/images/disk.0 onehost-4.lal.in2p3.fr:/var/lib/one/1511/disk.0
Mon Dec 16 13:38:54 2013 [TM][E]: tm_save_cache.py: local variable 'resp' referenced before assignment
Mon Dec 16 13:38:54 2013 [TM][I]: Traceback (most recent call last):
Mon Dec 16 13:38:54 2013 [TM][I]: File "/usr/lib/one/tm_commands/stratuslab/tm_save_cache.py", line 31, in <module>
Mon Dec 16 13:38:54 2013 [TM][I]: tm.run()
Mon Dec 16 13:38:54 2013 [TM][I]: File "/var/lib/stratuslab/python/stratuslab/tm/TMSaveCache.py", line 108, in run
Mon Dec 16 13:38:54 2013 [TM][I]: self._run()
Mon Dec 16 13:38:54 2013 [TM][I]: File "/var/lib/stratuslab/python/stratuslab/tm/TMSaveCache.py", line 129, in _run
Mon Dec 16 13:38:54 2013 [TM][I]: self._uploadManifest()
Mon Dec 16 13:38:54 2013 [TM][I]: File "/var/lib/stratuslab/python/stratuslab/tm/TMSaveCache.py", line 269, in _uploadManifest
Mon Dec 16 13:38:54 2013 [TM][I]: uploader.upload(self.manifestPath)
Mon Dec 16 13:38:54 2013 [TM][I]: File "/var/lib/stratuslab/python/stratuslab/marketplace/Uploader.py", line 63, in upload
Mon Dec 16 13:38:54 2013 [TM][I]: client.post(url, manifest)
Mon Dec 16 13:38:54 2013 [TM][I]: File "/var/lib/stratuslab/python/stratuslab/HttpClient.py", line 50, in post
Mon Dec 16 13:38:54 2013 [TM][I]: return self._httpCall(url, 'POST', body, contentType, accept, retry=False)
Mon Dec 16 13:38:54 2013 [TM][I]: File "/var/lib/stratuslab/python/stratuslab/HttpClient.py", line 196, in _httpCall
Mon Dec 16 13:38:54 2013 [TM][I]: _handleResponse(resp, content)
Mon Dec 16 13:38:54 2013 [TM][I]: File "/var/lib/stratuslab/python/stratuslab/HttpClient.py", line 159, in _handleResponse
Mon Dec 16 13:38:54 2013 [TM][I]: resp, content = _handle3xx()
Mon Dec 16 13:38:54 2013 [TM][I]: File "/var/lib/stratuslab/python/stratuslab/HttpClient.py", line 129, in _handle3xx
Mon Dec 16 13:38:54 2013 [TM][I]: if resp.status == 302:
Mon Dec 16 13:38:54 2013 [TM][I]: UnboundLocalError: local variable 'resp' referenced before assignment
Mon Dec 16 13:38:54 2013 [TM][I]: ExitCode: 1
Mon Dec 16 13:38:54 2013 [TM][E]: Error excuting image transfer script: tm_save_cache.py: local variable 'resp' referenced before assignment
Mon Dec 16 13:38:54 2013 [DiM][I]: New VM state is FAILED
Building images fails because of a bug in the handling of error return codes. The traceback from a build image process is: