-
Notifications
You must be signed in to change notification settings - Fork 560
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
mc alias list sometimes return the configured alias, sometimes not #4950
Comments
@kevinh-canva mostly what is happening is that the server is not ready when your ansible script executes this |
Hello @vadmeste 👋 Thanks for responding, but I'm not sure that's the case. The 2nd |
What you said make me wondering though, is it possible by the time the 2nd I can understand if that fails the 2nd command, but not sure about |
Ok, I've managed to print out
And then, during the shutdown sequence, this is the output
test-minio alias has gone AWOL. I already made sure to add Can we please re-open this issue? |
That doesn't mean the service has started; just doing a You need to use Your ansible automation is racy, and you are not following what @vadmeste wrote.
If you want it to persist, always provide
No |
It doesn't fail.
Forgive me, but at what point did I not follow what he wrote? The suggestion was to add I don't mean to be rude, but I think you don't really follow what I wrote either. What fails is the 2nd I just found out that despite However, for this last run,
I don't think I follow your wording here at all. Do you mean Either way, thanks for the response. I don't understand what actually modifies |
@harshavardhana Please re-open this issue. Adding
The |
Expected behavior
mcli alias list
should always discover a configured alias withmcli alias set
.Actual behavior
Sometimes,
mcli alias list
works correctly, but sometimes it doesn't show the new configured alias.Steps to reproduce the behavior
mcli alias set test-minio http://localhost:9000 <some-root-user> <some-root-password>
mcli alias list
the 1st timemcli alias list
the 2nd timeNOTE: Sorry in advance for the hard-to-read output, as this is spitted out by Ansible and/or I must have done something wrong. However, you can see in the 1st output,
test-minio
config is there, but it's no longer in the 2nd one. Also, for some reason the aliases seem to be duplicated in each output (though it could also be that I messes up the way it's formatted somehow).Sometimes, the 2nd
mcli alias list
works though. I have verified that both commands run under the same user, and hence should read the config from the same~/.mcli/config.json
(and the fact that sometimes this works suggest it's the same user, otherwise it'd fail everytime).The result of a wrong
mcli alias list
, is if I proceed to create a bucket like so:mcli mb --ignore-existing --with-versioning test-minio/test-s3-upload-bucket
, it doesn't recognizetest-minio
as an alias, and instead try to create a directory, which is not what I want.mc --version
mc --version
)System information
The text was updated successfully, but these errors were encountered: