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

Add support to run eksctl in an IPv6-only environment #1827

Closed
clyang82 opened this issue Feb 19, 2020 · 10 comments
Closed

Add support to run eksctl in an IPv6-only environment #1827

clyang82 opened this issue Feb 19, 2020 · 10 comments
Labels
kind/feature New feature or request priority/backlog Not staffed at the moment. Help wanted. stale

Comments

@clyang82
Copy link

What happened?
A description of actual behavior (with error messages).

My environment is IPv6 enabled.

sh-4.4$ cat /proc/net/if_inet6
fe800000000000008cf3abfffe7af92c 03 40 20 80     eth0
00000000000000000000000000000001 01 80 10 80       lo
fd01000000000004707ad2fffe0000d7 03 40 00 80     eth0

the api endpoint is resolved as IPv4 address.

sh-4.4$ eksctl get cluster
[!]  retryable error (RequestError: send request failed
caused by: Get http://169.254.169.254/latest/meta-data/iam/security-credentials/: dial tcp 169.254.169.254:80: connect: network is unreachable) from ec2metadata/GetMetadata - will retry after delay of 53ms
[!]  retryable error (RequestError: send request failed
caused by: Get http://169.254.169.254/latest/meta-data/iam/security-credentials/: dial tcp 169.254.169.254:80: connect: network is unreachable) from ec2metadata/GetMetadata - will retry after delay of 106ms
[!]  retryable error (RequestError: send request failed
caused by: Get http://169.254.169.254/latest/meta-data/iam/security-credentials/: dial tcp 169.254.169.254:80: connect: network is unreachable) from ec2metadata/GetMetadata - will retry after delay of 180ms
[!]  retryable error (RequestError: send request failed
caused by: Get http://169.254.169.254/latest/meta-data/iam/security-credentials/: dial tcp 169.254.169.254:80: connect: network is unreachable) from ec2metadata/GetMetadata - will retry after delay of 296ms
[!]  retryable error (RequestError: send request failed
caused by: Get http://169.254.169.254/latest/meta-data/iam/security-credentials/: dial tcp 169.254.169.254:80: connect: network is unreachable) from ec2metadata/GetMetadata - will retry after delay of 688ms
[!]  retryable error (RequestError: send request failed
caused by: Get http://169.254.169.254/latest/meta-data/iam/security-credentials/: dial tcp 169.254.169.254:80: connect: network is unreachable) from ec2metadata/GetMetadata - will retry after delay of 1.472s

What you expected to happen?
eksctl can be run successfully in IPv6 environment.

@clyang82
Copy link
Author

@errordeveloper @cPu1 @martina-if Could you please provide your comments here? Thanks.

@martina-if
Copy link
Contributor

Hi @clyang82, can you please run the command in debug mode?

eksctl get cluster -v 4

I have never tried running eksctl from a local ipv6 environment. I suspect this is not supported at the moment.

@clyang82
Copy link
Author

Thanks @martina-if for your response.

bash-5.0# ./eksctl get cluster -v 4
2020-02-27T03:55:25Z [▶]  no region specified in flags or config, setting to us-west-2
2020-02-27T03:55:25Z [!]  retryable error (RequestError: send request failed
caused by: Put http://169.254.169.254/latest/api/token: dial tcp 169.254.169.254:80: connect: network is unreachable) from ec2metadata/GetToken - will retry after delay of 32.311436ms
2020-02-27T03:55:25Z [!]  retryable error (RequestError: send request failed
caused by: Put http://169.254.169.254/latest/api/token: dial tcp 169.254.169.254:80: connect: network is unreachable) from ec2metadata/GetToken - will retry after delay of 80.356392ms
2020-02-27T03:55:25Z [!]  retryable error (RequestError: send request failed
caused by: Put http://169.254.169.254/latest/api/token: dial tcp 169.254.169.254:80: connect: network is unreachable) from ec2metadata/GetToken - will retry after delay of 188.934ms
2020-02-27T03:55:25Z [!]  retryable error (RequestError: send request failed
caused by: Put http://169.254.169.254/latest/api/token: dial tcp 169.254.169.254:80: connect: network is unreachable) from ec2metadata/GetToken - will retry after delay of 461.737528ms
2020-02-27T03:55:26Z [!]  retryable error (RequestError: send request failed
caused by: Put http://169.254.169.254/latest/api/token: dial tcp 169.254.169.254:80: connect: network is unreachable) from ec2metadata/GetToken - will retry after delay of 592.648976ms
2020-02-27T03:55:26Z [!]  retryable error (RequestError: send request failed
caused by: Put http://169.254.169.254/latest/api/token: dial tcp 169.254.169.254:80: connect: network is unreachable) from ec2metadata/GetToken - will retry after delay of 1.404667776s
2020-02-27T03:55:28Z [!]  retryable error (RequestError: send request failed
caused by: Put http://169.254.169.254/latest/api/token: dial tcp 169.254.169.254:80: connect: network is unreachable) from ec2metadata/GetToken - will retry after delay of 3.734132992s
bash-5.0# ./eksctl get cluster -v 6
2020-02-27T03:55:44Z [▶]  no region specified in flags or config, setting to us-west-2
2020-02-27T03:55:44Z [▶]  DEBUG: Request ec2metadata/GetToken Details:
---[ REQUEST POST-SIGN ]-----------------------------
PUT /latest/api/token HTTP/1.1
Host: 169.254.169.254
User-Agent: aws-sdk-go/1.26.4 (go1.13.4; linux; amd64)
Content-Length: 0
X-Aws-Ec2-Metadata-Token-Ttl-Seconds: 21600
Accept-Encoding: gzip


-----------------------------------------------------
2020-02-27T03:55:44Z [▶]  DEBUG: Send Request ec2metadata/GetToken failed, attempt 0/13, error RequestError: send request failed
caused by: Put http://169.254.169.254/latest/api/token: dial tcp 169.254.169.254:80: connect: network is unreachable
2020-02-27T03:55:44Z [!]  retryable error (RequestError: send request failed
caused by: Put http://169.254.169.254/latest/api/token: dial tcp 169.254.169.254:80: connect: network is unreachable) from ec2metadata/GetToken - will retry after delay of 47.019693ms
2020-02-27T03:55:44Z [▶]  DEBUG: Retrying Request ec2metadata/GetToken, attempt 1
2020-02-27T03:55:44Z [▶]  DEBUG: Request ec2metadata/GetToken Details:

Do you have plan to support IPv6 for eksctl ?

@martina-if
Copy link
Contributor

martina-if commented Feb 27, 2020

Hi @clyang82 Thanks for the new logs.

Have you tried running the aws-cli in this environment? Does it work well?

Do you have plan to support IPv6 for eksctl ?

It's not in our near term plans, but let's make this issue a feature request and see if more users vote for it. Based on that we can prioritize it earlier.

@martina-if martina-if added kind/feature New feature or request and removed kind/bug labels Feb 27, 2020
@martina-if martina-if changed the title Cannot run eksctl in IPv6 environment Add support to run eksctl in an IPv6 environment Feb 27, 2020
@clyang82
Copy link
Author

Thanks. aws cli does not work as well.

bash-5.0# aws version
Error relocating /usr/local/bin/aws: __strcat_chk: symbol not found
Error relocating /usr/local/bin/aws: __snprintf_chk: symbol not found
Error relocating /usr/local/bin/aws: __vfprintf_chk: symbol not found
Error relocating /usr/local/bin/aws: __strdup: symbol not found
Error relocating /usr/local/bin/aws: __stpcpy_chk: symbol not found
Error relocating /usr/local/bin/aws: __vsnprintf_chk: symbol not found
Error relocating /usr/local/bin/aws: __strncpy_chk: symbol not found
Error relocating /usr/local/bin/aws: __strcpy_chk: symbol not found
Error relocating /usr/local/bin/aws: __fprintf_chk: symbol not found
Error relocating /usr/local/bin/aws: __strncat_chk: symbol not found

@martina-if
Copy link
Contributor

martina-if commented Feb 28, 2020

@clyang82 These messages look more like an installation issue than a problem specific to an IPv6 environment :/ I would try reinstalling it

@michaelbeaumont
Copy link
Contributor

@clyang82 Can you clarify whether you're looking for ipv6-only support or exactly what kind of environment you have? I'm running eksctl in an IPv6-enabled environment without issue.

@michaelbeaumont michaelbeaumont self-assigned this Jun 16, 2020
@clyang82
Copy link
Author

Yes. I am looking for ipv6-only.

@michaelbeaumont michaelbeaumont changed the title Add support to run eksctl in an IPv6 environment Add support to run eksctl in an IPv6-only environment Jun 17, 2020
@martina-if martina-if added the priority/backlog Not staffed at the moment. Help wanted. label Sep 15, 2020
@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label Jan 18, 2021
@michaelbeaumont michaelbeaumont removed their assignment Jan 21, 2021
@github-actions
Copy link
Contributor

This issue was closed because it has been stalled for 5 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request priority/backlog Not staffed at the moment. Help wanted. stale
Projects
None yet
Development

No branches or pull requests

3 participants