Bug 1000837 - RFE: log URL of geolocation server in anaconda.log
Summary: RFE: log URL of geolocation server in anaconda.log
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-25 20:50 UTC by Steve Tyler
Modified: 2014-01-16 20:14 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-01-16 20:14:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Steve Tyler 2013-08-25 20:50:27 UTC
Description of problem:
The installer does not log the URL of the geolocation server in anaconda.log. This RFE would add logging of the URL to anaconda.log.

Having the URL in the log would allow users to debug some geolocation problems, without needing to actually run the installer, by simply entering the URL in a browser or running curl:
$ curl https://geoip.fedoraproject.org/city

While analyzing Bug 1000022, I had to run wireshark and read the installer code to determine what URL was actually being used: Bug 1000022, Comment 4:
Bug 1000022 - time zone: New York is not the centre of the Universe 

Version-Release number of selected component (if applicable):
anaconda-20.8-1.fc20.x86_64

How reproducible:
Presumably always.

Steps to Reproduce:
1. Start the installer.
2. Quit the installer.
3. Examine /tmp/anaconda.log.

Actual results:
The URL of the geolocation server is not logged.
The log only says: "Geolocation provider: Fedora GeoIP"

See anaconda.log in Bug 1000636, Attachment 789745 [details]:
...
18:18:39,129 INFO anaconda: Running Thread: AnaGeolocationRefreshThread (140343858763520)
18:18:39,130 INFO anaconda: Starting geolocation lookup
18:18:39,130 INFO anaconda: Geolocation provider: Fedora GeoIP
18:18:39,149 DEBUG anaconda: Geoloc: URLError for Fedora GeoIP API lookup:
<urlopen error [Errno -2] Name or service not known>
18:18:39,150 INFO anaconda: Geolocation lookup finished in 0.0 seconds
18:18:39,150 INFO anaconda: no results
...

Expected results:
URL is logged.

Additional info:
Example is from:
Bug 1000636 - NameError: global name 'logicals' is not defined 

BTW, the source of this line in anaconda.log is not identified, but presumably it is from the geolocation thread:

18:18:39,150 INFO anaconda: no results

All log records from the geolocation thread should be tagged, so they can be identified.


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