GCP integrator charm doesn't support oauth2 credential type
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Google Cloud Platform Integrator Charm |
Triaged
|
Medium
|
Unassigned |
Bug Description
When using the GCP integrator charm with "oauth2" creds we get the following error
unit-gcp-
Traceback (most recent call last):
File "/var/lib/
bus.
File "/var/lib/
_invoke(
File "/var/lib/
handler.
File "/var/lib/
self.
File "/var/lib/
toggle_
File "/var/lib/
creds_data = creds["
KeyError: 'file'
$ juju-exec "credential-get"
type: gce
name: google
region: us-east1
endpoint: https:/
identityendpoint: ""
storageendpoint: ""
credential:
authtype: oauth2
attributes:
client-email: <email address hidden>
client-id: 123456789-
private-key: |
-----BEGIN PRIVATE KEY-----
MIIC...8=
-----END PRIVATE KEY-----
project-id: snippy-snip-1234
redacted: []
cacertificates: []
skiptlsverify: false
iscontrollercloud: true
$ cat .local/
credentials:
google:
credentials:
auth-type: oauth2
project-id: snippy-snip-1234
private-key: |
-----BEGIN PRIVATE KEY-----
MIIC...8=
-----END PRIVATE KEY-----
client-email: <email address hidden>
client-id: 123456789-
Obviously there is no problem with jsonfile creds.
Changed in charm-gcp-integrator: | |
importance: | Undecided → Medium |
status: | New → Triaged |