Uploaded image for project: 'Data Foundation Bugs'
  1. Data Foundation Bugs
  2. DFBUGS-16

[MCG-CLI] User should able to update secret_key without updating access_key using MCG-CLI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • odf-4.17
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • Moderate
    • None

      On ODF 4.17, CLI is throwing "Duplicate access key is found" error while updating only secret with same access_key using MCG-CLI.

       

      We should also add support to update only secret_key or access_key without changing other info.

       

      Adding CLI output below for reference.

      `

      ➜  macosx ./noobaa account credentials test-uday --access-key=qwertyuiop12345asdfg --secret-key=qwertyuiop1234567890//asdfghjklzxcvbnmj+
      INFO[0002] ✅ Exists: NooBaaAccount "test-uday"
      INFO[0004] ✅ Exists: NooBaa "noobaa"
      INFO[0005] ✅ Exists: Service "noobaa-mgmt"
      INFO[0005] ✅ Exists: Secret "noobaa-operator"
      INFO[0005] ✅ Exists: Secret "noobaa-admin"
      INFO[0006] ✈️  RPC: account.update_account_keys() Request: {Email:test-uday AccessKeys:{AccessKey:**** SecretKey:****}}
      WARN[0006] RPC: GetConnection creating connection to wss://localhost:51983/rpc/ 0xc000c41b00
      INFO[0006] RPC: Connecting websocket (0xc000c41b00) &{RPC:0xc000b84be0 Address:wss://localhost:51983/rpc/ State:init WS:<nil> PendingRequests:map[] NextRequestID:0 Lock:

      {state:1 sema:0}

      ReconnectDelay:0s cancelPings:<nil>}
      INFO[0007] RPC: Connected websocket (0xc000c41b00) &{RPC:0xc000b84be0 Address:wss://localhost:51983/rpc/ State:init WS:<nil> PendingRequests:map[] NextRequestID:0 Lock:

      {state:1 sema:0}

      ReconnectDelay:0s cancelPings:<nil>}
      ERRO[0008] ⚠️  RPC: account.update_account_keys() Response Error: Code=ACCESS_KEY_DUPLICATION Message=Duplicate access key is found, each access_key must be unique
      FATA[0008] ❌ Could not update credentials for "test-uday": Duplicate access key is found, each access_key must be unique
      ➜  macosx

      `

              lmauda Liran Mauda
              ukurundw@redhat.com Uday Kurundwade
              Uday Kurundwade
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: