Red Hat Bugzilla – Bug 873963
RFE: Add virt-install --force-url-distro to work with URLs that disable directory listing
Last modified: 2014-12-10 14:01:02 EST
Description of problem:
virt-install tries to verifiy that a URL passed to --location is useable
by trying to connect to it. If a proxy like apt-cacher-ng is configured,
that doesn't return directory listings, this will fail, even if requests
for files under that directory would succeed.
Version-Release number of selected component (if applicable):
virtinst has been merged into virt-manager.git. Moving all virtinst bugs to the virt-manager component.
We should add an option like --force-url-distro, which just assumes that the passed --os-variant value is the distro we are trying to fetch. It's still not that easy, because within each distro category we still probe trees to figure out which layout they are using. Maybe we could swap out the hasFile implementation in this case to just download the file rather than check the directory listing.
Created attachment 931592 [details]
I was also affected by this limitation and would like to suggest the attached patch. Could you consider it for upstream inclusion? Thanks.
Sorry Leonardo, I missed your patch comment :/
I actually just applied a patch upstream that drops the initial directory listing check.
Author: Gabriel de Perthuis <firstname.lastname@example.org>
Date: Mon Dec 8 22:43:38 2014 +0100
URL installs: remove hasFile("") check
I think that should fix things for yall, so closing this bug. If not, please reopen and explain where things are still failing