Bug 1322011 - virt-install fails when attempting to install rawhide
Summary: virt-install fails when attempting to install rawhide
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: virt-manager
Version: rawhide
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Cole Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-29 14:45 UTC by Paul Whalen
Modified: 2016-05-20 21:33 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-20 21:33:09 UTC
Type: Bug


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.