Closed ChristianKortwich closed 7 years ago
TROVE_URL endpoint is empty, I guess this is an API issue? Can be bypassed by (all rds commands are affected):
diff --git a/otc b/otc index 61166a9..3a03d98 100755 --- a/otc +++ b/otc @@ -434,6 +434,7 @@ getIamToken() { AUTH_URL_ELB="${NEUTRON_URL/vpc/elb}/v1.0/$OS_PROJECT_ID/elbaas" AUTH_URL_ELB_LB="$AUTH_URL_ELB/loadbalancers"
+ if test -z "$TROVE_URL"; then TROVE_URL=${BASEURL/iam/rds};fi AUTH_URL_RDS="$TROVE_URL/rds"
AUTH_URL_RDS="${AUTH_URL_RDS/:443\///}" # remove :443 port when present
AUTH_URL_RDS_DOMAIN="${AUTH_URL_RDS}/v1/$OS_USER_DOMAIN_ID"
Also dbid is as request parameter is empty. This ID can be queried by:
otc rds datastore MySQL
There is also a small bug that dbid should be dbId (case-sensitive)
Danke Reik,
dachte den dbid Bug schon gepusht zu haben, peinlich.
Hua stellt jetzt anscheinend auf trove um, ohne es anzuzeigen. Naja, wenigstens haben sie trove jetzt angenommen.
Werde deine Änderungen angucken und mergen.
Grüße,
Christian
On Dec 10, 2016 21:25, "Reik Keutterling" notifications@github.com wrote:
TROVE_URL endpoint is empty, I guess this is an API issue? Can be bypassed by (all rds commands are affected):
diff --git a/otc b/otc index 61166a9..3a03d98 100755 --- a/otc +++ b/otc @@ -434,6 +434,7 @@ getIamToken() { AUTH_URL_ELB="${NEUTRON_URL/vpc/elb}/v1.0/$OS_PROJECT_ID/elbaas" AUTH_URL_ELB_LB="$AUTH_URL_ELB/loadbalancers"
- if test -z "$TROVE_URL"; then TROVE_URL=${BASEURL/iam/rds};fi AUTH_URL_RDS="$TROVE_URL/rds"
AUTH_URL_RDS="${AUTH_URL_RDS/:443///}" # remove :443 port when present
AUTH_URL_RDS_DOMAIN="${AUTH_URL_RDS}/v1/$OS_USER_DOMAIN_ID"
Also dbid is as request parameter is empty. This ID can be queried by: otc rds datastore MySQL
There is also a small bug that dbid should be dbId (case-sensitive)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/OpenTelekomCloud/otc-tools/issues/22#issuecomment-266235433, or mute the thread https://github.com/notifications/unsubscribe-auth/AFEs0fgj-SJRSxvO9oyoq6arAenCoSMFks5rGwqlgaJpZM4LGQUJ .
Well, the database endpoint used to be advertised in the catalog, thus the old code worked. It still does in PreProd, but in Prod, the catalog no longer lists a "database" service. So, yes, I will include the workaround, possibly with a warning ... Thanks Christian & Reik! -- Kurt
Fixed.
A more complete statement would have been: Fixed by merging PR #24 aka commit 39a813da.
Command "otc rds flavors" returns "(3) malformed"