-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Installer can't get managedZones while service account and gcloud cli can on GCP #5300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Turns out it reads the file What worked for me was to set |
The OpenShift installer uses FindDefaultCredentials. If that is different than what the gcloud cli uses to find credentials, then that is unfortunate. What is the output of |
I am also encountering this error. $ openshift-install version
openshift-install 4.8.0-0.okd-2021-10-10-030117
built from commit e0b12188a18a84be721116ddda74bb3510bfe03f
release image quay.io/openshift/okd@sha256:1d3f75529b141333939987ba03bf4ad76d83ae31d3b17df9a12c1f1ef67feff2
$ gcloud auth list
Credentialed Accounts
ACTIVE ACCOUNT
* ***@***
$ openshift-install create install-config --log-level=debug
DEBUG OpenShift Installer 4.8.0-0.okd-2021-10-10-030117
DEBUG Built from commit e0b12188a18a84be721116ddda74bb3510bfe03f
DEBUG Fetching Install Config...
DEBUG Loading Install Config...
DEBUG Loading SSH Key...
DEBUG Loading Base Domain...
DEBUG Loading Platform...
DEBUG Loading Cluster Name...
DEBUG Loading Base Domain...
DEBUG Loading Platform...
DEBUG Loading Networking...
DEBUG Loading Platform...
DEBUG Loading Pull Secret...
DEBUG Loading Platform...
DEBUG Fetching SSH Key...
DEBUG Generating SSH Key...
? SSH Public Key /home/richard/.ssh/id_rsa.pub
DEBUG Fetching Base Domain...
DEBUG Fetching Platform...
DEBUG Generating Platform...
? Platform gcp
INFO Credentials loaded from gcloud CLI defaults
? Project ID <MY-PROJECT>
? Region europe-west1
DEBUG Generating Base Domain...
FATAL failed to fetch Install Config: failed to fetch dependency of "Install Config": failed to generate asset "Base Domain": could not retrieve base domains: Get "https://dns.googleapis.com/dns/v1/projects/<MY-PROJECT>/managedZones?alt=json&prettyPrint=false": context canceled I tried to logout and login again to recreate the application_default_credentials.json file but it did not help gcloud auth application-default revoke
gcloud auth application-default login |
As long as |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Uh oh!
There was an error while loading. Please reload this page.
Version
Platform:
GCP
IPI
What happened?
Running
openshift-install create install-config
fails to list the managed zones in GCP project:I am sure that the service account used by the gcloud cli has the correct permissions, it's also the only one authenticated with the CLI:
I can also confirm that I can list zones:
What you expected to happen?
Installer to work or get an indication on why I have no permissions, what account it's trying to use etc.
How to reproduce it (as minimally and precisely as possible)?
In a new shell:
Anything else we need to know?
N/A
References
N/A
The text was updated successfully, but these errors were encountered: