yum urlgrabber error in lxc-create -t fedora
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
urlgrabber (Debian) |
Fix Released
|
Unknown
|
|||
urlgrabber (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Trusty |
Fix Released
|
High
|
Clint Byrum |
Bug Description
[Impact]
* Users wishing to use Yum on Ubuntu to build Fedora packages will be met with a backtrace due to curl changing its' API. This makes urlgrabber basically unusable without forcing turning off SSL certification verification, which is not acceptible.
[Test Case]
* Install yum-utils
* Ensure sslverify in section "main" is not set, or is "1" in /etc/yum/yum.conf
* Create a working directory for testing, reference as WORKING
* mkdir $WORKING/
* Add attached "fedora.repo" to $WORKING/
* mkdir $WORKING/
* rpm --rootdir=$WORKING initdb
* yumdownloader --releasever=21 --setopt-
The yumdownloader step will fail with a traceback ending in "pycurl.error: (43, 'CURLOPT_
[Regression Potential]
* Since the library is mostly inoperable when running without SSL verification, regressions seem unlikely.
* The additional fix for keepalives which was included upstream is low risk also as it simply makes the code resilient to a known failure by not allowing incompatible options to be used together.
[Other Info]
N/A
---- Original Report ----
On ubuntu 13.04 with
yum: 3.4.3-1ubuntu1
lxc: 0.9.0-0ubuntu3.3
lxc-templates: 0.9.0-0ubuntu3.3
When attempting to create a fedora Linux Container, I see
$ sudo lxc-create -n fed1 -t fedora
lxc-create: No config file specified, using the default config /etc/lxc/
This is not a fedora host and release missing, defaulting to 14. use -R|--release to specify release
Checking cache download in /var/cache/
Downloading fedora minimal ...
Fetching from http://
% Total % Received % Xferd Average Speed Time Time Time Current
100 24404 100 24404 0 0 41435 0 --:--:-- --:--:-- --:--:-- 43192
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
warning: /var/cache/
Preparing... #######
package fedora-
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.
File "/usr/share/
errcode = main(args)
File "/usr/share/
result, resultmsgs = base.doCommands()
File "/usr/share/
self.
File "/usr/lib/
self.
File "/usr/lib/
pkgSack = self.pkgSack
File "/usr/lib/
pkgSack = property(
File "/usr/lib/
self.
File "/usr/lib/
sack.
File "/usr/lib/
if self._check_
File "/usr/lib/
return repo._check_
File "/usr/lib/
repoXML = self.repoXML
File "/usr/lib/
repoXML = property(
File "/usr/lib/
self.
File "/usr/lib/
return self._groupLoad
File "/usr/lib/
if self._commonLoa
File "/usr/lib/
result = self._getFileRe
File "/usr/lib/
size=102400) # setting max size as 100K
File "/usr/lib/
result = self.grab.
File "/usr/lib/
grab = property(lambda self: self._getgrab())
File "/usr/lib/
self.
File "/usr/lib/
self._grab = mgclass(
File "/usr/lib/
urls = property(
File "/usr/lib/
self.
File "/usr/lib/
mirrorurls.
File "/usr/lib/
metalink_data = property(
File "/usr/lib/
result = ug.urlgrab(url, local, text=self.id + "/metalink")
File "/usr/lib/
return self._retry(opts, retryfunc, url, filename)
File "/usr/lib/
r = apply(func, (opts,) + args, {})
File "/usr/lib/
fo = PyCurlFileObjec
File "/usr/lib/
self._do_open()
File "/usr/lib/
self.
File "/usr/lib/
self.
pycurl.error: (43, '')
Failed to download the rootfs, aborting.
Failed to download 'fedora base'
failed to install fedora
lxc-create: failed to execute template 'fedora'
lxc-create: aborted
This appears to be a yum error. /usr/share/
yum --installroot /var/cache/
Changed in urlgrabber (Debian): | |
status: | Unknown → New |
Changed in urlgrabber (Debian): | |
status: | New → Fix Released |
Changed in urlgrabber (Ubuntu Trusty): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Clint Byrum (clint-fewbar) |
summary: |
- yum error in lxc-create -t fedora + yum urlgrabber error in lxc-create -t fedora |
description: | updated |
Works on ubuntu 12.04 with
yum: 3.2.25-1ubuntu2
lxc: 0.7.5-0ubuntu67