-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
perftune.py should switch to AWS IMDSv2 calls #1051
Comments
scylladb/scylladb#10490 is fixed (closed) and is part of OSS 5.2 release notes. |
Doesn't seem to have been prioritized so far. There's code we can use @ https://github.com/scylladb/scylla-machine-image/blob/next/lib/scylla_cloud.py#L640 |
BTW, this will also break on IPv6 only environments. There you need to use fd00:ec2::254 |
@yaronkaikov , can your team (@syuu1228 ) handle it? |
@mykaul yes |
perftune's __check_host_type method uses IMDSv1 for retrieving instance metadata. It turns out that - as described in scylladb/scylladb#10490 - Ec2 instances may have only IMDSv2 HTTP calls allowed. When requests to IMDSv1 fail, calling is_aws_i3_non_metal_instance() will evaluate to False, which means that i3.nonmetal instance types will get tuned as if they weren't i3 instances. To fix the problem, import IMDSv2 implementation from scylla-machine-image. Fixes scylladb#1051 related scylladb/scylla-machine-image#498 related scylladb/scylladb#10490
perftune's __check_host_type method uses IMDSv1 for retrieving instance metadata. It turns out that - as described in scylladb/scylladb#10490 - Ec2 instances may have only IMDSv2 HTTP calls allowed. When requests to IMDSv1 fail, calling is_aws_i3_non_metal_instance() will evaluate to False, which means that i3.nonmetal instance types will get tuned as if they weren't i3 instances. To fix the problem, import IMDSv2 implementation from scylla-machine-image. Fixes scylladb#1051 related scylladb/scylla-machine-image#498 related scylladb/scylladb#10490
perftune's __check_host_type method uses IMDSv1 for retrieving instance metadata. It turns out that - as described in scylladb/scylladb#10490 - Ec2 instances may have only IMDSv2 HTTP calls allowed. When requests to IMDSv1 fail, calling is_aws_i3_non_metal_instance() will evaluate to False, which means that i3.nonmetal instance types will get tuned as if they weren't i3 instances. To fix the problem, import IMDSv2 implementation from scylla-machine-image. Fixes scylladb#1051 related scylladb/scylla-machine-image#498 related scylladb/scylladb#10490
perftune's __check_host_type method uses IMDSv1 for retrieving instance metadata. It turns out that - as described in scylladb/scylladb#10490 - Ec2 instances may have only IMDSv2 HTTP calls allowed. When requests to IMDSv1 fail, calling is_aws_i3_non_metal_instance() will evaluate to False, which means that i3.nonmetal instance types will get tuned as if they weren't i3 instances. To fix the problem, import IMDSv2 implementation from scylla-machine-image. Fixes scylladb#1051 related scylladb/scylla-machine-image#498 related scylladb/scylladb#10490
perftune's __check_host_type method uses IMDSv1 for retrieving instance metadata. It turns out that - as described in scylladb/scylladb#10490 - Ec2 instances may have only IMDSv2 HTTP calls allowed. When requests to IMDSv1 fail, calling is_aws_i3_non_metal_instance() will evaluate to False, which means that i3.nonmetal instance types will get tuned as if they weren't i3 instances. To fix the problem, import IMDSv2 implementation from scylla-machine-image. Fixes scylladb#1051 related scylladb/scylla-machine-image#498 related scylladb/scylladb#10490
perftune's __check_host_type method uses IMDSv1 for retrieving instance metadata. It turns out that - as described in scylladb/scylladb#10490 - Ec2 instances may have only IMDSv2 HTTP calls allowed.
When requests to IMDSv1 fail, calling
is_aws_i3_non_metal_instance()
will evaluate toFalse
, which means that i3.nonmetal instance types will get tuned as if they weren't i3 instances.The text was updated successfully, but these errors were encountered: