Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Update existing Azure credential with new subscription ID

Solved Go to solution

Update existing Azure credential with new subscription ID

New Contributor

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?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Update existing Azure credential with new subscription ID

Expert Contributor

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)

5 REPLIES 5

Re: Update existing Azure credential with new subscription ID

Expert Contributor

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)

Re: Update existing Azure credential with new subscription ID

New Contributor

Thanks @khorvath, that worked flawlessly!

Re: Update existing Azure credential with new subscription ID

New Contributor

@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.

  • In the header the total node count is still correct (5)
  • but on the node type tabs it says 0
  • Under the Nodes sub page all nodes are shown as healthy.

I checked, all the nodes are active in Ambari.

It might be just cosmetic... but it's strange.

Re: Update existing Azure credential with new subscription ID

Expert Contributor

Besides the UI weirdness can you for example stop/start your cluster with CB?

Re: Update existing Azure credential with new subscription ID

New Contributor

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.