Please add planned end-of-life date to Launchpad API

Bug #823745 reported by Per Cederqvist
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

Using the Launchpad API, it is easy to check if a given Ubuntu version is still supported:

import launchpadlib.launchpad

def supported(version):
    cachedir = os.path.join("/tmp/", "launchpadlib-%s" % os.getuid(), "cache")
    lp = launchpadlib.launchpad.Launchpad.login_anonymously('just testing',
                                                            'production',
                                                            cachedir)
    ubuntu = lp.distributions["ubuntu"]
    return ubuntu.getSeries(name_or_version=version).supported

I'm writing a Nagios check to ensure my machines are running a supported version of
Ubuntu. I'd like the check to return a warning state a couple of months before the
version reaches end-of-life, but as far as I can tell the end-of-life date is not avalable
via the Launchpad API. I'm aware of https://wiki.ubuntu.com/Releases but that page
is fairly hard to parse.

Proposal: add an end_of_life attribute to object returned by getSeries, that contains
the currently scheduled end-of-life date as a string in YYYY-MM-DD format.

Maybe you need two attributes, since the server and desktop systems sometimes
have different end-of-life dates.

Graham Binns (gmb)
Changed in launchpad:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.