GCE credential 403 error spams logs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Tim McNamara | ||
2.6 |
Fix Released
|
High
|
Tim McNamara |
Bug Description
A GCE controller has logs with many of these messages:
2019-05-15 14:33:04 ERROR juju.worker.
2019-05-15 14:33:04 DEBUG juju.worker.
googleapi: Error 403: Access Not Configured. Compute Engine API has not been used in project 535381582111 before or it is disabled. Enable it by visiting https:/
We need to treat such errors as Invalid Credential and disable affected models.
We also need a way to trigger a retry - the credential itself will not change but the GCE project will be re-configured to allow the credential out of band to juju. So one idea is to react to a client running juju status on the model - use this operation to trigger a ping of the cloud api with the credential to see if it works this time, and thus mark the credential as valid again. The ping could be something like listing all instances with a filter than returns 0 instances but which validates that the api call completes without error.
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Thanks for raising this Ian. We'll look to address this as soon as possible.