
On Sun, 8 Jan 2017 00:25:12 +0200 Nir Soffer <nsoffer@redhat.com> wrote:
On Sat, Jan 7, 2017 at 5:11 PM, George Chlipala <gchlip2@uic.edu> wrote:
I am trying to import a VM from libvirt/KVM from the oVirt web UI using the Virtual Machines > Import. Here are the steps that I take.
- I select "KVM (via Libvirt)" as source - I set the URI as "qemu+ssh://root@<hostname>/system". I have previously generated an SSH key for vdsm on the VM node and copied the key to the libvirt host. - I unlick "Require authentication" (using SSH keys) - I select the proxy host as the VM host I setup vdsm with the ssh keys. - Click "Load" to retrieve a list of VMs on the libvirt/KVM system - Select the VMs to migrate and click the right arrow to move to the right side of the wizard (Virtual Machines to Import) - Click "Next" - Select the proper storage domain, i.e. master storage domain. (I have tried both Preallocated and Thin-provisioned options for storage and both fail to import. I have also tried selecting "Clone" for the VMs without success.) - Click "OK"
oVirt seems to start the import, but then gives a message that it failed to import. I have gone through the vdsm.log and this seems to be the relevant lines...
Thread-1123476::ERROR::2017-01-06 17:39:58,316::v2v::674::root::(_run) Job u'60fc807f-e557-4526-aff7-c34e773a684c' failed Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 669, in _run self._import() File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 686, in _import with self._command.execute() as self._proc: File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__ return self.gen.next() File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 591, in execute with self._volumes(), self._password_file(): File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__ return self.gen.next() File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 453, in _password_file os.write(fd, self._password.value) TypeError: must be string or buffer, not None
I think we solved this bug recently.
Yes, this is fixed in vdsm 4.18.21. https://bugzilla.redhat.com/show_bug.cgi?id=1400527 As a workaround, uncheck the "Require authentication" checkbox, but also fill the user name and password fields with some strings. You don't have to enter any real values. Using "abcd" or "12345" is OK, the values will not be used during the import.
Thread-1123476::ERROR::2017-01-06 17:39:58,316::v2v::681::root::(_run) Job u'60fc807f-e557-4526-aff7-c34e773a684c', error trying to abort: AttributeError("'NoneType' object has no attribute 'returncode'",) Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 678, in _run self._abort() File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 738, in _abort if self._proc.returncode is None: AttributeError: 'NoneType' object has no attribute 'returncode'
Another bug.
Can you file a bug? https://bugzilla.redhat.com/enter_bug.cgi?product=vdsm
There's probably no need to open the bug. The error is harmless and we already have a patch pending for that. https://gerrit.ovirt.org/#/c/67083/
Thread-1123477::ERROR::2017-01-06 17:39:58,351::v2v::674::root::(_run) Job u'dc9a86ca-8ece-4c8a-b492-9bc2c8fc3409' failed Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 669, in _run self._import()
Here is some information about my installation.
oVirt Engine Version: 4.0.5.5-1.el7.centos (hosted)
Key packages on VM host/node.
ovirt-engine-appliance-4.0-20161115.1.el7.centos.noarch ovirt-hosted-engine-ha-2.0.4-1.el7.centos.noarch ovirt-setup-lib-1.0.2-1.el7.centos.noarch ovirt-imageio-common-0.4.0-1.el7.noarch ovirt-host-deploy-1.5.3-1.el7.centos.noarch ovirt-iso-uploader-4.0.2-1.el7.centos.noarch ovirt-hosted-engine-setup-2.0.3-1.el7.centos.noarch centos-release-ovirt40-1.0-1.el7.centos.noarch ovirt-imageio-daemon-0.4.0-1.el7.noarch python-ovirt-engine-sdk4-4.0.2-1.el7.centos.x86_64 ovirt-guest-tools-iso-4.0-1.fc23.noarch ovirt-vmconsole-host-1.0.4-1.el7.centos.noarch ovirt-engine-sdk-python-3.6.9.1-1.el7.centos.noarch ovirt-release40-4.0.5-2.noarch libgovirt-0.3.3-4.el7.x86_64 ovirt-vmconsole-1.0.4-1.el7.centos.noarch-4.18.15.3-1.el7.centos.x86_64
Any help would be greatly appreciated.
- George Chlipala _______________________________________________ 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
-- Tomáš Golembiovský <tgolembi@redhat.com>