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

Setting AWS IMDSv2 API response 404 #21

Open
harregoces opened this issue Dec 22, 2021 · 0 comments
Open

Setting AWS IMDSv2 API response 404 #21

harregoces opened this issue Dec 22, 2021 · 0 comments

Comments

@harregoces
Copy link

Hi.
I'm getting a 404 when I'm try to apply the daemonset.
This worked the first time, but I'm getting this error every time I tried to create again the daemonset

kubectl apply -f .daemonset.yaml -n up

kubectl -n up get pods
NAME READY STATUS RESTARTS AGE
s3-provider-54wr8 0/1 CrashLoopBackOff 1 6s
s3-provider-64qtq 0/1 CrashLoopBackOff 1 6s

kubectl -n upiloto logs s3-provider-54wr8

2021-12-22T13:23:13.186Z [INF] s3fs version 1.90(cd466eb) : s3fs -d -f -o endpoint=us-east-1,iam_role=arn:aws:iam:::role/S3All2,allow_other,retries=5 up /var/s3
2021-12-22T13:23:13.188Z [CRT] s3fs_logger.cpp:LowSetLogLevel(240): change debug level from [CRT] to [INF]
2021-12-22T13:23:13.188Z [INF] s3fs.cpp:set_mountpoint_attribute(4093): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40755)
2021-12-22T13:23:13.194Z [INF] curl.cpp:InitMimeType(434): Loaded mime information from /etc/mime.types
2021-12-22T13:23:13.194Z [INF] fdcache_stat.cpp:CheckCacheFileStatTopDir(79): The path to cache top dir is empty, thus not need to check permission.
2021-12-22T13:23:13.197Z [INF] s3fs.cpp:s3fs_init(3382): init v1.90(commit:cd466eb) with OpenSSL
2021-12-22T13:23:13.197Z [INF] s3fs.cpp:s3fs_check_service(3516): check services.
2021-12-22T13:23:13.197Z [INF] curl.cpp:CheckIAMCredentialUpdate(1770): IAM Access Token refreshing...
2021-12-22T13:23:13.197Z [INF] curl.cpp:GetIAMCredentials(2822): [IAM role=arn:aws:iam::
:role/S3All2]
2021-12-22T13:23:13.198Z [INF] curl.cpp:RequestPerform(2316): HTTP response code 200
2021-12-22T13:23:13.198Z [INF] curl.cpp:SetIAMv2APIToken(1727): Setting AWS IMDSv2 API token to AQAEAIXa1q5anhlf3OFws-8QjuE2vpwzshqDm8rHiIyobu6LANpz8A==
2021-12-22T13:23:13.198Z [INF] curl.cpp:RequestPerform(2368): HTTP response code 404 was returned, returning ENOENT
2021-12-22T13:23:13.198Z [ERR] curl.cpp:CheckIAMCredentialUpdate(1774): IAM Access Token refresh failed
2021-12-22T13:23:13.198Z [INF] curl_handlerpool.cpp:ReturnHandler(110): Pool full: destroy the oldest handler
2021-12-22T13:23:13.199Z [CRT] s3fs.cpp:s3fs_check_service(3520): Failed to check IAM role name(arn:aws:iam::*:role/S3All2).
2021-12-22T13:23:13.199Z [ERR] s3fs.cpp:s3fs_exit_fuseloop(3372): Exiting FUSE event loop due to errors

2021-12-22T13:23:13.199Z [INF] s3fs.cpp:s3fs_destroy(3440): destroy

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

1 participant