-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
unable to override AMI using amiID
#991
Comments
/cc @wking |
I added a comment to #728 with a sample of where the AMI would be defined in a machine pool. |
You could also define it in the |
I hit the same issue. The AMI specified in the install-config.yaml:
.openshift_install_state.json:
terraform.tfvars:
|
Thanks @staebler Copying here for completeness: - name: master
platform:
aws:
amiID: ami-deadbeef
replicas: 3 I just tried this myself, but met the same outcome where the AMI specified was not used during install time. See below: machines:
- name: master
platform:
aws:
amiID: ami-0d62429fac06659b1
replicas: 3
- name: worker
platform:
aws:
amiID: ami-0d62429fac06659b1
replicas: 3 "machines": [
{
"name": "master",
"replicas": 3,
"platform": {
"aws": {
"amiID": "ami-0d62429fac06659b1",
"type": "",
"iamRoleName": "",
"rootVolume": {
"iops": 0,
"size": 0,
"type": ""
}
}
}
},
{
"name": "worker",
"replicas": 3,
"platform": {
"aws": {
"amiID": "ami-0d62429fac06659b1",
"type": "",
"iamRoleName": "",
"rootVolume": {
"iops": 0,
"size": 0,
"type": ""
}
}
}
}
], DEBUG module.masters.aws_instance.master[2]: Creating...
DEBUG ami: "" => "ami-0ba5f11d0478bde38" $ aws ec2 describe-instances --filters "Name=tag:clusterid,Values=miabbott0104d" | grep ami-
INSTANCES 0 x86_64 False True xen ami-0ba5f11d0478bde38 i-0d258acc93fb21d8b m4.large 2019-01-04T15:31:39.000Z ip-10-0-39-248.us-west-2.compute.internal 10.0.39.248 ec2-54-218-119-130.us-west-2.compute.amazonaws.com 54.218.119.130 /dev/xvda ebs True subnet-0f4c7c52c4d7d028a hvm vpc-056bb5213fe47e6bf
INSTANCES 0 x86_64 False True xen ami-0ba5f11d0478bde38 i-0f84e4cf1ee7dff5f m4.large 2019-01-04T15:31:38.000Z ip-10-0-31-72.us-west-2.compute.internal 10.0.31.72 ec2-52-27-11-91.us-west-2.compute.amazonaws.com 52.27.11.91 /dev/xvda ebs True subnet-0f7ae6b4c178fafb1 hvm vpc-056bb5213fe47e6bf
INSTANCES 0 x86_64 False True xen ami-0ba5f11d0478bde38 i-0f409f5c881c912b1 m4.large 2019-01-04T15:31:35.000Z ip-10-0-12-33.us-west-2.compute.internal 10.0.12.33 ec2-54-245-149-65.us-west-2.compute.amazonaws.com 54.245.149.65 /dev/xvda ebs True subnet-0227b2592defc8729 hvm vpc-056bb5213fe47e6bf
INSTANCES 0 x86_64 False True xen ami-0d62429fac06659b1 i-05707da60ae414390 m4.large 2019-01-04T15:43:27.000Z ip-10-0-153-184.us-west-2.compute.internal 10.0.153.184 /dev/xvda ebs True subnet-0d2c5517e8f447ce3 hvm vpc-056bb5213fe47e6bf
INSTANCES 0 x86_64 False True xen ami-0d62429fac06659b1 i-0841b816acfff0989 m4.large 2019-01-04T15:43:32.000Z ip-10-0-135-135.us-west-2.compute.internal 10.0.135.135 /dev/xvda ebs True subnet-0beface05cce18b84 hvm vpc-056bb5213fe47e6bf
INSTANCES 0 x86_64 False True xen ami-0d62429fac06659b1 i-08133508748c905ff m4.large 2019-01-04T15:43:30.000Z ip-10-0-164-16.us-west-2.compute.internal 10.0.164.16 /dev/xvda ebs True subnet-0aa7df79cdf9f3e1e hvm vpc-056bb5213fe47e6bf |
Oh actually, it looks like it was used for the workers but not the masters? |
Sounds like it's just Terraform-variable generation that's broken then. #792 should fix that. |
@wking: 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. |
Version
Platform (aws|libvirt|openstack):
aws
What happened?
Trying to override the AMI the installer is using by specifying the
amiID
as part of theinstall-config.yaml
file as noted in this commentIt wasn't clear where the
amiID
should be defined, but placing theamiID
in various places throughout theinstall-config.yaml
did not work for myself and others. Examples of config snippets that did not work below:What you expected to happen?
Installer uses the specified
amiID
for master/worker nodes.How to reproduce it (as minimally and precisely as possible)?
install-config.yaml
amiID
in theinstall-config.yaml
Anything else we need to know?
This could just be a case of better documentation about how to use
amiID
(or some other mechanism for selecting an AMI).References
#728
cc: @mike-nguyen @ashcrow
The text was updated successfully, but these errors were encountered: