Bug 1000837 - RFE: log URL of geolocation server in anaconda.log
RFE: log URL of geolocation server in anaconda.log
Status: CLOSED WONTFIX
Product: Fedora
Classification: Fedora
Component: anaconda (Show other bugs)
20
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Anaconda Maintenance Team
Fedora Extras Quality Assurance
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-25 16:50 EDT by Steve Tyler
Modified: 2014-01-16 15:14 EST (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-01-16 15:14:12 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Steve Tyler 2013-08-25 16:50:27 EDT
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.