Code Monkey home page Code Monkey logo

Comments (10)

BuJo avatar BuJo commented on May 30, 2024 1

As I cannot reproduce this, I'll close the issue for now to keep the ticket load a little lower. If there's more information and it's still a problem with the current code, don't hesitate to open a new issue referencing this one.

from terraform-provider-minio.

AMKamel avatar AMKamel commented on May 30, 2024

I encountered the same error using same code

From access log at minio backend

"PUT /minio/admin/v3/add-user?accessKey=test_user HTTP/1.1" 301 178 "-" "MinIO (linux; amd64) madmin-go/0.0.1"
"GET /minio/admin/v3/add-user?accessKey=test_user HTTP/1.1" 426 215 "http://minio.files.com/minio/admin/v3/add-user?accessKey=test_user" "MinIO (linux; amd64) madmin-go/0.0.1"

I am not sure but I think it's related to using an old madmin-go/0.0.1, current version is >1.x @felladrin

from terraform-provider-minio.

BuJo avatar BuJo commented on May 30, 2024

Heya @Lykos153 or @AMKamel could you retest it in that mode? The 1.3.0 release might have fixed your problem.

from terraform-provider-minio.

pinpox avatar pinpox commented on May 30, 2024

@BuJo Still running into this issue. I'm using the user example code from this repository.

✦ ×  terraform apply

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # minio_iam_user.minio_user will be created
  + resource "minio_iam_user" "minio_user" {
      + disable_user  = false
      + force_destroy = false
      + id            = (known after apply)
      + name          = "minio_user_tf"
      + secret        = (sensitive value)
      + status        = (known after apply)
      + update_secret = false
    }

Plan: 1 to add, 0 to change, 0 to destroy.

Changes to Outputs:
  + minio_user_status = (known after apply)
  + user_minio_user   = (known after apply)

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

minio_iam_user.minio_user: Creating...
╷
│ Error: [FATAL] Error creating user (minio_user_tf): This 'admin' API is not supported by server in 'mode-server-fs'
│
│   with minio_iam_user.minio_user,
│   on user.tf line 1, in resource "minio_iam_user" "minio_user":
│    1: resource "minio_iam_user" "minio_user" {

from terraform-provider-minio.

BuJo avatar BuJo commented on May 30, 2024

Allright, since it can be reproduced with the new release, let's reopen this. Thanks for reporting!

from terraform-provider-minio.

BuJo avatar BuJo commented on May 30, 2024

I investigated. According to minio/console#863 and related issues, this is seems to be simply something that the server cannot do when running in this mode. And the terraform adapter cannot provide a workaround for missing server functionality.

Is there something other than the already present error message we could do to help users tripping up on that @pinpox @Lykos153 or @AMKamel ?

from terraform-provider-minio.

AMKamel avatar AMKamel commented on May 30, 2024

I investigated. According to minio/console#863 and related issues, this is seems to be simply something that the server cannot do when running in this mode. And the terraform adapter cannot provide a workaround for missing server functionality.

Is there something other than the already present error message we could do to help users tripping up on that @pinpox @Lykos153 or @AMKamel ?

I couldn't find anyway to workaround this but using minio/mc cli client to do this, and I have to do that using pulumi as they have something like command provider which is somehow mimicing null provisioners in terraform. minio provider at pulumi is suffering from the same issue as it's bridged from minio terraform provider.

Only creating bucket is possible using either terraform or minio provider, you can't creates users, policies at all when using minio fs-mode

from terraform-provider-minio.

BuJo avatar BuJo commented on May 30, 2024

@AMKamel Could you write up how you're using the mc cli in detail to add users in fs-mode?

I mean, if the server tells the client that it is unwilling to perform, the client shouldn't be able to do this. But, the mc could be doing something behind the servers back, so I could investigate that further if I know which "path" to take.

from terraform-provider-minio.

AMKamel avatar AMKamel commented on May 30, 2024

@AMKamel Could you write up how you're using the mc cli in detail to add users in fs-mode?

I mean, if the server tells the client that it is unwilling to perform, the client shouldn't be able to do this. But, the mc could be doing something behind the servers back, so I could investigate that further if I know which "path" to take.

I am using it like this

        create: pulumi.interpolate`mc admin user add --json ${minioAliasName} ${args.userName} ${args.userPassword}`,
        delete: pulumi.interpolate`mc admin user remove --json ${minioAliasName} ${args.userName}`,
        create: pulumi.interpolate`mc admin policy set --json ${minioAliasName} ${args.policyName} user=${this.userName}`,
        delete: pulumi.interpolate`mc admin policy unset --json ${minioAliasName} ${args.policyName} user=${this.userName}`,
        create: pulumi.interpolate`mc admin policy add --json ${minioAliasName} ${args.policyName} ${policyFilePath}`,
        delete: pulumi.interpolate`mc admin policy remove --json ${minioAliasName} ${args.policyName}`,
        create: pulumi.interpolate`mc policy set-json ${policyFilePath} ${minioAliasName}/${args.bucketName}`,
        delete: pulumi.interpolate`mc policy set none ${minioAliasName}/${args.bucketName}`,

from terraform-provider-minio.

kpchen avatar kpchen commented on May 30, 2024

any updates please? I got the same issue with VERSION2020-12-23T02:24:12Z

from terraform-provider-minio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.