Created 03-27-2017 08:52 AM
I have created a cluster on Azure using Cloudbreak. Due to access right issues in the Azure tenant, the cluster was moved to another Azure subscription. All is running just fine and shows up in the Azure portal under the new subscription. However, Cloudbreak has lost it's connection to the cluster due to the changed subscription ID. Syncing Cloudbreak to the cluster obviously fails currently. The GUI doesn't allow me to update an existing subscription ID within the credential. Is there another way for me to update the existing credential and sync Cloudbreak to the moved cluster?
Created 03-27-2017 09:05 AM
Hi,
Unfortunately in this case you can update the DB the following way:
docker exec -it cbreak_cbdb_1 psql -U postgres select id,attributes from credential where cloudplatform='AZURE_RM'; update credential set attributes='XX' where id=X;
1st step to exec into the DB docker container
2nd to select the credential you want to update (please note the ID, and copy the whole attributes filed which you want to update)
3rd update the field with the desired changes (please make sure the formatting is correct and the same as before)
Created 03-27-2017 09:05 AM
Hi,
Unfortunately in this case you can update the DB the following way:
docker exec -it cbreak_cbdb_1 psql -U postgres select id,attributes from credential where cloudplatform='AZURE_RM'; update credential set attributes='XX' where id=X;
1st step to exec into the DB docker container
2nd to select the credential you want to update (please note the ID, and copy the whole attributes filed which you want to update)
3rd update the field with the desired changes (please make sure the formatting is correct and the same as before)
Created 03-27-2017 09:23 AM
Thanks @khorvath, that worked flawlessly!
Created 03-27-2017 09:33 AM
@khorvath Oops, I was a bit to enthusiastic... now Cloudbreak syncs without any errors, but it shows a count of 0 for each of the node types.
I checked, all the nodes are active in Ambari.
It might be just cosmetic... but it's strange.
Created 03-27-2017 09:44 AM
Besides the UI weirdness can you for example stop/start your cluster with CB?
Created 03-27-2017 10:39 AM
I can stop & start just fine (apart from a small Zeppelin issue, but that's beside the point).
... and after some time and a logout/login, the node counts were updated correctly... all's good now.