Bug 1374405
Summary: | There is HTTP 404 error info when convert guest to glance by virt-v2v | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | mxie <mxie> | ||||
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | ||||
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
Severity: | medium | Docs Contact: | Yehuda Zimmerman <yzimmerm> | ||||
Priority: | urgent | ||||||
Version: | 7.3 | CC: | jherrman, jsuchane, juzhou, kuwei, mtessun, mxie, mzhan, psahoo, ptoscano, rhodain, rjones, shipatil, tzheng, xiaodwan | ||||
Target Milestone: | rc | Keywords: | ZStream | ||||
Target Release: | 7.4 | ||||||
Hardware: | x86_64 | ||||||
OS: | Unspecified | ||||||
Whiteboard: | V2V | ||||||
Fixed In Version: | libguestfs-1.36.1-1.el7 | Doc Type: | Bug Fix | ||||
Doc Text: |
Guests can be converted to *Glance* images, regardless of the *Glance* client version
Previously, if the *Glance* command-line client version 1.0.0 or greater was installed on the *virt-v2v* conversion server, using the *virt-v2v* utility to convert a guest virtual machine to a *Glance* image failed. With this release, when exporting images, *virt-v2v* directly sets all the properties of images. As a result, the conversion to *Glance* works regardless of the version of the *Glance* client installed on the *virt-v2v* conversion server.
|
Story Points: | --- | ||||
Clone Of: | |||||||
: | 1452570 (view as bug list) | Environment: | |||||
Last Closed: | 2017-08-01 22:08:55 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | 1359086 | ||||||
Bug Blocks: | 1452570 | ||||||
Attachments: |
|
Description
mxie@redhat.com
2016-09-08 15:28:41 UTC
Hi mxie, you said that the old v2v version, virt-v2v-1.32.3-1.el7.x86_64, worked while virt-v2v-1.32.7-3.el7.x86_64 does not. Did you upgrade the OpenStack environment you are using for testing changed as well? Because from what I see, the glance client for the API v2 does not allow names for 'image-update', while only the UUID (whereas the client for v1 allowed either). Does the old v2v version works with the same OpenStack environment where the new v2v fails? Hi Pino, Yes,old v2v version works with the same OpenStack environment where the new v2v fails Because it is very trouble to update version of openstack, if you think the problem is caused by the old version (12.0.2) of openstack ,I need some time to set up a new openstack server with latest version to verify this bug.Thanks (In reply to mxie from comment #3) > Yes,old v2v version works with the same OpenStack environment where the new > v2v fails Very strage, we don't do anything different. Are you sure also the version of the glance client, installed on the same machine where v2v is run, is the same in both cases? What's its version (see `glance --version`)? > Because it is very trouble to update version of openstack, if you think the > problem is caused by the old version (12.0.2) of openstack ,I need some time > to set up a new openstack server with latest version to verify this > bug.Thanks No, it should not be needed. *** Bug 1374403 has been marked as a duplicate of this bug. *** Fixed upstream with https://github.com/libguestfs/libguestfs/commit/1497a9f722f9a3c4c75282fb19578573e3cc89db which is in libguestfs >= 1.35.6. I can reproduce the bug with below builds: virt-v2v-1.32.7-3.el7.x86_64 libvirt-2.0.0-10.el7.x86_64 openstack:12.0.2-1.el7ost verify with below builds : virt-v2v-1.36.1-1.el7.x86_64 libguestfs-1.36.1-1.el7.x86_64 openstack:12.0.2-1.el7ost verify steps: 1:Convert win7 guest from kvm to glance by virt-v2v # virt-v2v win7-t -o glance [ 0.0] Opening the source -i libvirt win7-t [ 0.0] Creating an overlay to protect the source from being modified [ 0.5] Initializing the target -o glance [ 15.6] Opening the overlay [ 68.3] Inspecting the overlay [ 74.7] Checking for sufficient free disk space in the guest [ 74.7] Estimating space required on target for each disk [ 74.7] Converting Windows 7 Ultimate to run on KVM virt-v2v: warning: /usr/share/virt-tools/pnp_wait.exe is missing. Firstboot scripts may conflict with PnP. virt-v2v: This guest has virtio drivers installed. [ 77.6] Mapping filesystem data to avoid copying unused and blank areas [ 78.0] Closing the overlay [ 78.6] Checking if the guest needs BIOS or UEFI to boot [ 78.6] Assigning disks to buses [ 78.6] Copying disk 1/1 to /var/tmp/glance.5b6Ob4/sda (raw) (100.00/100%) [ 422.4] Creating output metadata +------------------+--------------------------------------+ | Property | Value | +------------------+--------------------------------------+ | architecture | x86_64 | | checksum | b1602a3b33495669111ea17e27670874 | | container_format | bare | | created_at | 2017-03-07T07:05:37Z | | disk_format | raw | | hw_disk_bus | virtio | | hw_video_model | qxl | | hw_vif_model | virtio | | hypervisor_type | kvm | | id | 3ab72ac4-5f7c-4d58-a969-5a2dad4fe1e1 | | min_disk | 0 | | min_ram | 1024 | | name | win7-t | | os_distro | windows | | os_type | windows | | os_version | 6.1 | | owner | 6c4dac53186d44fcbac29d3f3f575125 | | protected | False | | size | 12884901888 | | status | active | | tags | [] | | updated_at | 2017-03-07T07:07:55Z | | virtual_size | None | | visibility | private | | vm_mode | hvm | +------------------+--------------------------------------+ [ 582.8] Finishing off Result: There is no HTTP 404 error info when using verify version of packages to convert guest to glance ,so move the bug 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, 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/RHBA-2017:2023 |