Status Update
Comments
fa...@arki1.com <fa...@arki1.com> #3
In the mean time, you can downgrade to Cloud SDK version 185 as a workaround by running the following command:
gcloud components update --version 185.0.0
em...@amedia.no <em...@amedia.no> #4
Same issue here on Linux with gcloud 510; gcloud secrets
and gcloud secrets --help
crashes with a LayoutException
, though for me the element it's referencing a different element:
ERROR: gcloud crashed (LayoutException): Multiple definitions for release tracks [GA] for element: [/opt/google-cloud-cli/lib/surface/secrets/get_iam_policy]
If I invent some nonexistent command I get different elements:
gcloud secrets foo --help
=> ERROR: gcloud crashed (LayoutException): Multiple definitions for release tracks [GA] for element: [/opt/google-cloud-cli/lib/surface/secrets/set_iam_policy]
gcloud secrets foo
=> ERROR: gcloud crashed (LayoutException): Multiple definitions for release tracks [GA] for element: [/opt/google-cloud-cli/lib/surface/secrets/add_iam_policy_binding]
and re-running with --help
again yields yet another element
gcloud secrets foo --help
=> ERROR: gcloud crashed (LayoutException): Multiple definitions for release tracks [GA] for element: [/opt/google-cloud-cli/lib/surface/secrets/remove_iam_policy_binding]
so the exact element appears to be arbitrary
ka...@google.com <ka...@google.com> #5
I tried gcloud secrets
and gcloud secrets --help
on both Linux and MacOS with v509 and v510. did not see the error.
kaiqizheng@linux-kaiqi1:~$ gcloud secrets
ERROR: (gcloud.secrets) Command name argument expected.
Available groups for gcloud secrets:
locations Manage locations of users' secrets.
replication Manage secret replication.
versions Manage secret versions.
Available commands for gcloud secrets:
add-iam-policy-binding Add IAM policy binding to a secret.
create Create a new secret.
delete Delete a secret.
describe Describe a secret's metadata.
get-iam-policy Get the IAM policy for the secret.
list List all secret names.
remove-iam-policy-binding Remove IAM policy binding for a secret.
set-iam-policy Set the IAM policy binding for a secret.
update Update a secret's metadata.
For detailed information on this command and its flags, run:
gcloud secrets --help
Can you try install gcloud from the official
Description
WARNING: This is a PUBLIC issue tracker, and as such, anybody can read the information in the report you file. In order to help diagnose the issue, we've included some installation information in this report. Please look through and redact any information you consider personal or sensitive before submitting this issue.
I expected to do not see a LayoutException or crash. I actually wanted to perform
gcloud secrets add-iam-policy-binding
, that is also crashing, but even not especifying the command, it crashes.Interestingly enough, I created a secret (
gcloud secrets create
works), defined a value, then when I wanted to grant permission for it to a service account, the crash started to happen.After that, I've upgrade gcloud sdk to make sure I was testing with the latest version and the error persisted.