You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that the issue from #197 still persists.
To Reproduce
Steps to reproduce the behavior:
Create DB:
astra db create my_serverless_db -c aws -r us-east-1 --async
Try to add region to DB:
astra db create-region my_serverless_db -r us-east-2
[ERROR] Error when creating a region : Error Code=422(422) Invalid information provided to create DB: {"errors":[{"ID":2000011,"message":"unsupported database tier"},{"ID":2000012,"message":"unsupported cloud provider"},{"ID":2000013,"message":"unsupported region"},{"ID":2000106,"message":"provider \"\" not supported to add datacenters"}]}
com.dtsx.astra.cli.db.exception.CannotCreateRegionException: Region 'us-east-2' cannot be created for database 'my_serverless_db'
at com.dtsx.astra.cli.db.region.ServiceRegion.addRegion(ServiceRegion.java:174)
at com.dtsx.astra.cli.db.region.DbCreateRegionCmd.execute(DbCreateRegionCmd.java:88)
at com.dtsx.astra.cli.core.AbstractConnectedCmd.run(AbstractConnectedCmd.java:62)
at com.dtsx.astra.cli.AstraCli.run(AstraCli.java:295)
at com.dtsx.astra.cli.AstraCli.main(AstraCli.java:270)
at [email protected]/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
Caused by: java.lang.IllegalArgumentException: Error Code=422(422) Invalid information provided to create DB: {"errors":[{"ID":2000011,"message":"unsupported database tier"},{"ID":2000012,"message":"unsupported cloud provider"},{"ID":2000013,"message":"unsupported region"},{"ID":2000106,"message":"provider \"\" not supported to add datacenters"}]}
at com.dtsx.astra.sdk.utils.HttpClientWrapper.processErrors(HttpClientWrapper.java:492)
at com.dtsx.astra.sdk.utils.HttpClientWrapper.executeHttp(HttpClientWrapper.java:404)
at com.dtsx.astra.sdk.utils.HttpClientWrapper.executeHttp(HttpClientWrapper.java:354)
at com.dtsx.astra.sdk.utils.HttpClientWrapper.POST(HttpClientWrapper.java:292)
at com.dtsx.astra.sdk.AbstractApiClient.POST(AbstractApiClient.java:154)
at com.dtsx.astra.sdk.db.DbDatacentersClient.create(DbDatacentersClient.java:133)
at com.dtsx.astra.cli.db.region.ServiceRegion.addRegion(ServiceRegion.java:170)
... 5 more
[ERROR] INTERNAL_ERROR: Region 'us-east-2' cannot be created for database 'my_serverless_db'
Using database ID produces same error:
astra db create-region 26054aa9-eb37-4d88-b343-7c934cd1d7bc -r us-east-2
[ERROR] Error when creating a region : Error Code=422(422) Invalid information provided to create DB: {"errors":[{"ID":2000011,"message":"unsupported database tier"},{"ID":2000012,"message":"unsupported cloud provider"},{"ID":2000013,"message":"unsupported region"},{"ID":2000106,"message":"provider \"\" not supported to add datacenters"}]}
com.dtsx.astra.cli.db.exception.CannotCreateRegionException: Region 'us-east-2' cannot be created for database '26054aa9-eb37-4d88-b343-7c934cd1d7bc'
at com.dtsx.astra.cli.db.region.ServiceRegion.addRegion(ServiceRegion.java:174)
at com.dtsx.astra.cli.db.region.DbCreateRegionCmd.execute(DbCreateRegionCmd.java:88)
at com.dtsx.astra.cli.core.AbstractConnectedCmd.run(AbstractConnectedCmd.java:62)
at com.dtsx.astra.cli.AstraCli.run(AstraCli.java:295)
at com.dtsx.astra.cli.AstraCli.main(AstraCli.java:270)
at [email protected]/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
Caused by: java.lang.IllegalArgumentException: Error Code=422(422) Invalid information provided to create DB: {"errors":[{"ID":2000011,"message":"unsupported database tier"},{"ID":2000012,"message":"unsupported cloud provider"},{"ID":2000013,"message":"unsupported region"},{"ID":2000106,"message":"provider \"\" not supported to add datacenters"}]}
at com.dtsx.astra.sdk.utils.HttpClientWrapper.processErrors(HttpClientWrapper.java:492)
at com.dtsx.astra.sdk.utils.HttpClientWrapper.executeHttp(HttpClientWrapper.java:404)
at com.dtsx.astra.sdk.utils.HttpClientWrapper.executeHttp(HttpClientWrapper.java:354)
at com.dtsx.astra.sdk.utils.HttpClientWrapper.POST(HttpClientWrapper.java:292)
at com.dtsx.astra.sdk.AbstractApiClient.POST(AbstractApiClient.java:154)
at com.dtsx.astra.sdk.db.DbDatacentersClient.create(DbDatacentersClient.java:133)
at com.dtsx.astra.cli.db.region.ServiceRegion.addRegion(ServiceRegion.java:170)
... 5 more
[ERROR] INTERNAL_ERROR: Region 'us-east-2' cannot be created for database '26054aa9-eb37-4d88-b343-7c934cd1d7bc'
Expected behavior
2nd region added.
Desktop (please complete the following information):
Describe the bug
It appears that the issue from #197 still persists.
To Reproduce
Steps to reproduce the behavior:
Create DB:
Try to add region to DB:
Using database ID produces same error:
Expected behavior
2nd region added.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: