Bug 892994 - Running fedup from behind a proxy when upgrading from F17 to F18 fails
Summary: Running fedup from behind a proxy when upgrading from F17 to F18 fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: fedup
Version: 18
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Will Woods
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-08 12:22 UTC by Per Arnold Blåsmo
Modified: 2013-06-24 05:49 UTC (History)
6 users (show)

Fixed In Version: fedup-0.7.3-5.fc17
Clone Of:
Environment:
Last Closed: 2013-05-15 03:29:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Per Arnold Blåsmo 2013-01-08 12:22:02 UTC
Description of problem:
Trying to run fedup when located behind a proxy fails with message:
"Error: can't get boot images.
The 'cmdline-instrepo' repo was rejected by yum as invalid"


Version-Release number of selected component (if applicable):
fedup-0.7.2-1.fc17.noarch

How reproducible:
Try to run upgrade from behind a proxy.

Steps to Reproduce:
1. sudo fedup --network 18 --debuglog fedupdebug.log --instrepo=http://dl.fedoraproject.org/pub/fedora/linux/releases/test/18-Beta/Fedora/x86_64/os/
  
Actual results:
fedup fails with strange message

Expected results:
fedup should not fail and use proxy setting in gnome or respect environment variable http_proxy.

Additional info:
I have proxy configured via environment using 'http_proxy', in yum.conf and in GNOME. Also tried to set it in .curlrc since curls seems to be used.

Same command run with debug output turned on:

sudo fedup --network 18 --debuglog fedupdebug.log --instrepo=http://dl.fedoraproject.org/pub/fedora/linux/releases/test/18-Beta/Fedora/x86_64/os/ --verbose --debug
fedup INFO: /bin/fedup starting at Tue Jan  8 10:29:40 2013
setting up repos...
fedup DEBUG: setup_downloader(version=18, repos=[('add', 'cmdline-instrepo=http://dl.fedoraproject.org/pub/fedora/linux/releases/test/18-Beta/Fedora/x86_64/os/')])
fedup.yum INFO: FedupDownloader(version=18, cachedir=/var/tmp/fedora-upgrade)
fedup.yum DEBUG: prerepoconf.cache=0
fedup.yum INFO: checking repos
fedup.yum DEBUG: conf.cache=0
fedup.yum INFO: repo adobe-linux-i386 seems OK
fedup.yum INFO: repo adobe-linux-x86_64 seems OK
fedup.yum INFO: [Errno 14] curl#7 - "Couldn't connect"
fedup.yum INFO: can't find valid repo metadata for cmdline-instrepo
fedup.yum INFO: repo fedora seems OK
fedup.yum INFO: repo flash seems OK
fedup.yum INFO: repo jenkins seems OK
fedup.yum INFO: repo rpmfusion-free seems OK
fedup.yum INFO: repo rpmfusion-free-updates seems OK
fedup.yum INFO: repo rpmfusion-nonfree seems OK
fedup.yum INFO: repo rpmfusion-nonfree-updates seems OK
fedup.yum INFO: repo updates seems OK
fedup.yum DEBUG: repos.cache=0
Error: can't get boot images.
The 'cmdline-instrepo' repo was rejected by yum as invalid.
fedup INFO: /bin/fedup exiting at Tue Jan  8 10:29:41 2013

Comment 1 Per Arnold Blåsmo 2013-01-08 13:04:07 UTC
Just tried with curl to eliminate problems there. 
Curl seems to work OK.

running : curl -v -o index.html --proxy-any www.bbc.co.uk 2> /tmp/curl.txt

gives:
* About to connect() to proxy squid.<xxx>.com port 3128 (#0)
*   Trying 10.191.254.115...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
^M  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* connected
* Connected to squid.<xxx>.com (10.191.254.115) port 3128 (#0)
> GET HTTP://www.bbc.co.uk HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-redhat-linux-gnu) libcurl/7.24.0 NSS/3.13.5.0 zlib/1.2.5 libidn/1.24 libssh2/1.4.1
> Host: www.bbc.co.uk
> Accept: */*
> Proxy-Connection: Keep-Alive
> 
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Server: Apache
< Cache-Control: private, max-age=60
< Content-Type: text/html
< Expires: Tue, 08 Jan 2013 12:58:29 GMT
< ETag: "aa71c2b1659bc6f81578b27c34c2719f-e8d6e5777428a2a2055f02a9018413b3"
< X-PAL-Host: pal043.cwwtf.bbc.co.uk:80
< Content-Length: 101336
< Date: Tue, 08 Jan 2013 12:58:05 GMT
< Set-Cookie: BBC-UID=8540de8cc147ad2d9af32e67a13e11c1b57bda8cf40441be7af1549468f4a2d00curl/7.24.0%20(x86_64-redhat-linux-gnu)%20libcurl/7.24.0%20NSS/3.13.5.0%20zlib/1.2.5%20libidn/1.24%20libssh2/1.4.1; expires=Sat, 07-Jan-17 12:58:05 GMT; path=/; domain=bbc.co.uk
< X-Cache-Action: PASS (non-cacheable)
< X-Cache-Age: 36
< Vary: X-CDN
< X-Cache: MISS from squid
< X-Cache-Lookup: MISS from squid:3128
< Via: 1.0 squid:3128 (squid/2.6.STABLE18)
* HTTP/1.0 proxy connection set to keep alive!
< Proxy-Connection: keep-alive
< 
{ [data not shown]
^M100   98k  100   98k    0     0   326k      0 --:--:-- --:--:-- --:--:--  329k
* Connection #0 to host squid.<xxx>.com left intact
* Closing connection #0

Comment 2 Will Woods 2013-01-09 20:03:38 UTC
Git commit 4e1ca1e should make fedup use the proxy config in yum.conf for instrepo and other commandline-added repos:

  https://github.com/wgwoods/fedup/commit/4e1ca1e

Can you check out the latest fedup from git and confirm this? (A simple 'make && sudo make install' should work fine to install it)

Comment 3 Per Arnold Blåsmo 2013-01-10 08:48:40 UTC
I have checked, and it works!

Thanks for fast response.

Comment 4 David Fetter 2013-01-15 22:00:42 UTC
A new build would be great, especially for those of us behind the firewalls at hand :)

Comment 5 Robin Stocker 2013-01-28 15:59:01 UTC
The error was slightly different without using --instrepo, but the problem cause seems to be the same (pasting this so that maybe other people will find this bug report faster):

% sudo fedup-cli --network 18 --debuglog fedupdebug.log --verbose --debug   
fedup INFO: /bin/fedup-cli starting at Mon Jan 28 16:54:11 2013
setting up repos...
fedup DEBUG: setup_downloader(version=18, repos=[])
fedup.yum INFO: FedupDownloader(version=18, cachedir=/var/tmp/fedora-upgrade)
fedup.yum DEBUG: prerepoconf.cache=0
fedup.yum INFO: checking repos
fedup.yum DEBUG: conf.cache=0
fedup.yum INFO: repo adobe-linux-x86_64 seems OK
fedup.yum INFO: can't find valid repo metadata for default-installrepo
fedup.yum INFO: repo fedora seems OK
fedup.yum INFO: repo rpmfusion-free seems OK
fedup.yum INFO: repo rpmfusion-free-updates seems OK
fedup.yum INFO: repo updates seems OK
fedup.yum DEBUG: repos.cache=0
Error: can't get boot images.
The installation repo isn't available.
You need to specify one with --instrepo.
fedup INFO: /bin/fedup-cli exiting at Mon Jan 28 16:54:30 2013


Any plans for a new release landing in updates-testing?

Comment 6 Will Woods 2013-01-28 23:55:05 UTC
I'll push something to updates-testing once I'm sure I've got all the bugfixes I want for 0.7.3.

In the meantime, here's a test build:

   http://koji.fedoraproject.org/koji/buildinfo?buildID=381043

Comment 7 Fedora Update System 2013-01-31 14:45:52 UTC
fedup-0.7.3-0.git20130128.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/fedup-0.7.3-0.git20130128.fc17

Comment 8 Robin Stocker 2013-02-05 12:40:57 UTC
I did `yum --enablerepo=updates-testing install fedup`, which installed 0.7.3-0.git20130128.fc17, and I could upgrade successfully. So +1 from here.

Comment 9 Josh Cogliati 2013-02-28 20:05:32 UTC
Is there any reason this hasn't been pushed to stable yet? The update system says it can be.

Comment 10 Will Woods 2013-02-28 20:51:02 UTC
Because I'm not comfortable pushing a half-finished snapshot stable.

There should be a new build Very Soon that will have this bugfix and many others; when that build clears testing, it will go to stable.

Comment 11 Fedora Update System 2013-03-15 23:34:03 UTC
fedup-0.7.3-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/fedup-0.7.3-1.fc17

Comment 12 Fedora Update System 2013-03-17 00:53:47 UTC
Package fedup-0.7.3-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing fedup-0.7.3-1.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-3956/fedup-0.7.3-1.fc17
then log in and leave karma (feedback).

Comment 13 Fedora Update System 2013-04-30 14:50:39 UTC
fedup-0.7.3-3.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/fedup-0.7.3-3.fc18

Comment 14 Fedora Update System 2013-04-30 14:54:42 UTC
fedup-0.7.3-3.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/fedup-0.7.3-3.fc17

Comment 15 Fedora Update System 2013-04-30 15:36:55 UTC
fedup-0.7.3-4.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/fedup-0.7.3-4.fc17

Comment 16 Fedora Update System 2013-04-30 15:37:41 UTC
fedup-0.7.3-4.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/fedup-0.7.3-4.fc18

Comment 17 Fedora Update System 2013-04-30 15:38:42 UTC
fedup-0.7.3-4.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/fedup-0.7.3-4.fc19

Comment 18 Fedora Update System 2013-05-15 03:29:25 UTC
fedup-0.7.3-4.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 19 Scott Davis 2013-06-06 06:47:10 UTC
For the last 3 weeks, people behind a proxy have been able to upgrade FROM Fedora 18 using Fedup, but we cannot yet upgrade TO Fedora 18, as a version of fedup has not yet been released to updates for people behind proxies with corporate policy not to use packages from *testing, only from stable updates.

Is there any hope for a patch for this bug being released for FC17?

Comment 20 Josh Cogliati 2013-06-06 11:58:17 UTC
This bug being fixed for Fedora 17 is currently waiting on Bug 958586, which has a fix in git, but a update has not been submitted.

Comment 21 Will Woods 2013-06-07 16:37:22 UTC
Removing the bug dependency - this bug is not related to the other bug.
An update will be available for F17 shortly.

Comment 22 Fedora Update System 2013-06-07 16:42:36 UTC
fedup-0.7.3-5.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/fedup-0.7.3-5.fc17

Comment 23 Fedora Update System 2013-06-08 03:34:04 UTC
fedup-0.7.3-4.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 24 Fedora Update System 2013-06-23 05:55:50 UTC
fedup-0.7.3-5.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 25 Scott Davis 2013-06-24 05:49:38 UTC
(In reply to Scott Davis from comment #19)
> For the last 3 weeks, people behind a proxy have been able to upgrade FROM
> Fedora 18 using Fedup, but we cannot yet upgrade TO Fedora 18, as a version
> of fedup has not yet been released to updates for people behind proxies with
> corporate policy not to use packages from *testing, only from stable updates.
> 
> Is there any hope for a patch for this bug being released for FC17?

The update was pushed out over the weekend, and I can confirm that it worked for me, my computer is running the current version of Fedora (for a week or two, anyway!) :-)

Thank you to Will and others involved in fixing it.


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