Skip to content

Conversation

@wking
Copy link
Member

@wking wking commented Dec 8, 2018

I'd have expected this to be the default for instance types where EBS-optimized is the default (like m4.large). But apparently not:

$ AWS_PROFILE=ci aws ec2 describe-instances --instance-ids i-076622e249b75a673 --query 'Reservations[0].Instances[0].{InstanceType: InstanceType, EbsOptimized: EbsOptimized}' --output json
{
    "EbsOptimized": false,
    "InstanceType": "m4.large"
}

Docs for the Terraform property are here.

I'd have expected this to be the default for instance types where
EBS-optimized is the default (like m4.large [1]).  But apparently not:

  $ AWS_PROFILE=ci aws ec2 describe-instances --instance-ids i-076622e249b75a673 --query 'Reservations[0].Instances[0].{InstanceType: InstanceType, EbsOptimized: EbsOptimized}' --output json
  {
      "EbsOptimized": false,
      "InstanceType": "m4.large"
  }

Docs for the Terraform property are in [2].

[1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html
[2]: https://www.terraform.io/docs/providers/aws/r/instance.html#ebs_optimized
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wking

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Dec 8, 2018
@openshift-ci-robot
Copy link
Contributor

@wking: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/e2e-aws d6f98db link /test e2e-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

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. I understand the commands that are listed here.

@staebler
Copy link
Contributor

I am curious whether this is a deficiency in the AWS instance description. From the AWS web console, you are not allowed to un-check the EBS-optimized box when selecting a m4.large instance.

What will happen if the instance type passed into the bootstrap or master module is one that does not accept EBS optimization? I don't suppose that those instance types are even relevant any more.

@cgwalters
Copy link
Member

The TF docs explicitly say:

Note that if this is not set on an instance type that is optimized by default then this will show as disabled but if the instance type is optimized by default then there is no need to set this and there is no effect to disabling it.

But it can't hurt to set it either.

@wking
Copy link
Member Author

wking commented Dec 10, 2018

The TF docs explicitly say...

Heh, I somehow skimmed over that sentence. And taking another look at the AWS docs:

For instance types that are EBS–optimized by default, there is no need to enable EBS optimization and no effect if you disable EBS optimization.

So I'm closing this to keep the code simple and avoid @staebler's point about supporting instance types that don't do EBS-optimization.

@wking wking closed this Dec 10, 2018
@wking wking deleted the aws-ebs-optimized branch December 10, 2018 21:10
kikisdeliveryservice added a commit to kikisdeliveryservice/installer that referenced this pull request Jun 12, 2019
This is a prep step for folding all mco component images into one mco image.
A corresponding mco image flag has been added in the MCO repo via openshift#847

Related-to: openshift/machine-config-operator#739
Related-to: openshift/machine-config-operator#847
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants