Bug 1322011

Summary: virt-install fails when attempting to install rawhide
Product: [Fedora] Fedora Reporter: Paul Whalen <pwhalen>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: berrange, crobinso, james.hogarth, mfuruta, pbrobinson, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-20 21:33:09 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:

Description Paul Whalen 2016-03-29 14:45:21 UTC
Description of problem:
virt-install fails when attempting to install rawhide

Version-Release number of selected component (if applicable):
virt-install-1.3.2-1.fc23.noarch

How reproducible:
Everytime

Steps to Reproduce:
1. Use virt-install to create a rawhide vm
2. virt-install --name rawhide_x86 --ram 4096 --vcpu 1 --disk path=/var/lib/libvirt/images/rawhide_x86.img,size=8 --location=http://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/

Actual results:
Fails with:
ERROR    Error validating install location: invalid literal for int() with base 10: 'Rawhide'

Comment 1 Masaki Furuta ( RH ) 2016-04-05 13:49:09 UTC
I got same result with latest Fedora-Server-dvd-x86_64-Rawhide-20160331.n.0.iso

For me, fixed with following patch.

# diff -u /usr/share/virt-manager/virtinst/urlfetcher.py-2016-04-05 /usr/share/virt-manager/virtinst/urlfetcher.py
--- /usr/share/virt-manager/virtinst/urlfetcher.py-2016-04-05	2016-04-05 22:41:42.163174230 +0900
+++ /usr/share/virt-manager/virtinst/urlfetcher.py	2016-04-05 22:46:22.868847565 +0900
@@ -797,7 +797,7 @@
         if not ver:
             return False
 
-        if ver == "development" or ver == "rawhide":
+        if ver == "development" or ver == "Rawhide":
             self._version_number = latestnum
             self.os_variant = lateststr
             return

Comment 2 Masaki Furuta ( RH ) 2016-04-05 13:53:49 UTC
virt-manager-common-1.3.2-3.fc25.noarch seems to have this issue too.

Comment 3 Cole Robinson 2016-04-07 21:21:42 UTC
Thanks for the report, fixed upstream (with a slightly different patch)

commit 97b5961506004b925b7f82fc54666ad341d89fe2
Author: Cole Robinson <crobinso>
Date:   Thu Apr 7 17:20:18 2016 -0400

    urlfetcher: Fix rawhide URL detection (bz 1322011)

Comment 4 Cole Robinson 2016-05-20 21:33:09 UTC
Fixed in virt-manager-1.3.2-4.20160520git2204de62d9.fc25