Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Conversation

joshuafc
Copy link

Two Storage Class, with different s3 cluster, so different AccessKey & SecretKey.
The second s3 cluster cannot mount. Because of .passwd-s3fs is not cleared before write it's new AccessKey & SecretKey.
for examble:
*****:******xxxx
***is new AccessKey & SecretKey. And xxxx is part of old AccessKey & SecretKey.

Use os.O_TRUNC to clear .passwd-s3fs before write new AccessKey & SecretKey.

Two Storage Class, with different s3 cluster, so different AccessKey & SecretKey.
The second s3 cluster cannot mount. Because of .passwd-s3fs is not cleared before write it's new AccessKey & SecretKey.
for examble:
*****:******xxxx
***is new AccessKey & SecretKey. And xxxx is part of old AccessKey & SecretKey.

Use os.O_TRUNC to clear .passwd-s3fs before write new AccessKey & SecretKey.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant