Red Hat Bugzilla – Bug 989162
virt-install fails when pointed at rawhide tree (invalid literal for int() with base 10: 'rawhide')
Last modified: 2016-10-22 13:07:44 EDT
Created attachment 779269 [details]
trivial patch to unbreak virt-install on current rawhide trees
As the rawhide compose now generates install images again I pointed virt-install at a suitable install tree (--location=$url). Virt-install fails with the following line:
ERROR (cli:451) Error validating install location: invalid literal for int() with base 10: 'rawhide'
The corresponding backtrace points to FedoraDistro.isValidStore in virtinst/OSDistro.py. After collecting version information from the treeinfo it checks if the returned version is "development". This doesn't seem to be true for current rawhide trees which return "rawhide".
When encountering a version of "rawhide" the os_variant should be set to the latest Fedora version, as is done for "development". The attached trivial patch (against virt-manager.git) does this.
If a version of "development" is no longer used at all it additionally might be possible to remove the check for it.
Version-Release number of selected component (if applicable):
Thanks Lars, I pushed your patch upstream:
virt-manager-0.10.0-2.fc19 has been submitted as an update for Fedora 19.
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing virt-manager-0.10.0-2.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
virt-manager-0.10.0-4.fc19 has been submitted as an update for Fedora 19.
virt-manager-0.10.0-4.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
Should be reopened: release name is now "Rawhide", causing the same error.
Tested with F23 and virt-manager-common-1.3.2-2. Test is now in file /usr/share/virt-manager/virtinst/urlfetcher.py.