Bug 963531 - anaconda Fedora Mirror location often inaccurate in different country
Summary: anaconda Fedora Mirror location often inaccurate in different country
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Martin Kolman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 960763 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-16 05:18 UTC by Jens Petersen
Modified: 2014-05-05 14:38 UTC (History)
10 users (show)

Fixed In Version: 19.30.4-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-05 14:38:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Anaconda updates image that uses the new prelimanry Fedora GeoIP API (1.20 MB, application/x-gzip)
2013-06-03 19:47 UTC, Martin Kolman
no flags Details
new updates image built against 19.30-1 compose (1.03 MB, application/x-gzip)
2013-06-04 13:10 UTC, Martin Kolman
no flags Details

Description Jens Petersen 2013-05-16 05:18:35 UTC
Description of problem:
Anaconda 19.25 seems to be defaulting timezone now to Asia/Dhaka
at least when I install from Japan.

Version-Release number of selected component (if applicable):
19.25

Steps to Reproduce:
1. install Fedora 19 in Japan
  
Actual results:
Anaconda thinks timezone is Asia/Dhaka

Expected results:
Timezone to default to Asia/Tokyo

Additional info:
Is Dhaka being shown because of connecting to some Fedora mirror in that timezone?

Geoip sounds cool at least earlier tz would default to Tokyo always for Japanese install.

Comment 1 Jens Petersen 2013-05-16 05:26:44 UTC
(For reference Dhaka is the capital of Bangladesh -
about 4.9Mm from Tokyo and 3 hours behind :)

Comment 2 Jens Petersen 2013-05-17 06:40:34 UTC
Not seeing it any more.

Comment 3 Martin Kolman 2013-05-22 13:50:11 UTC
(In reply to Jens Petersen from comment #0)

> Is Dhaka being shown because of connecting to some Fedora mirror in that
> timezone?
> 
> Geoip sounds cool at least earlier tz would default to Tokyo always for
> Japanese install.
That could be it - Anaconda is currently using the MirrorManager API for getting the current territory code. But that API has a different primary goal - to get you the fastest mirror for your network. As a result, the territory code detection (for default language and timezone preset) might be swayed by a faster mirror in a nearby country. We already contacted the Fedora Infrastructure people & submitted a feature request ticket[1] for setting up a dedicated Fedora GeoIP service, that would not have these issue. Once that new API is up, issues like this should vanish.

There is also an additional possibility - large corporate networks might be routing their Internet traffic through some distant central gateway. But the probability of a Japanese company having an Internet gateway in Bangladesh is rather low. :)

[1] https://fedorahosted.org/fedora-infrastructure/ticket/3807

Comment 4 Reartes Guillermo 2013-05-27 13:45:10 UTC
Location: America / Argentina / Buenos Aires
Language: Spanish

Detected by Anaconda:

CLARO/TELMEX ......Portuguese(BRASIL) + America/Noronha Timezone
SPEEDY/DSL ........Portuguese(BRASIL) + America/Noronha Timezone

So, it is not ISP related.
So, me too.

Comment 5 Adam Williamson 2013-05-30 02:24:03 UTC
There's also the problem that this method can only ever get you a country code. I'm in Vancouver, Canada, which uses Pacific time. The geolocation stuff realizes I'm in Canada...and picks Newfoundland time, which is wrong by a full four and a half hours. We're a big country. =) I imagine this affects other 'wide' countries like the US, Russia and China too.

Comment 6 Martin Kolman 2013-05-30 12:17:53 UTC
*** Bug 960763 has been marked as a duplicate of this bug. ***

Comment 7 Martin Kolman 2013-05-30 14:59:54 UTC
(In reply to Adam Williamson from comment #5)
> There's also the problem that this method can only ever get you a country
> code. I'm in Vancouver, Canada, which uses Pacific time. The geolocation
> stuff realizes I'm in Canada...and picks Newfoundland time, which is wrong
> by a full four and a half hours. We're a big country. =) I imagine this
> affects other 'wide' countries like the US, Russia and China too.
If we can get an API that also returns an approximate city name, it might be possible to match it to a corresponding timezone.

Eq. if you got "US" and "New York", it could be matched to "America/New_York". For most cities the city->timezone mapping would probably not be this straightforward though.

Comment 8 Adam Williamson 2013-05-30 16:21:33 UTC
No, indeed, you'd need some smarts. I suppose I should note at this point that Ubiquity nails me right in Vancouver :)

Comment 9 Martin Kolman 2013-06-03 19:47:37 UTC
Created attachment 756489 [details]
Anaconda updates image that uses the new prelimanry Fedora GeoIP API

So the Fedora Infrastructure people set up a very nice GeoIP API - so far the output seems to be very accurate!

I've made an updates image, that makes Anaconda use this new API by default. Everyone is welcome to test it and report back their findings. :)

If everything goes well, the API could be transferred from staging to production next week, to be ready for use before the Fedora final release.

Comment 10 Adam Williamson 2013-06-03 21:17:25 UTC
just a note, martin - it's better for an updates.img to put it up on some public space (yours or anaconda team's fedorapeople.org space would be ideal) and link to that. Attaching it to a bug isn't great because you can't do 'updates=(somebugzillaattachment)' so people have to download it and either upload it to some space they have access to, or provide it via usb stick or whatever, which is more of a pain...

Comment 11 Adam Williamson 2013-06-03 21:18:19 UTC
http://www.happyassassin.net/extras/new_geoip_API.img is the updates image Martin provided, for testing. thanks martin!

Comment 12 Adam Williamson 2013-06-03 21:25:39 UTC
Well, with that updates.img I see America/Vancouver as the timezone on the hub, but also the installer crashes shortly after the hub appears, with "AttributeError: 'Environment' object has no attribute 'defaultoptions'" in file /tmp/updates/pyanaconda/ui/gui/utils.py . What tag did you build the updates.img from and what other changes did it include?

Comment 13 Martin Kolman 2013-06-04 13:10:24 UTC
Created attachment 756775 [details]
new updates image built against 19.30-1 compose

Well, that still means it's working. :)

That crash might have been caused by an outdated compose I used I built the updates image against. So I've made a new updates image built against a compose with Anaconda 19.30-1. The updates image was created from Anaconda git master + patch that makes Anaconda use the new API.

Comment 14 Fedora Update System 2013-06-11 16:32:35 UTC
anaconda-19.30.4-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/anaconda-19.30.4-1.fc19

Comment 15 Fedora Update System 2013-06-12 19:08:33 UTC
Package anaconda-19.30.5-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing anaconda-19.30.5-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-10652/anaconda-19.30.5-1.fc19
then log in and leave karma (feedback).

Comment 16 Reartes Guillermo 2013-12-03 17:59:28 UTC
F19 was released and F20 will hopefully released soon.

The bug is still set to ON_QA and Comment #13 indicates the issue as fixed.

I think this bug-report should either be Closed or its Version set to 20 if there are still pending issues.


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