Commit 0f069f41 authored by maciek riedl's avatar maciek riedl
Browse files

Merge branch 'proactive-installer' into 'morphemic-rc2.5'

Proactive installer

See merge request !162
parents 7fda006b 7a19f384
Pipeline #24088 passed with stages
in 2 minutes and 41 seconds
......@@ -275,11 +275,15 @@ alias purgesal='function _purgesal() {
echo "melodic-store db password: $db_pass"
echo "purging proactive database"
sudo docker exec -it ubuntu_melodic-store_1 /bin/bash -c "mysql -u"$db_user" -p"$db_pass" -D proactive -Bse \"delete from TASK_DEPLOYMENT;
sudo docker exec -it ubuntu_melodic-store_1 /bin/bash -c "mysql -u"$db_user" -p"$db_pass" -D proactive -Bse \"
SET FOREIGN_KEY_CHECKS=0;
delete from TASK_DEPLOYMENT;
delete from PA_CLOUD_DEPLOYMENT;
delete from DEPLOYMENT;
delete from ByonNode_ipAddresses;
delete from EdgeNode_ipAddresses;
delete from BYON_NODE;
delete from EDGE_NODE;
delete from NODE_CANDIDATE;
delete from JOB_TASK;
delete from Job_variables;
......@@ -298,7 +302,8 @@ alias purgesal='function _purgesal() {
delete from IMAGE;
delete from LOCATION;
delete from PORT;
delete from Task_environmentVars;\""
delete from Task_environmentVars;
SET FOREIGN_KEY_CHECKS=1;\""
echo "done purging"
}; _purgesal'
......
......@@ -2,6 +2,7 @@
#created by mbyra 2021.04.21
#modified by tpiekarz 2021.09.06
#modified by Ali Jawad 2022.10.25
add_permissions() {
sudo chmod +x /home/ubuntu/melodic-utils/melodic_installation/.tools/restartscript.sh
......@@ -106,33 +107,12 @@ install_proactive() {
echo ""
echo "Started proactive installation"
sudo apt-get update
sudo apt-get install -y unzip expect
proactive_url=https://www.activeeon.com/public_content/7cde3381417ff3784639dc41fa7e7cd0544a5234-morphemic-7bulls/activeeon_enterprise-pca_server-linux-x64-12.0.6.zip
cd
sudo sh -c "curl ${proactive_url} -o proactive.zip"
unzip -q proactive.zip
proactive_dir_name=activeeon_enterprise-pca_server-linux-x64-12.0.6
echo "Changing proactive communication protocol to pamr..."
sudo touch ${proactive_dir_name}/config/network/tmp.ini
sudo chmod go+rw ${proactive_dir_name}/config/network/tmp.ini
sudo chmod go+rw ${proactive_dir_name}/config/network/server.ini
sudo chmod go+rw ${proactive_dir_name}/config/network/node.ini
sed "s/proactive.communication.protocol=.*/proactive.communication.protocol=pamr/g" ${proactive_dir_name}/config/network/server.ini >${proactive_dir_name}/config/network/tmp.ini
cat ${proactive_dir_name}/config/network/tmp.ini >${proactive_dir_name}/config/network/server.ini
sed "s/proactive.communication.protocol=.*/proactive.communication.protocol=pamr/g" ${proactive_dir_name}/config/network/node.ini >${proactive_dir_name}/config/network/tmp.ini
cat ${proactive_dir_name}/config/network/tmp.ini >${proactive_dir_name}/config/network/node.ini
sudo rm ${proactive_dir_name}/config/network/tmp.ini
echo "Calling installProactive.exp"
cd ~/activeeon_enterprise-pca_server-linux-x64-12.0.6/addons/awsautoscalinginfrastructure
sudo rm -r infrastructure-aws-autoscaling-12.0.6-all.jar
sudo wget https://www.activeeon.com/public_content/7cde3381417ff3784639dc41fa7e7cd0544a5234-morphemic-7bulls/infrastructure-aws-autoscaling-12.0.6-all.jar
cd ~/activeeon_enterprise-pca_server-linux-x64-12.0.6/dist/war
sudo rm -r connector-iaas
sudo wget https://www.activeeon.com/public_content/7cde3381417ff3784639dc41fa7e7cd0544a5234-morphemic-7bulls/connector-iaas.war
sudo unzip connector-iaas.war
cd ~
./melodic-utils/melodic_installation/installProactive.exp
passphrase="proactive"
wget https://raw.githubusercontent.com/ow2-proactive/utility-scripts/main/morphemic-scripts/proactive-install/ProActive_Installer.sh || { echo "Error while downloading the ProActive installer"; exit 1; }
wget https://raw.githubusercontent.com/ow2-proactive/utility-scripts/main/morphemic-scripts/proactive-install/inputConfig.json || { echo "Error while downloading the ProActive Config json"; exit 1; }
sudo chmod +x ProActive_Installer.sh
sudo ./ProActive_Installer.sh $passphrase $MELODIC_IP
echo "Finished proactive installation"
echo ""
......
......@@ -2,6 +2,7 @@
#created by mbyra 2021.04.21
#modified by tpiekarz 2021.07.19
#modified by Ali Jawad 2022.10.25
add_permissions() {
sudo chmod +x /home/ubuntu/melodic-utils/melodic_installation/.tools/restartscript.sh
......@@ -106,33 +107,12 @@ install_proactive() {
echo ""
echo "Started proactive installation"
sudo apt-get update
sudo apt-get install -y unzip expect
proactive_url=https://www.activeeon.com/public_content/7cde3381417ff3784639dc41fa7e7cd0544a5234-morphemic-7bulls/activeeon_enterprise-pca_server-linux-x64-12.0.6.zip
cd
sudo sh -c "curl ${proactive_url} -o proactive.zip"
unzip -q proactive.zip
proactive_dir_name=activeeon_enterprise-pca_server-linux-x64-12.0.6
echo "Changing proactive communication protocol to pamr..."
sudo touch ${proactive_dir_name}/config/network/tmp.ini
sudo chmod go+rw ${proactive_dir_name}/config/network/tmp.ini
sudo chmod go+rw ${proactive_dir_name}/config/network/server.ini
sudo chmod go+rw ${proactive_dir_name}/config/network/node.ini
sed "s/proactive.communication.protocol=.*/proactive.communication.protocol=pamr/g" ${proactive_dir_name}/config/network/server.ini >${proactive_dir_name}/config/network/tmp.ini
cat ${proactive_dir_name}/config/network/tmp.ini >${proactive_dir_name}/config/network/server.ini
sed "s/proactive.communication.protocol=.*/proactive.communication.protocol=pamr/g" ${proactive_dir_name}/config/network/node.ini >${proactive_dir_name}/config/network/tmp.ini
cat ${proactive_dir_name}/config/network/tmp.ini >${proactive_dir_name}/config/network/node.ini
sudo rm ${proactive_dir_name}/config/network/tmp.ini
echo "Calling installProactive.exp"
cd ~/activeeon_enterprise-pca_server-linux-x64-12.0.6/addons/awsautoscalinginfrastructure
sudo rm -r infrastructure-aws-autoscaling-12.0.6-all.jar
sudo wget https://www.activeeon.com/public_content/7cde3381417ff3784639dc41fa7e7cd0544a5234-morphemic-7bulls/infrastructure-aws-autoscaling-12.0.6-all.jar
cd ~/activeeon_enterprise-pca_server-linux-x64-12.0.6/dist/war
sudo rm -r connector-iaas
sudo wget https://www.activeeon.com/public_content/7cde3381417ff3784639dc41fa7e7cd0544a5234-morphemic-7bulls/connector-iaas.war
sudo unzip connector-iaas.war
cd ~
./melodic-utils/melodic_installation/installProactive.exp
passphrase="proactive"
wget https://raw.githubusercontent.com/ow2-proactive/utility-scripts/main/morphemic-scripts/proactive-install/ProActive_Installer.sh || { echo "Error while downloading the ProActive installer"; exit 1; }
wget https://raw.githubusercontent.com/ow2-proactive/utility-scripts/main/morphemic-scripts/proactive-install/inputConfig.json || { echo "Error while downloading the ProActive Config json"; exit 1; }
sudo chmod +x ProActive_Installer.sh
sudo ./ProActive_Installer.sh $passphrase $MELODIC_IP
echo "Finished proactive installation"
echo ""
......
......@@ -2,6 +2,7 @@
#created by mbyra 2021.04.21
#modified by tpiekarz 2021.07.30,2021.09.06
#modified by Ali Jawad 2022.10.25
add_permissions() {
sudo chmod +x /home/ubuntu/melodic-utils/melodic_installation/.tools/restartscript.sh
......@@ -107,38 +108,11 @@ install_proactive() {
echo ""
echo "Started proactive installation"
sudo apt-get update
sudo apt-get install -y unzip expect
proactive_url=https://www.activeeon.com/public_content/7cde3381417ff3784639dc41fa7e7cd0544a5234-morphemic-7bulls/activeeon_enterprise-pca_server-linux-x64-12.0.6.zip
cd
sudo sh -c "curl ${proactive_url} -o proactive.zip"
unzip -q proactive.zip
proactive_dir_name=activeeon_enterprise-pca_server-linux-x64-12.0.6
echo "Changing proactive communication protocol to pamr..."
sudo touch ${proactive_dir_name}/config/network/tmp.ini
sudo chmod go+rw ${proactive_dir_name}/config/network/tmp.ini
sudo chmod go+rw ${proactive_dir_name}/config/network/server.ini
sudo chmod go+rw ${proactive_dir_name}/config/network/node.ini
sed "s/proactive.communication.protocol=.*/proactive.communication.protocol=pamr/g" ${proactive_dir_name}/config/network/server.ini >${proactive_dir_name}/config/network/tmp.ini
cat ${proactive_dir_name}/config/network/tmp.ini >${proactive_dir_name}/config/network/server.ini
sed "s/proactive.communication.protocol=.*/proactive.communication.protocol=pamr/g" ${proactive_dir_name}/config/network/node.ini >${proactive_dir_name}/config/network/tmp.ini
cat ${proactive_dir_name}/config/network/tmp.ini >${proactive_dir_name}/config/network/node.ini
sudo rm ${proactive_dir_name}/config/network/tmp.ini
echo "Calling installProactive.exp"
cd ~/activeeon_enterprise-pca_server-linux-x64-12.0.6/addons/awsautoscalinginfrastructure
sudo rm -r infrastructure-aws-autoscaling-12.0.6-all.jar
sudo wget https://www.activeeon.com/public_content/7cde3381417ff3784639dc41fa7e7cd0544a5234-morphemic-7bulls/infrastructure-aws-autoscaling-12.0.6-all.jar
cd ~/activeeon_enterprise-pca_server-linux-x64-12.0.6/dist/war
sudo rm -r connector-iaas
sudo wget https://www.activeeon.com/public_content/7cde3381417ff3784639dc41fa7e7cd0544a5234-morphemic-7bulls/connector-iaas.war
sudo unzip connector-iaas.war
cd ~
# ./melodic-utils/melodic_installation/installProactive.exp
# change installation files for excluding expect module
sudo -E cp -p ~/melodic-utils/melodic_installation/tmpU/install_M.sh ${proactive_dir_name}/tools/install_M.sh
sudo -E cp -p ~/melodic-utils/melodic_installation/tmpU/install_base_M.sh ${proactive_dir_name}/tools/install_base_M.sh
sudo ls ${proactive_dir_name}/tools/
sudo ${proactive_dir_name}/tools/install_M.sh
passphrase="proactive"
wget https://raw.githubusercontent.com/ow2-proactive/utility-scripts/main/morphemic-scripts/proactive-install/ProActive_Installer.sh || { echo "Error while downloading the ProActive installer"; exit 1; }
wget https://raw.githubusercontent.com/ow2-proactive/utility-scripts/main/morphemic-scripts/proactive-install/inputConfig.json || { echo "Error while downloading the ProActive Config json"; exit 1; }
sudo chmod +x ProActive_Installer.sh
sudo ./ProActive_Installer.sh $passphrase $MELODIC_IP
echo "Finished proactive installation"
echo ""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment