-
Bug
-
Resolution: Not a Bug
-
Undefined
-
None
-
odf-4.17
-
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:
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:
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
`