cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Somesh Naidu <>
Subject RE: How to know database master or slave
Date Wed, 15 Jul 2015 23:09:06 GMT
You'd have to make changes to the host_details table.

You could use the following query:
update host_details set password=<encrypted_password> where host_id in (comma_separated_list_of_host_ids);

Look at the contents of this table to get a better understanding of the above query.

For encrypting the password you could use the following:
java -classpath /usr/share/cloudstack-common/lib/jasypt-1.9.0.jar org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI input=<new_password> password=<key>

key = content of file "/etc/cloudstack/management/key" (this is assuming your encryption type
is file)


-----Original Message-----
From: kotipalli venkatesh [] 
Sent: Wednesday, July 15, 2015 2:31 PM
Subject: Re: How to know database master or slave

Thank you Erik. I have one more doubt please help me.

I am using  Cloudstack 4.3.2 and hyper visor is xenserver 6.2.

Under this some vms running. some security problems change the HOST
password after changing the password host level. automatically management
and host communication is mismatch. Because host password is changed.
I think there should be a changes in database?  please provide the path
make changes.

Thank you,

On Wed, Jul 15, 2015 at 11:44 PM, Erik Weber <> wrote:

> Setting up mysql clustering is outside the scope of cloudstack.
> To automatically set up master failover you might want to look at galera or
> similar technologies.
> Erik
> Den onsdag 15. juli 2015 skrev kotipalli venkatesh <
>> følgende:
> > Guys please help me, it's urgent guys
> >
> > I am using cloud stack 4.3.1 and hyper visor is xen-server 6.2.
> >
> > The databases are  continuously replicated master to slave. If master is
> > down that means (sql service ) is not running. Then automatically slave
> act
> > as a master.
> > So slave is master now. So here my doubt is how do you know the master is
> > down and slave will act as a master?
> > Note:  I observed  there is no alert in dashboard.
> >
> > Is there any one face this scenario please help me guys.
> >
> >
> > Thank you,
> > Venkatesh.k
> >
View raw message