opennode/opennode-tui — Issue #64: Space in a template name leads to an error when creating a new VM
Author: livenson
Created: 2012-02-02 20:15:16+00:00
State: open
Labels: bug

As reported in http://opennode.activesys.org/forum/index.php/topic,127.0.html .

Error trace:

```
Generating configuration...
Creating OpenVZ container...
Traceback (most recent call last):
File "/opt/opennode/bin/opennode", line 82, in
tui.run()
File "/usr/lib/python2.6/site-packages/opennode/cli/screen.py", line 473, in run
self.display_main_screen()
File "/usr/lib/python2.6/site-packages/opennode/cli/screen.py", line 51, in display_main_screen
logic[result]()
File "/usr/lib/python2.6/site-packages/opennode/cli/screen.py", line 434, in display_vm_create
vm.deploy(user_settings, storage_pool)
File "/usr/lib/python2.6/site-packages/opennode/cli/actions/vm/openvz.py", line 242, in deploy
create_container(ovf_settings)
File "/usr/lib/python2.6/site-packages/opennode/cli/actions/vm/openvz.py", line 205, in create_container
ovf_settings["vm_id"]))
File "/usr/lib/python2.6/site-packages/opennode/cli/actions/utils.py", line 55, in execute
% (cmd, status, output), status)
opennode.cli.actions.utils.CommandException: Failed to execute command 'vzctl create 1004 --ostemplate Apache MPM-Worker --config 1004'. Status: '5120'. Output: 'non-option ARGV-elements: MPM-Worker '
```