Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Creation of user returns error in swarm mode with load balancing #6957

@Lisiadito

Description

@Lisiadito

I run a 3 node docker swarm setup with an nginx for load balancing and tls.

Expected Behavior

I can create an user with an policy attached.

Current Behavior

When I run
./mc admin user add minio newuser newuser123 customPolicy
I get following Error
mc: <ERROR> Cannot set user policy for new user The specified user does not exist.

According to my conversation in slack it is caused by my nginx which does round robin load balancing.

Your Environment

  • Version used (minio version):
    Version: 2018-12-06T01:27:43Z
    Release-Tag: RELEASE.2018-12-06T01-27-43Z
    Commit-ID: 4085280

  • Environment name and version (e.g. nginx 1.9.1):
    nginx/1.15.7

  • Operating System and version (uname -a):
    Linux 4.4.0-140-generic Skip policy files #166-Ubuntu SMP Wed Nov 14 20:09:47 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions