Author Topic: Errors on Create Template from VM  (Read 846 times)

TAfirehawk

  • Newbie
  • *
  • Posts: 38
Errors on Create Template from VM
« on: January 28, 2012, 05:19:12 PM »
Here is the error listing while trying to make a new template from VM.

Code: [Select]
Archiving VM container catalog /vz/private/1002. This may take a while...
Generating ovf file...
Archiving...
Traceback (most recent call last):
  File "/opt/opennode/bin/opennode", line 82, in <module>
    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 373, in display_vm_manage
    return self.display_vm_manage()
  File "/usr/lib/python2.6/site-packages/opennode/cli/screen.py", line 365, in display_vm_manage
    return 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 244, in display_templates
    logic[result]()
  File "/usr/lib/python2.6/site-packages/opennode/cli/screen.py", line 327, in display_template_create
    vm.save_as_ovf(template_settings, storage_pool)
  File "/usr/lib/python2.6/site-packages/opennode/cli/actions/vm/openvz.py", line 368, in save_as_ovf
    calculate_hash(ovf_archive_fnm)
  File "/usr/lib/python2.6/site-packages/opennode/cli/actions/utils.py", line 61, 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 55, in execute
    % (cmd, status, output), status)
opennode.cli.actions.utils.CommandException: Failed to execute command 'pfff -k 6996807 -B /storage/local/openvz/Apache MPM-Worker.tar > /storage/local/openvz/Apache MPM-Worker.tar.pfff'. Status: '32512'. Output: 'sh: pfff: command not found'

TAfirehawk

  • Newbie
  • *
  • Posts: 38
Re: Errors on Create Template from VM
« Reply #1 on: January 28, 2012, 08:36:01 PM »
My setup is latest version of everything on CentOS 64 bit with kernel Linux 2.6.32-042stab049.2 on x86_64

ilja_l

  • Administrator
  • Full Member
  • *****
  • Posts: 232
Re: Errors on Create Template from VM
« Reply #2 on: January 30, 2012, 09:29:09 PM »
Hi,

sorry for slow reply, had to do some skiing last week :)

It seems like pfff is missing. Could you please try rpm -qa |grep pfff?

We'll probably move back to sha1/md5 hash functions - they are quite a bit slower, but do come as a standard on more OSs.

TAfirehawk

  • Newbie
  • *
  • Posts: 38
Re: Errors on Create Template from VM
« Reply #3 on: February 01, 2012, 02:26:33 AM »
Result is

Code: [Select]
[root@community dump]# rpm -qa |grep pfff
pfff-1.0-4.asys.x86_64

ilja_l

  • Administrator
  • Full Member
  • *****
  • Posts: 232
Re: Errors on Create Template from VM
« Reply #4 on: February 01, 2012, 09:18:10 AM »
Ok, and is pfff on the PATH?

Also, I see than you have a space in the template name - is this intentional? I fear it might not be supported/a bug at the moment as no escaping is done on symbols.

ilja_l

  • Administrator
  • Full Member
  • *****
  • Posts: 232
Re: Errors on Create Template from VM
« Reply #5 on: February 02, 2012, 10:10:50 PM »
Hi,

did you manage to get it working?

cheers,
Ilja

TAfirehawk

  • Newbie
  • *
  • Posts: 38
Re: Errors on Create Template from VM
« Reply #6 on: February 04, 2012, 10:30:12 PM »
I didn't notice that I put a space in there....let me try building a new template without spaces and see how the create VM goes.

ilja_l

  • Administrator
  • Full Member
  • *****
  • Posts: 232
Re: Errors on Create Template from VM
« Reply #7 on: February 05, 2012, 09:41:00 AM »
Actually, it's a question whether spaces are allowed in a template's name. While nothing prohibits it technically, I was thinking of perhaps enforcing no-space rule with escaping/substituting whitespaces with _ . Makes it easier and shorter in the long run to e.g. download templates with curl/wget and write scripts with regular expressions.

On the other hand, it seems as a harsh restriction.