[2.3] Exception: 'Authorization Error: Invalid API key.

Bug #1801752 reported by Chris Gregan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
High
Unassigned

Bug Description

cdoqa-system-tests cdoqa-system-tests_713
charms_channel charms_channel_stable
cloud-init cloud-init_18.4-0ubuntu1~16.04.2
cpe-foundation cpe-foundation_2.0.0-4-g5629d8e
infra-ubuntu infra-ubuntu_xenial
juju juju_2.4.4
lxd lxd_2.0.11-0ubuntu1~16.04.4
maas maas_2.3.5-6511-gf466fdb-0ubuntu1
python3-curtin python3-curtin_18.1-17-gae48e86f-0ubuntu1~16.04.1
sku sku_fcb-stable-pike-xenial

Region controller crashes after being unable to connect to the DB:

2018-11-04 04:26:59 -: [info] reactor class: twisted.internet.epollreactor.EPollReactor.
2018-11-04 04:26:59 regiond: [info] 10.244.40.32 GET /MAAS/api/2.0/version/ HTTP/1.1 --> 503 SERVICE_UNAVAILABLE (referrer: -; agent: Go-http-client/1.1)
2018-11-04 04:26:59 maasserver.listener: [error] Unable to connect to database: dictionary changed size during iteration
2018-11-04 04:26:59 maasserver.api.support: [warn] maasserver.api.domains.AnonDomainHandler does not have `resource_uri`. This means it may be omitted from generated documentation. Please investigate.
2018-11-04 04:26:59 maasserver.api.support: [warn] maasserver.api.zones.AnonZoneHandler does not have `resource_uri`. This means it may be omitted from generated documentation. Please investigate.
2018-11-04 04:26:59 maasserver.listener: [error] Unable to connect to database: dictionary changed size during iteration
2018-11-04 04:26:59 maasserver.api.support: [warn] maasserver.api.domains.AnonDomainHandler does not have `resource_uri`. This means it may be omitted from generated documentation. Please investigate.
2018-11-04 04:26:59 maasserver.api.support: [warn] maasserver.api.zones.AnonZoneHandler does not have `resource_uri`. This means it may be omitted from generated documentation. Please investigate.
2018-11-04 04:26:59 regiond: [info] 10.244.40.32 GET /MAAS/api/2.0/version/ HTTP/1.1 --> 200 OK (referrer: -; agent: Go-http-client/1.1)
2018-11-04 04:26:59 provisioningserver.utils.services: [info] observe-beacons[eno2]: tcpdump: listening on eno2, link-type EN10MB (Ethernet), capture size 16384 bytes
2018-11-04 04:26:59 regiond: [info] 10.244.40.32 GET /MAAS/api/2.0/version/ HTTP/1.1 --> 200 OK (referrer: -; agent: Go-http-client/1.1)
2018-11-04 04:26:59 provisioningserver.utils.services: [info] observe-beacons[ens1f1]: tcpdump: listening on ens1f1, link-type EN10MB (Ethernet), capture size 16384 bytes
2018-11-04 04:26:59 provisioningserver.utils.services: [info] observe-beacons[eno50]: tcpdump: listening on eno50, link-type EN10MB (Ethernet), capture size 16384 bytes
2018-11-04 04:26:59 provisioningserver.utils.services: [info] observe-beacons[eno3]: tcpdump: listening on eno3, link-type EN10MB (Ethernet), capture size 16384 bytes
2018-11-04 04:26:59 maasserver: [error] ################################ Exception: 'Authorization Error: Invalid API key.' ################################
2018-11-04 04:26:59 maasserver: [error] Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/maasserver/api/auth.py", line 55, in is_authenticated
    consumer, token, parameters = self.validate_token(request)
  File "/usr/lib/python3/dist-packages/piston3/authentication.py", line 321, in validate_token
    return oauth_server.verify_request(oauth_request)
  File "/usr/lib/python3/dist-packages/piston3/oauth.py", line 430, in verify_request
    consumer = self._get_consumer(oauth_request)
  File "/usr/lib/python3/dist-packages/piston3/oauth.py", line 480, in _get_consumer
    raise OAuthError('Invalid consumer.')
piston3.oauth.OAuthError: Invalid consumer.

Revision history for this message
Chris Gregan (cgregan) wrote :
Changed in maas:
status: New → Triaged
summary: - Exception: 'Authorization Error: Invalid API key.
+ [2.3] Exception: 'Authorization Error: Invalid API key.
Changed in maas:
importance: Undecided → High
milestone: none → 2.3.x
Revision history for this message
Adam Collard (adam-collard) wrote :

This bug has not seen any activity in the last 6 months, so it is being automatically closed.

If you are still experiencing this issue, please feel free to re-open.

MAAS Team

Changed in maas:
status: Triaged → Invalid
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.