[Bug]: IndexNode do not support MINIO_ACCESS_KEY Environment variable #9706
Labels
kind/bug
Issues or changes related a bug
stale
indicates no udpates for 30 days
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Milestone
Is there an existing issue for this?
Current Behavior
I use MINIO_ACCESS_KEY and MINIO_SECRET_KEY environment variables to configure minio for indexnode,but the indexnode logs shows it still use the config file, so indexnode finally can't access the minio
The following shows the log:
[2021/10/11 11:50:38.215 +00:00] [DEBUG] [indexnode.go:107] ["IndexNode try connect etcd success"]
[2021/10/11 11:50:38.215 +00:00] [DEBUG] [minio_kv.go:47] ["MinioKV NewMinioKV"] [option="{"Address":"my-release-minio.default:9000","AccessKeyID":"","BucketName":"my-release","SecretAccessKeyID":"","UseSSL":false,"CreateBucket":true}"]
[2021/10/11 11:50:38.218 +00:00] [INFO] [grpclog.go:37] ["[core]Subchannel picks a new address "my-release-etcd.default:2379" to connect"]
[2021/10/11 11:50:38.215 +00:00] [INFO] [grpclog.go:37] ["[balancer]base.baseBalancer: handle SubConn state change: 0xc0001cf610, CONNECTING"]
[2021/10/11 11:50:38.219 +00:00] [INFO] [grpclog.go:37] ["[core]Channel Connectivity change to CONNECTING"]
[2021/10/11 11:50:38.250 +00:00] [INFO] [grpclog.go:37] ["[core]Subchannel Connectivity change to READY"]
[2021/10/11 11:50:38.250 +00:00] [INFO] [grpclog.go:37] ["[balancer]base.baseBalancer: handle SubConn state change: 0xc0001cf610, READY"]
[2021/10/11 11:50:38.250 +00:00] [INFO] [grpclog.go:37] ["[roundrobin]roundrobinPicker: newPicker called with info: {map[0xc0001cf610:{{my-release-etcd.default:2379 my-release-etcd.default 0 }}]}"]
[2021/10/11 11:50:38.250 +00:00] [INFO] [grpclog.go:37] ["[core]Channel Connectivity change to READY"]
[2021/10/11 12:05:29.884 +00:00] [DEBUG] [indexnode.go:119] ["IndexNode NewMinIOKV failed"] [error="All attempts results:\nattempt #1:Access Denied.\nattempt #2:Access Denied.\nattempt #3:Access Denied.\nattempt #4:Access Denied.\nattempt #5:Access Denied.\nattempt #6:Access D
Expected Behavior
IndexNode should support read the minio access key and secret from environment variables
Steps To Reproduce
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: