opennode/opennode-tui — Issue #70: TUI crashes If KVM template is manually "planted" 
Author: mainframe
Created: 2012-02-25 10:18:59+00:00
State: open

* Copied manually KVM template tar and ovf file under /storage/local/kvm
* Trying to create new VM out of KVM template

Traceback (most recent call last):
File "/opt/opennode/bin/opennode", line 83, in
tui.run()
File "/usr/lib/python2.6/site-packages/opennode/cli/screen.py", line 488, in run
self.display_main_screen()
File "/usr/lib/python2.6/site-packages/opennode/cli/screen.py", line 44, in display_main_screen
return logic[result]()
File "/usr/lib/python2.6/site-packages/opennode/cli/screen.py", line 434, in display_vm_create
template + ".ovf"))
File "/usr/lib/python2.6/site-packages/ovf/OvfFile.py", line 43, in __init__
self.document = parse(self.path)
File "/usr/lib64/python2.6/xml/dom/minidom.py", line 1918, in parse
return expatbuilder.parse(file)
File "/usr/lib64/python2.6/xml/dom/expatbuilder.py", line 922, in parse
fp = open(file, 'rb')
IOError: [Errno 2] No such file or directory: '/storage/local/kvm/unpacked/IBM-HMC-Win7.ovf'

TUI should be intelligent enough to test template unpack - and if needed to make unpack action itself.