GitHub user arpanbht created a discussion: Multiple Management Server

I am trying to add two management server in my cloudstack setup but failing to 
add the 2nd management server. The 1st created management server is working 
fine with one compute host and one nfs server added.

These are the steps I am following to install the cloudstack-manangement 

```
apt install chrony -y

sudo nano /etc/apt/sources.list.d/cloudstack.list
deb https://download.cloudstack.org/ubuntu jammy 4.22

wget -O - https://download.cloudstack.org/release.asc |sudo tee 
/etc/apt/trusted.gpg.d/cloudstack.asc

sudo apt update

sudo apt install cloudstack-management -y

sudo apt install openjdk-11-jdk -y

sudo update-alternatives --config java

sudo apt install mysql-server -y

sudo nano /etc/mysql/my.cnf

[mysqld]
server_id=source-01
innodb_rollback_on_timeout=1
innodb_lock_wait_timeout=600
max_connections=350
log_bin=mysql-bin
binlog_format=ROW

sudo systemctl restart mysql

sudo mysql

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 
'<password>';
FLUSH PRIVILEGES;
EXIT;

sudo cloudstack-setup-databases cloud:<password>@localhost 
--deploy-as=root:<password> -e file -m <mgmt_key> -k <db_key> -i <mgmt_ip>

nano /etc/sudoers

Defaults:cloud !requiretty

cloudstack-setup-management

ufw allow mysql

ufw allow 8080/tcp
ufw allow 8250/tcp
ufw allow 8443/tcp
ufw allow 9090/tcp
ufw enable
ufw reload

sudo systemctl start cloudstack-management
sudo systemctl enable cloudstack-management
```
These steps I am following for the 1st time installation of 
cloudstack-management into a machine 

---

On the 2nd time when I am installing cloudstack-management to add it as a 
management server I am following these steps....

I am not installing mysql on this machine just installing cloudstack-management

```
apt install chrony -y

sudo nano /etc/apt/sources.list.d/cloudstack.list
deb https://download.cloudstack.org/ubuntu jammy 4.22

wget -O - https://download.cloudstack.org/release.asc |sudo tee 
/etc/apt/trusted.gpg.d/cloudstack.asc

sudo apt update

sudo apt install cloudstack-management -y

sudo apt install openjdk-11-jdk -y

sudo update-alternatives --config java

nano /etc/sudoers

Defaults:cloud !requiretty

cloudstack-setup-management

ufw allow 8080/tcp
ufw allow 8250/tcp
ufw allow 8443/tcp
ufw allow 9090/tcp
ufw enable
ufw reload

sudo systemctl start cloudstack-management
sudo systemctl enable cloudstack-management
```

---

By following these I am able to install the management server on the 2nd 
machine but getting 503 error.

GitHub link: https://github.com/apache/cloudstack/discussions/12757

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to