Skip to content

Add retry mechanism for the Launchpad API#686

Open
wilkmar wants to merge 1 commit intoopenstack-charmers:masterfrom
wilkmar:retry_launchpad_request
Open

Add retry mechanism for the Launchpad API#686
wilkmar wants to merge 1 commit intoopenstack-charmers:masterfrom
wilkmar:retry_launchpad_request

Conversation

@wilkmar
Copy link
Copy Markdown

@wilkmar wilkmar commented Sep 17, 2025

Quite often Launchpad API is temporarily unavailable. In such cases, without this patch, a request to get all Ubuntu releases from Launchpad fails immediately, causing the entire test to fail. For example for the charm-octavia it can take up to 2 hours before the functional tests get to this point. And if it fails because of the Launchapad API unavailability, the whole tests suite needs to be restarted. In order to save time and resources, a simple request retry mechanism is introduced by this patch.

Quite often Launchpad API is temporarily unavailable. In such cases, without this patch,
a request to get all Ubuntu releases from Launchpad fails immediately, causing the
entire test to fail. For example for the charm-octavia it can take up to 2 hours before
the functional tests get to this point. And if it fails because of the Launchapad API
unavailability, the whole tests suite needs to be restarted. In order to save time and
resources, a simple request retry mechanism is introduced by this patch.

Signed-off-by: Marcin Wilk <marcin.wilk@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant