Re: [ovirt-users] engine-image-uploader failing to update OVF

2015-03-09 Thread Simone Tiraboschi


- Original Message -
 From: Stephen Repetski srepe...@srepetsk.net
 To: users users@ovirt.org
 Sent: Friday, March 6, 2015 8:46:38 PM
 Subject: [ovirt-users] engine-image-uploader failing to update OVF
 
 Hi all,
 I'm trying to import an OVA (containing .ovf, disk, and disk.meta) into my
 ovirt environment, but it's failing during the import where it seems that it
 shouldn't. The command I'm running is:
 
 export TMPDIR=/data/backup/test; engine-image-uploader upload
 /data/convert/srepetsk-vm.ova --insecure --name=srepetsk-testvmimport -n
 $nfs_server:/backup/2fff9385-10b8-41e5-93c6-c0ef18b9840f -v
 
 The command mounts the nfs server, extracts the OVA into
 /data/backup/test/tmpxEpuMc/, parses the OVF file
 (/data/backup/test/tmpxEpuMc/srepetsk-vm.ovf), and creates the new .meta
 file and whatnot for the disk image.
 
 It then proceeds to fail saying:
 
 ERROR: Unable to update the OVF XML file. Message: [Errno 2] No such file or
 directory: '/data/backup/test/tmpxEpuMc/srepetsk-vm.ovf'
 
 however, this is the same file that it extracted and read earlier. What might
 I be doing wrong?

At that point it has to update the OVF file so it has to be able to write it.
Is /data/backup/test/ a local directory?
Can you please check SELinux logs?
 
 Full(er) log:
 DEBUG: local extract directory for OVF is /data/backup/test/tmpxEpuMc
 DEBUG: Size of /data/convert/srepetsk-vm.ova: 17179876069 bytes 16777222.7
 1K-blocks 16384.0 MB
 DEBUG: Available space in /data/backup/test/tmpxEpuMc: 5206184878080 bytes
 5084164920 .0 1K-blocks 4965004.8 MB
 DEBUG: File is /data/backup/test/tmpxEpuMc/srepetsk-vm.ovf
 DEBUG: tag(Section) text(None) attr({'{
 http://www.w3.org/2001/XMLSchema-instance}type ':
 'ovf:VirtualHardwareSection_Type'}) class(Element Section at 1e752b8)
 DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
 1e75368)
 DEBUG: tag({
 http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData}Caption
 ) value(1 virtual cpu)
 snip
 DEBUG: old meta
 file(/data/backup/test/tmpxEpuMc/5f63da48-3ced-42ad-b684-72b626aec727.meta)
 new meta
 file(/data/backup/test/tmpxEpuMc/fffc878e-8df9-4b81-b04a-614a0af437a3.meta)
 DEBUG: old dir(/data/backup/test/tmpxEpuMc) new
 dir(/data/backup/test/4cd70a4f-f979-4b42-a416-2c8b4d028a88)
 DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
 1e75470)
 DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
 1e754c8)
 DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
 1e75520)
 DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
 1e75578)
 DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
 1e755d0)
 DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
 1e75628)
 DEBUG: tag(Section) text(None) attr({'{
 http://www.w3.org/2001/XMLSchema-instance}type ':
 'ovf:VirtualHardwareSection_Type'}) class(Element Section at 1e752b8)
 DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
 1e75368)
 DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
 1e753c0)
 DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
 1e75418)
 DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
 1e75470)
 DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
 1e754c8)
 DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
 1e75520)
 DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
 1e75578)
 DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
 1e755d0)
 DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
 1e75628)
 ERROR: Unable to update the OVF XML file. Message: [Errno 2] No such file or
 directory: '/data/backup/test/tmpxEpuMc/srepetsk-vm.ovf'
 DEBUG: Cleaning up OVF extract directory /data/backup/test/tmpxEpuMc
 DEBUG: [Errno 2] No such file or directory: '/data/backup/test/tmpxEpuMc'
 DEBUG: /bin/umount -t nfs -f /data/backup/test/tmpd8kH1X
 DEBUG: /bin/umount -t nfs -f /data/backup/test/tmpd8kH1X
 DEBUG: _cmds(['/bin/umount', '-t', 'nfs', '-f',
 '/data/backup/test/tmpd8kH1X'])
 DEBUG: returncode(0)
 DEBUG: STDOUT()
 DEBUG: STDERR()
 
 
 Thanks,
 Stephen
 
 Stephen Repetski
 Rochester Institute of Technology '13 | http://srepetsk.net
 
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] engine-image-uploader failing to update OVF

2015-03-06 Thread Stephen Repetski
Hi all,
I'm trying to import an OVA (containing .ovf, disk, and disk.meta) into my
ovirt environment, but it's failing during the import where it seems that
it shouldn't. The command I'm running is:

export TMPDIR=/data/backup/test; engine-image-uploader upload
/data/convert/srepetsk-vm.ova --insecure --name=srepetsk-testvmimport -n
$nfs_server:/backup/2fff9385-10b8-41e5-93c6-c0ef18b9840f -v

The command mounts the nfs server, extracts the OVA into
/data/backup/test/tmpxEpuMc/, parses the OVF file
(/data/backup/test/tmpxEpuMc/srepetsk-vm.ovf), and creates the new .meta
file and whatnot for the disk image.

It then proceeds to fail saying:

ERROR: Unable to update the OVF XML file. Message: [Errno 2] No such file
or directory: '/data/backup/test/tmpxEpuMc/srepetsk-vm.ovf'

however, this is the same file that it extracted and read earlier. What
might I be doing wrong?

Full(er) log:
DEBUG: local extract directory for OVF is /data/backup/test/tmpxEpuMc
DEBUG: Size of /data/convert/srepetsk-vm.ova:   17179876069 bytes
16777222.7 1K-blocks16384.0 MB
DEBUG: Available space in /data/backup/test/tmpxEpuMc:  5206184878080 bytes
5084164920.0 1K-blocks  4965004.8 MB
DEBUG: File is /data/backup/test/tmpxEpuMc/srepetsk-vm.ovf
DEBUG: tag(Section) text(None) attr({'{
http://www.w3.org/2001/XMLSchema-instance}type':
'ovf:VirtualHardwareSection_Type'}) class(Element Section at 1e752b8)
DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
1e75368)
DEBUG: tag({
http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData}Caption)
value(1 virtual cpu)
snip
DEBUG: old meta
file(/data/backup/test/tmpxEpuMc/5f63da48-3ced-42ad-b684-72b626aec727.meta)
new meta
file(/data/backup/test/tmpxEpuMc/fffc878e-8df9-4b81-b04a-614a0af437a3.meta)
DEBUG: old dir(/data/backup/test/tmpxEpuMc) new
dir(/data/backup/test/4cd70a4f-f979-4b42-a416-2c8b4d028a88)
DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
1e75470)
DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
1e754c8)
DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
1e75520)
DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
1e75578)
DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
1e755d0)
DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
1e75628)
DEBUG: tag(Section) text(None) attr({'{
http://www.w3.org/2001/XMLSchema-instance}type':
'ovf:VirtualHardwareSection_Type'}) class(Element Section at 1e752b8)
DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
1e75368)
DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
1e753c0)
DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
1e75418)
DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
1e75470)
DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
1e754c8)
DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
1e75520)
DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
1e75578)
DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
1e755d0)
DEBUG: item tag(Item) item text(None) item attr({}) class(Element Item at
1e75628)
ERROR: Unable to update the OVF XML file. Message: [Errno 2] No such file
or directory: '/data/backup/test/tmpxEpuMc/srepetsk-vm.ovf'
DEBUG: Cleaning up OVF extract directory /data/backup/test/tmpxEpuMc
DEBUG: [Errno 2] No such file or directory: '/data/backup/test/tmpxEpuMc'
DEBUG: /bin/umount -t nfs -f  /data/backup/test/tmpd8kH1X
DEBUG: /bin/umount -t nfs -f  /data/backup/test/tmpd8kH1X
DEBUG: _cmds(['/bin/umount', '-t', 'nfs', '-f',
'/data/backup/test/tmpd8kH1X'])
DEBUG: returncode(0)
DEBUG: STDOUT()
DEBUG: STDERR()


Thanks,
Stephen

*Stephen Repetski*
Rochester Institute of Technology '13 | http://srepetsk.net
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users