The procedure in this section is applicable for both single server and clustered server environments.
-
In a clustered environment, shutdown all but one node in the cluster. In a single node environment, proceed to the next step.
-
Disable server activities.
Before you change the database password, the CloudBees CD/RO server must be inactive. This ensures no in-flight work is happening that could be reading or writing to a database instance leading to data consistency errors.
To disable server activities complete the following actions on the CloudBees CD/RO server:
-
Disable any active polling triggers and all project schedules.
-
From the main menu, navigate to
. -
In the Enabled column, disable any active triggers.
-
From the main menu, navigate to
. -
Select Electric Cloud from the Projects tab.
-
Select the Schedules tab and disable all schedules, including any polling triggers.
-
-
Make sure all jobs are stopped.
-
From the main menu, navigate to the Platform Home Page.
-
Select the Jobs tab.
-
Review the jobs list and take action to stop all jobs.
-
-
Disable all resources so that no new job steps can run.
-
From the main menu, navigate to the Resources list.
-
Disable each resource by clearing its state from the Enabled column.
-
-
-
Change the database password.
Update the password on the node via the database configuration.
-
Via the command-line using
ectool setDatabaseConfiguration --userName <user-name> --password <new-password>
-
Via the Automation Platform UI at Configurations > Database Configuration.
-
Via the setDatabaseConfiguration Perl API command.
For clustered environments the updated configuration is automatically uploaded to ZooKeeper.
-
-
Restart the node.
-
If using
ectool
to change the password, restart the node. -
If using the UI option to change the password, the node automatically restarts.
-
-
In a clustered environment, restart the rest of the nodes in the cluster.