wide-easter-61599
01/18/2019, 9:53 PMerror: Plan apply failed: Error creating network: Post <https://www.googleapis.com/compute/v1/projects/fine-sublime-216421/global/networks?alt=json&prettyPrint=false>: oauth2: cannot fetch token: 400 Bad Request
Response: {
"error": "invalid_grant",
"error_description": "Bad Request"
}
stocky-spoon-28903
01/18/2019, 9:54 PMwide-easter-61599
01/18/2019, 9:57 PMchilly-photographer-60932
01/18/2019, 10:00 PMwide-easter-61599
01/18/2019, 10:00 PMcreamy-potato-29402
01/18/2019, 10:02 PM./scripts
?wide-easter-61599
01/18/2019, 10:03 PMcreamy-potato-29402
01/18/2019, 10:03 PMgcloud auth list
?wide-easter-61599
01/18/2019, 10:03 PM* <mailto:infra-ci@fine-sublime-216421.iam.gserviceaccount.com|infra-ci@fine-sublime-216421.iam.gserviceaccount.com>
creamy-potato-29402
01/18/2019, 10:04 PMwide-easter-61599
01/18/2019, 10:04 PMcreamy-potato-29402
01/18/2019, 10:05 PMwide-easter-61599
01/18/2019, 10:05 PMpulumi up
worked and said it was adding itcreamy-potato-29402
01/18/2019, 10:06 PMwide-easter-61599
01/18/2019, 10:06 PMup
identity againcreamy-potato-29402
01/18/2019, 10:06 PMwide-easter-61599
01/18/2019, 10:07 PMcreamy-potato-29402
01/18/2019, 10:07 PMpulumi refresh
and see what happens?wide-easter-61599
01/18/2019, 10:08 PMcreamy-potato-29402
01/18/2019, 10:08 PMwide-easter-61599
01/18/2019, 10:08 PMcreamy-potato-29402
01/18/2019, 10:09 PMwide-easter-61599
01/18/2019, 10:11 PMcreamy-potato-29402
01/18/2019, 10:11 PMwide-easter-61599
01/18/2019, 10:11 PMjadams ~/p/v/a/g/infrastructure *feature/pulumi λ pulumi up 9s 261ms
Previewing update (agencyrocket-infrastructure):
Type Name Plan
pulumi:pulumi:Stack infrastructure-agencyrocket-infrastructure
>- ├─ pulumi:pulumi:StackReference agencyrocket read
+ ├─ gcp:compute:Network staging create
+ ├─ gcp:compute:Subnetwork staging create
+ └─ gcp:container:Cluster staging create
Resources:
+ 3 to create
2 unchanged
Do you want to perform this update? yes
Updating (agencyrocket-infrastructure):
Type Name Status Info
pulumi:pulumi:Stack infrastructure-agencyrocket-infrastructure
>- ├─ pulumi:pulumi:StackReference agencyrocket read
+ └─ gcp:compute:Network staging **creating failed** 1 error
Diagnostics:
gcp:compute:Network (staging):
error: Plan apply failed: Error creating network: Post <https://www.googleapis.com/compute/v1/projects/fine-sublime-216421/global/networks?alt=json&prettyPrint=false>: oauth2: cannot fetch token: 400 Bad Request
Response: {
"error": "invalid_grant",
"error_description": "Bad Request"
}
Resources:
2 unchanged
Duration: 4s
Permalink: <https://app.pulumi.com/knewter/agencyrocket-infrastructure/updates/10>
error: update failed
creamy-potato-29402
01/18/2019, 10:12 PMwide-easter-61599
01/18/2019, 10:13 PMcreamy-potato-29402
01/18/2019, 10:14 PMBecause I had created a new gcloud directory, I didn’t have any application default credentials; this was confirmed by running command gcloud auth application-default print-access-token. Before deleting the gcloud directory, I had application default credentials set, but the token must have been invalidated causing the invalid_grant error from above.
wide-easter-61599
01/19/2019, 2:55 AMcreamy-potato-29402
01/19/2019, 2:56 AMwide-easter-61599
01/19/2019, 2:56 AMcreamy-potato-29402
01/19/2019, 2:56 AMwide-easter-61599
01/19/2019, 2:57 AMcreamy-potato-29402
01/19/2019, 2:58 AMwide-easter-61599
01/19/2019, 2:58 AMcreamy-potato-29402
01/19/2019, 2:58 AMwide-easter-61599
01/19/2019, 2:58 AMcreamy-potato-29402
01/19/2019, 2:58 AMwide-easter-61599
01/19/2019, 2:59 AMjadams ~/p/v/a/g/infrastructure *feature/pulumi λ gcloud auth application-default revoke 1 1s 60ms
You are about to revoke the credentials stored in:
[/Users/jadams/.config/gcloud/application_default_credentials.json]
Do you want to continue (Y/n)?
ERROR: gcloud crashed (TokenRevokeError): invalid_token
If you would like to report this issue, please run the following command:
gcloud feedback
To check gcloud for common problems, please run the following command:
gcloud info --run-diagnostics
creamy-potato-29402
01/19/2019, 3:01 AMwide-easter-61599
01/19/2019, 3:03 AMgcloud auth application-default login
creamy-potato-29402
01/19/2019, 5:58 AMwide-easter-61599
01/19/2019, 6:09 PM