503s from https://api.launchpad.net/devel/%7Eubuntumembers/participants

Bug #1840929 reported by Dan Watkins on 2019-08-21
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Critical
Colin Watson

Bug Description

This is happening fairly reliably, and started this morning. A few examples:

* https://oops.canonical.com/?oopsid=OOPS-e5a10f33b2077933c4277385c3762b7d
* https://oops.canonical.com/?oopsid=OOPS-b3a6778490f2a8bf4fe0d3b2ba5709be
* https://oops.canonical.com/?oopsid=OOPS-86303dac38f2f9ace4446ee5a5dffb20

The code that is causing this:

def users_in_team(users, team):
    """Determine whether any of these users are in the supplied team.

    :param users: The users which may be members of the supplied team.
    :param team: The team which users may be part of.
    :return: True if any of the users are members of the team, otherwise
        False.
    """
    for member in team.participants:
        if member in users:
            return True
    else:
        return False

Related branches

Dan Watkins (daniel-thewatkins) wrote :

We run jobs that use this code fairly regularly (we have 4 jobs that run on a 15 minute interval), and we started seeing these failures reliably at 11:34Z today.

Paride Legovini (legovini) wrote :

The issue can be reproduced by pointing the browser here;

https://api.launchpad.net/devel/~ubuntumembers/participants

It timeouts most of the time.

Colin Watson (cjwatson) wrote :

This may have been tickled by some slight network change, but I feel the page must have been marginal already if so.

Colin Watson (cjwatson) on 2019-08-21
Changed in launchpad:
assignee: nobody → Colin Watson (cjwatson)
importance: Undecided → Critical
status: New → In Progress
tags: added: api lp-registry oops
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Colin Watson (cjwatson) on 2019-08-23
tags: added: qa-ok
removed: qa-needstesting
Colin Watson (cjwatson) on 2019-08-27
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers