Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionRichard W.M. Jones
2022-04-11 12:03:25 UTC
Description of problem:
Virt-v2v has an option to output to a templated JSON file. It
is currently documented as follows:
virt-v2v [-i* options] -o json -os DIRECTORY
[-oo json-disks-pattern=PATTERN]
[...]
OUTPUT TO JSON
The -o json option produces the following files by default:
NAME.json JSON metadata.
NAME-sda, NAME-sdb, etc. Guest disk(s).
where "NAME" is the guest name.
It is possible to change the pattern of the disks using the -oo
json-disks-pattern=... option: it allows parameters in form of "%{...}"
variables, for example:
-oo json-disks-pattern=disk%{DiskNo}.img
[...]
This feature was added for KubeVirt but was never used.
I'm intending to remove this in virt-v2v upstream version 2.2,
but I think we should remove it from virt-v2v in RHEL 9.1 (version 2.0.x).
This will be a kind of regression because the feature is available
in RHEL 9.0, but we don't believe anyone is using it.
Version-Release number of selected component (if applicable):
virt-v2v-2.0.2-1.el9.x86_64
Comment 1Richard W.M. Jones
2022-04-11 12:04:50 UTC
Reproduced with virt-v2v-1.45.99-2.el9_0.x86_64.
Step1: Check the manual page
# man virt-v2v |grep json
-o json
Set the output method to json.
For -o json, -o local and -o qemu, this is a directory name. The directory must exist.
Step2: Check in the command
# virt-v2v -o json
[ 0.3] Setting up the source: -i libvirt
virt-v2v: error: -i libvirt: expecting a libvirt guest name on the command
line
If reporting bugs, run virt-v2v with debugging enabled and include the
complete output:
virt-v2v -v -x [...]
Verified with virt-v2v-2.0.3-1.el9.x86_64.
Step1: Check the manual page
# man virt-v2v |grep json
Step2: Check in the command
# virt-v2v -o json
virt-v2v: error: unknown -o option: json
If reporting bugs, run virt-v2v with debugging enabled and include the
complete output:
virt-v2v -v -x [...]
Moving to Verified.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (Low: virt-v2v security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHSA-2022:7968
Description of problem: Virt-v2v has an option to output to a templated JSON file. It is currently documented as follows: virt-v2v [-i* options] -o json -os DIRECTORY [-oo json-disks-pattern=PATTERN] [...] OUTPUT TO JSON The -o json option produces the following files by default: NAME.json JSON metadata. NAME-sda, NAME-sdb, etc. Guest disk(s). where "NAME" is the guest name. It is possible to change the pattern of the disks using the -oo json-disks-pattern=... option: it allows parameters in form of "%{...}" variables, for example: -oo json-disks-pattern=disk%{DiskNo}.img [...] This feature was added for KubeVirt but was never used. I'm intending to remove this in virt-v2v upstream version 2.2, but I think we should remove it from virt-v2v in RHEL 9.1 (version 2.0.x). This will be a kind of regression because the feature is available in RHEL 9.0, but we don't believe anyone is using it. Version-Release number of selected component (if applicable): virt-v2v-2.0.2-1.el9.x86_64