Bug 1491542

Summary: failed to install due to "KeyError: 'vols'"
Product: Red Hat Enterprise Linux 7 Reporter: Xiaodai Wang <xiaodwan>
Component: virt-managerAssignee: Pavel Hrdina <phrdina>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: urgent    
Version: 7.5CC: juzhou, kasong, kuwei, mxie, mzhan, phrdina, tzheng, yisun
Target Milestone: rcKeywords: Automation, Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-manager-1.4.2-2.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 11:43:03 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:

Description Xiaodai Wang 2017-09-14 06:27:10 UTC
commit ec0d3072c07165afa46c663267decb366a66457d
Author: Cole Robinson <crobinso>
Date:   Wed Aug 30 10:34:17 2017 -0400

    virtinst: connection: Fix error caching new pool
    
    $ virt-install --connect test:///default --name foo --ram 64 --import --disk /tmp/idontexist.img
    ERROR    Error: --disk /tmp/idontexist.img: 'vols'


Above problem makes many of our ci jobs fail, because our jobs are running in clean environments and there are no any pools in the environment.


Could you help to backport this patch to downstream and rebuild a package as soon as possible?

Thanks

Comment 6 zhoujunqin 2017-09-15 08:41:58 UTC
Try to verify this bug with new build:
virt-manager-1.4.2-2.el7.noarch
virt-install-1.4.2-2.el7.noarch

Steps:
[Auto job checking] Re-trigger our CI jobs, all works well.

[Manual checking]

1. Prepare a newly installed rhel7.4 system with tree: (GUI or minimal)

http://download.eng.pek2.redhat.com/pub/rhel/released/RHEL-7/7.4/Server/x86_64/os/

2. Then use yum to install virt-install related packages with latest version.
such as:
# yum -y install --skip-broken attr genisoimage iscsi-initiator-utils libvirt\* net-tools nmap nmap-ncat numactl libusbx patch pexpect targetcli tcpdump virt-install scsi-target-utils xfsprogs lsscsi glusterfs glusterfs-server mlocate libcgroup-tools libvirt-admin gstreamer xz fakeroot python-sphinx

# rpm -q virt-install
virt-install-1.4.2-1.el7.noarch

3. Use virt-install to install a domain.
#  virt-install --connect qemu:///system -n avocado-vt-remote-vm1 --hvm --accelerate -r 1024 --vcpus=2 --vnc --os-variant rhel7 --disk path=/var/lib/libvirt/images/rhel7.4.qcow2,bus=virtio,size=10,format=qcow2 --network=bridge=virbr0,model=virtio,mac=52:54:00:52:53:54 --import --noreboot --noautoconsole --serial pty

Starting install...
Allocating 'rhel7.4.qcow2'                                                                                                                                                                  |  10 GB  00:00:00     
Domain creation completed.
You can restart your domain by running:
  virsh --connect qemu:///system start avocado-vt-remote-vm1

Result:
virt-install works well.

So move this bug from ON_QA to VERIFIED, thanks.

Comment 9 errata-xmlrpc 2018-04-10 11:43:03 UTC
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/RHEA-2018:0726