License key API erroneously reports "Invalid license key"

Bug #1848097 reported by Kit Randel on 2019-10-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
High
Unassigned

Bug Description

PUT/POST requests to the license key API (PUT/POST /MAAS/api/2.0/license-key/{osystem}/{distro_series}) can sometimes result in a 400 with the error body "License key invalid", although the license key is in fact valid.

e.g. {"__all__": ["Invalid license key."]}

This potentially occurs when the operating system image is not in a 'synced' state. Repeated requests to this endpoint do eventually result in an updated or created license key.

Interestingly DELETE doesn't seem to have this issue.

Alberto Donato (ack) on 2019-10-15
Changed in maas:
milestone: none → 2.7.0alpha1
importance: Undecided → High
status: New → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers