Skip to content
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

openshift-install may be ignoring region chosen for install config #335

Closed
dgoodwin opened this issue Sep 26, 2018 · 3 comments
Closed

openshift-install may be ignoring region chosen for install config #335

dgoodwin opened this issue Sep 26, 2018 · 3 comments

Comments

@dgoodwin
Copy link
Contributor

dgoodwin commented Sep 26, 2018

Testing openshift-install in a container this morning, I started getting an error like:

bash-4.2# openshift-install cluster
? Email Address dgoodwin@redhat.com
? Password [? for help] ********
? SSH Public Key <none>
? Base Domain REDACTED
? Cluster Name dgoodwin1
? Pull Secret REDACTED
? Platform aws
? Region us-east-1 (N. Virginia)
FATA[0046] failed to generate asset: failed to determine default AMI: MissingRegion: could not find region configuration 

I made a guess that it was ignoring what I selected and instead looking for ~/.aws/config which contains a default region to use. When I ran my container with "-v /home/dgoodwin/.aws/config:/home/user/.aws/config:Z" this particular error went away, leading me to believe it may not properly be loading the region from the install config that gets generated.

Guess would be that Terraform is not loading AWS creds the same way as the installer.

@dgoodwin
Copy link
Contributor Author

CC @ironcladlou as I think this might be related to what you were seeing as well.

wking added a commit to wking/openshift-installer that referenced this issue Sep 27, 2018
We haven't set it in the cluster struct yet, that's a few lines below.
Fixes [1]:

  # openshift-install cluster
  ? Email Address dgoodwin@redhat.com
  ? Password [? for help] ********
  ? SSH Public Key <none>
  ? Base Domain REDACTED
  ? Cluster Name dgoodwin1
  ? Pull Secret REDACTED
  ? Platform aws
  ? Region us-east-1 (N. Virginia)
  FATA[0046] failed to generate asset: failed to determine default AMI: MissingRegion: could not find region configuration

and a copy/paste bug from c6f02ba (pkg/cluster/config: add missing
ami fetch, 2018-09-25, openshift#324).

[1]: openshift#335 (comment)
@ironcladlou
Copy link
Contributor

I noticed this last night on my new machine; I had forgotten to create ~/.aws/config with region settings for my profile; doing so fixed it.

@wking
Copy link
Member

wking commented Sep 27, 2018

Fixed by #346.

@wking wking closed this as completed Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants