I just installed a second server with OpenNode and got it up and running yesterday. Today, I installed a CentOS6 template and created an OpenVZ VM from it. I then updated the packages so that all patches would be applied, giving me a CentOS 6.2 VM. I used opennode-tui to "Create a new template from VM". I selected my powered off VM, named it appropriately and started it. It took a little while and then completed... but it completed with a fatal error in the end, as follows:
File "/usr/lib/python2.6/site-packages/opennode/cli/actions/vm/openvz.py", line 414, in save_as_ovf calculate_hash(ovf_archive_fnm)
File "/usr/lib/python2.6/site-packages/opennode/cli/actions/utils.py", line 80, in calculate_hash execute("pfff -k 6996807 -B %s > %s.pfff" % (target_file, target_file))
File "/usr/lib/python2.6/site-packages/opennode/cli/actions/utils.py", line 63, in execute % (cmd, status, output), status)
opennode.cli.actions.utils.CommandException: Failed to execute command 'pfff -k 6996807 -B /storage/local/openvz/centos-6.2-x86_64-swa.tar > /storage/local/openvz/centos-6.2-x86_64-swa.tar.pfff'. Status: '32512'. Output: 'sh: pfff: command not found'
Looking at my /storage/local/openvz directory, I see the following two files:
-rw-r--r-- 1 root root 0 May 30 16:23 centos-6.2-x86_64-swa.tar.pfff
-rw-r--r-- 1 root root 226457600 May 30 16:23 centos-6.2-x86_64-swa.tar
The pfff file is a zero-byte file. I went ahead and ran the command manually, as follows:
/usr/local/bin/pfff -k 6996807 -B centos-6.2-x86_64-swa.tar > centos-6.2-x86_64-swa.tar.pfff
And now I have a 62 byte pfff file, consistent with the other ones, and it looks fine. Looking at the template cache within opennode-tui now shows me a new entry with a "*" and a "(l)", which is what I would expect. I did one final test and created a VM from the new template. It worked perfectly!
Anyways, I added /usr/local/bin to /etc/profile.d/opennode-tui.sh so that the PATH would be correct. I haven't tried creating a new template yet to see if that is enough to solve the problem, but I am sure it will be. As an FYI, I used your OpenNode 6.0rc1 disc to install the system, so the fact that there is no /usr/local/bin in the path is something that should be resolved for rc2.