Is there an existing issue for this?
Describe the bug
In logs, backend-link/head appears to drop namespace context:
- request intended for
s3://#profile/bucket
- logs show head on
s3://bucketshop
- credential chain falls back to IMDS unexpectedly
If one suspects it's the creds, they spend troubleshooting the profile for s3://bucketshop rather than for the actually used named profile.
Expected Behavior
E 05:47:32.518455 t[qKiWsHtn]: failed to HEAD remote bucket s3://#sg-bucketshop-bucketpipeline-storagegrid-sample/bucketshop...
Current Behavior
I'd expect to see namespace context, rather than s3://bucketshop.
```sh
$ ais ls
NAME PRESENT
ais://sg-bucketshop-bucketshop yes
Total: [AIS bucket: 1] ========
NAME PRESENT
s3://bucketshop yes
s3://#sg-bucketshop-bucketpipeline-storagegrid-sample/bucketshop yes
Total: [AWS buckets: 2] ========
Logs show remote bucket s3://bucketshop (technically correct, but it's not telling me that it's using the named profile, which may have different credentials):
$ kubectl logs -n ais ais-proxy-0 --since=3m
Defaulted container "aisnode" out of: aisnode, aisinit (init)
E 05:47:32.518455 t[qKiWsHtn]: failed to HEAD remote bucket s3://bucketshop,
err: aws-error[operation error S3: HeadBucket,
get identity: get credentials: failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds: GetMetadata, canceled, context deadline exceeded]: HEAD /v1/buckets/bucketshop (called by p[snxwow3f4vd5e]) (p[snxwow3f4vd5e]: htrun.go:1541 <- prxbck.go:314 <- prxbck.go:291 <- proxy.go:2283 <- proxy.go:474])
Steps To Reproduce
Create 2 S3 profiles, one of them named, and do something wrong on the named one.
$ ais ls
NAME PRESENT
ais://sg-bucketshop-bucketshop yes
Total: [AIS bucket: 1] ========
NAME PRESENT
s3://bucketshop yes
s3://#sg-bucketshop-bucketpipeline-storagegrid-sample/bucketshop yes
Total: [AWS buckets: 2] ========
Now, when working on the bucket with named profile, logs refer to s3://bucketshop.
Possible Solution
No response
Additional Information/Context
No response
AIStore build/version
4.8.42242b334fd57e993919f04acf3c2011cf2db675
Environment details (OS name and version, etc.)
Ubuntu 24.04 LTS
Is there an existing issue for this?
Describe the bug
In logs, backend-link/head appears to drop namespace context:
s3://#profile/buckets3://bucketshopIf one suspects it's the creds, they spend troubleshooting the profile for
s3://bucketshoprather than for the actually used named profile.Expected Behavior
Current Behavior
I'd expect to see namespace context, rather than
s3://bucketshop.Logs show remote bucket s3://bucketshop (technically correct, but it's not telling me that it's using the named profile, which may have different credentials):
Steps To Reproduce
Create 2 S3 profiles, one of them named, and do something wrong on the named one.
$ ais ls NAME PRESENT ais://sg-bucketshop-bucketshop yes Total: [AIS bucket: 1] ======== NAME PRESENT s3://bucketshop yes s3://#sg-bucketshop-bucketpipeline-storagegrid-sample/bucketshop yes Total: [AWS buckets: 2] ========Now, when working on the bucket with named profile, logs refer to
s3://bucketshop.Possible Solution
No response
Additional Information/Context
No response
AIStore build/version
4.8.42242b334fd57e993919f04acf3c2011cf2db675
Environment details (OS name and version, etc.)
Ubuntu 24.04 LTS