Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion slurm/install/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@ def main() -> None:
"--mode", default="scheduler", choices=["scheduler", "execute", "login"]
)
parser.add_argument("--bootstrap-config", default="jetpack")
parser.add_argument("--do-install", default=True)

args = parser.parse_args()

Expand All @@ -663,7 +664,8 @@ def main() -> None:
munge_key(settings)

# runs either rhel.sh or ubuntu.sh to install the packages
run_installer(settings, os.path.abspath(f"{args.platform}.sh"), args.mode)
if args.do_install:
run_installer(settings, os.path.abspath(f"{args.platform}.sh"), args.mode)

# various permissions fixes
fix_permissions(settings)
Expand Down
15 changes: 10 additions & 5 deletions specs/default/cluster-init/files/install-non-scheduler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,17 @@ platform=$(jetpack config platform_family rhel)


cd $CYCLECLOUD_HOME/system/bootstrap
if [ $do_install == "True" ]; then

jetpack download --project $slurm_project_name $install_pkg
tar xzf $install_pkg
cd azure-slurm-install
python3 install.py --platform $platform --mode $mode --bootstrap-config /opt/cycle/jetpack/config/node.json
if [ "$do_install" == "false" ]; then
do_install=False
elif [ "$do_install" == "true" ]; then
do_install=True
fi

rm -rf azure-slurm-install
jetpack download --project $slurm_project_name $install_pkg
tar xzf $install_pkg
cd azure-slurm-install
python3 install.py --platform $platform --mode $mode --bootstrap-config /opt/cycle/jetpack/config/node.json --do-install=$do_install

echo "installation complete. Run start-services scheduler|execute|login to start the slurm services."
19 changes: 12 additions & 7 deletions specs/scheduler/cluster-init/scripts/00-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@ slurm_project_name=$(jetpack config slurm.project_name slurm)
platform=$(jetpack config platform_family rhel)

cd $CYCLECLOUD_HOME/system/bootstrap
if [ $do_install == "True" ]; then
rm -rf azure-slurm-install
jetpack download --project $slurm_project_name $install_pkg
tar xzf $install_pkg
cd azure-slurm-install
python3 install.py --platform $platform --mode scheduler --bootstrap-config $CYCLECLOUD_HOME/config/node.json
cd ..

if [ "$do_install" == "false" ]; then
do_install=False
elif [ "$do_install" == "true" ]; then
do_install=True
fi
rm -rf azure-slurm-install
jetpack download --project $slurm_project_name $install_pkg
tar xzf $install_pkg
cd azure-slurm-install
python3 install.py --platform $platform --mode scheduler --bootstrap-config $CYCLECLOUD_HOME/config/node.json --do-install=$do_install
cd ..


rm -rf azure-slurm
jetpack download --project $slurm_project_name $autoscale_pkg
Expand Down