Once upon a time, Kevin Fenzi <ke...@scrye.com> said:
> On Fri, Dec 06, 2019 at 04:49:15PM +0000, Tom Hughes wrote:
> > On 06/12/2019 16:41, Martin Kolman wrote:
> > > On Fri, 2019-12-06 at 08:38 -0600, Chris Adams wrote:
> > > 
> > > > I also installed the Fedora 31 GeoIP packages and ran the geoipupdate,
> > > > and that DB has the correct info.
> > >
> > > IIRC the infra team mentioned some issues with the new geoip database
> > > being incompatible with how the service is currently implemented,
> > > resulting in being stuck with an outdated database until this is resolved.
> > 
> > Sounds like it maybe doesn't have support for GeoLite2 and is using the
> > old MaxMind GeoLite Legacy databases which haven't been updated since
> > the start of this year.
> 
> Yes, that is exactly the case. 
> 
> We recently looked at this to see if we could retire the service, but it
> looks like it's still needed, so we need to figure out how to get cycles
> to update it. 
> 
> If someone wants to work on this, let us know!

I'm at best a hack at python (sorry, my scripting skills were honed in
the days of yore, when the Patholgoically Eclectic Rubbish Lister was
king :) ), but looking at this:

https://github.com/fedora-infra/geoip-city-wsgi

and the anaconda source code (which appears to only care about
country_code and time_zone), it seems reasonably straight forward.  F31
and EPEL (if the site runs on RHEL/CentOS 7) already have the GeoIP2
python library (I had to build the perl modules myself, and haven't
gotten around to submitting them).  I could take a stab, let someone
laugh at my hideous code, but then have a base to knock into shape. :)

Does anything other than anaconda use it?  Only returning country_code
and time_zone would be pretty trivial if not.

Looking at IPv6... as bad as IPv4 geolocation data can be sometimes,
IPv6 is just incomplete (in MaxMind, my home LAN subnet is correct, but
the WAN subnet is located to "the US" (so useless for time zone
selection), so probably best to stick to IPv4

-- 
Chris Adams <li...@cmadams.net>
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to