Retry mechanism fails with oauth-authenticated requests

Bug #1435767 reported by Raphaël Badin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Raphaël Badin

Bug Description

When a serialization error occurs in a oauth-authenticated request, the retried transaction has exactly the same Nonce and thus fails with Authorization Error: 'Nonce already used: 06c2928bc8444e7da585bc57f2987ec3'.

It seems storing the None happens outside of the transaction that gets rolledback when something fails.

I was testing something else when I discovered this and I was using the dev environment. Let's make sure it also happens from packaging before we triage this.

Related branches

Raphaël Badin (rvb)
description: updated
Raphaël Badin (rvb)
tags: added: isolation-level
Changed in maas:
milestone: none → 1.8.0
Changed in maas:
status: New → Triaged
Raphaël Badin (rvb)
Changed in maas:
status: Triaged → In Progress
assignee: nobody → Raphaël Badin (rvb)
Raphaël Badin (rvb)
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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