Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1686235

Summary: Should correct info about oa in virt-v2v-output-openstack man page
Product: Red Hat Enterprise Linux 7 Reporter: mxie <mxie>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: NEW --- QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 7.7CC: juzhou, mzhan, ptoscano, tzheng, xiaodwan
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: V2V
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description mxie@redhat.com 2019-03-07 03:06:41 UTC
Description of problem:
Should correct info about oa in virt-v2v-output-openstack man page

Version-Release number of selected component (if applicable):
virt-v2v-1.40.2-1.el7.x86_64
libguestfs-1.40.2-1.el7.x86_64


How reproducible:
100%

Steps to reproduce:
1.Check virt-v2v-output-openstack man page about oa option
# man virt-v2v-output-openstack
....
The following options are not supported with OpenStack: -oa, -of.

2.Convert a guest from vmware to openstack on conversion application of openstack with option -oa sparse
#  virt-v2v -ic vpx://root@10.73.73.141/data/10.73.75.219/?no_verify=1 -it vddk -io vddk-libdir=/home/vmware-vix-disklib-distrib -io  vddk-thumbprint=1F:97:34:5F:B6:C2:BA:66:46:CB:1A:71:76:7D:6B:50:1E:03:00:EA esx6.7-rhel7.6-x86_64 --password-file /tmp/passwd -o openstack -oo server-id=ff074bf3-51ed-4897-9a81-2ba97a69d81e -oa sparse
[   2.1] Opening the source -i libvirt -ic vpx://root@10.73.73.141/data/10.73.75.219/?no_verify=1 esx6.7-rhel7.6-x86_64 -it vddk  -io vddk-libdir=/home/vmware-vix-disklib-distrib -io vddk-thumbprint=1F:97:34:5F:B6:C2:BA:66:46:CB:1A:71:76:7D:6B:50:1E:03:00:EA
[   4.1] Creating an overlay to protect the source from being modified
[   7.8] Opening the overlay
[ 190.7] Inspecting the overlay
[ 525.3] Checking for sufficient free disk space in the guest
[ 525.4] Estimating space required on target for each disk
[ 525.4] Converting Red Hat Enterprise Linux Server 7.6 (Maipo) to run on KVM
^C


3.Convert a guest from vmware to openstack on conversion application of openstack with option -oa preallocated
#  virt-v2v -ic vpx://root@10.73.73.141/data/10.73.75.219/?no_verify=1 -it vddk -io vddk-libdir=/home/vmware-vix-disklib-distrib -io  vddk-thumbprint=1F:97:34:5F:B6:C2:BA:66:46:CB:1A:71:76:7D:6B:50:1E:03:00:EA esx6.7-rhel7.6-x86_64 --password-file /tmp/passwd -o openstack -oo server-id=ff074bf3-51ed-4897-9a81-2ba97a69d81e -oa preallocated
virt-v2v: error: -o openstack: -oa option cannot be used in this output 
mode

If reporting bugs, run virt-v2v with debugging enabled and include the 
complete output:

  virt-v2v -v -x [...]


Actual results:
Only -oa preallocated can't be used in v2v openstack conversion

Expected results:
Should correct info about oa in virt-v2v-output-openstack man page

Additional info:

Comment 2 Pino Toscano 2019-04-12 11:32:57 UTC
"sparse" is the only allowed choice for -oa in -o openstack, as sparse is the default mode for -oa. So in -o openstack mode:
- not specifying -oa
- specifying -oa sparse
are the same thing.  Any other value for -oa is not supported, and this is what the documentation also says.