Creating second account on Cloudian fails by selecting existing region
Explanation:
After adding a Cloud object storage account for Cloudian by adding region with us-east-1 location constraint. If you try to reuse the same region and create a second account, account creation fails.
This happens because region listing API is converting region's location constraint 'us-east-1' to ''<blank> while showing in web UI. You can see added region location constraint was us-east-1 and one which is listed has blank location constraint field. Account created by selecting such region from list fails.
Workaround:
Use the NetBackup Asset Query APIs to create account. Example region details part which can be provided in payload:
"s3RegionDetails": [
{ "regionId": "us-east-1",
"regionName": "<region name same as listed from prior account>",
"serviceHost": "<service host same as listed from prior account>"
}
]You can obtain API DOC from schema API:
https://<primary-server-hostname>/netbackup/asset-service/workloads/saas/schemas/create-or-update-assets-named-query-request