-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs and setup: updating Makefile to work
Signed-off-by: Boekhorst <[email protected]>
- Loading branch information
1 parent
987a5ef
commit 8eb59fc
Showing
8 changed files
with
114 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
unset SSH_AUTH_SOCK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
source .venv/bin/activate && pip install -e . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/env bash | ||
|
||
# Check if a version argument is provided | ||
if [ $# -eq 1 ]; then | ||
RADOSLIB_VERSION="$1" | ||
else | ||
# Default version if no argument is provided | ||
RADOSLIB_VERSION="2.0.0" | ||
fi | ||
|
||
# Get the location of the installed rados library | ||
GENERAL_LIB_LOCATION=$(pip show rados | grep -oP "(?<=Location: ).*") | ||
|
||
# Get the installed version of the rados library | ||
RADOSLIB_INSTALLED_VERSION=$(pip show rados | grep Version | awk '{print $2}') | ||
|
||
# Check if the rados library is installed | ||
if [ -z "$GENERAL_LIB_LOCATION" ]; then | ||
echo -e "\033[0;31mERROR: 'rados' library not found. Please make sure it's installed.\033[0m" | ||
exit 1 | ||
fi | ||
|
||
# Check if the installed version matches the expected version | ||
if [ "$RADOSLIB_INSTALLED_VERSION" != "$RADOSLIB_VERSION" ]; then | ||
echo -e "\033[0;31mERROR: 'rados' library version $RADOSLIB_INSTALLED_VERSION does not match the expected version $RADOSLIB_VERSION.\033[0m" | ||
exit 1 | ||
else | ||
echo -e "\033[0;32m'rados' library version $RADOSLIB_INSTALLED_VERSION is correct.\033[0m" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Helperscript: Gets configs from testbed | ||
# | ||
# NOTE: this is for test purposes and specific for the OISISM testbed | ||
# it requires .ssh/config to be set accordingly, e.g.: | ||
# | ||
# Host testbed-* | ||
# StrictHostKeyChecking no | ||
# IdentityFile <id_rsa of testbed> | ||
# IdentitiesOnly yes | ||
# user dragon | ||
# | ||
# Host testbed-manager | ||
# Hostname <ip of manager of testbed> | ||
# | ||
# Host testbed-node-0 | ||
# Hostname 192.168.16.10 | ||
# | ||
# Host testbed-node-1 | ||
# Hostname 192.168.16.11 | ||
# Host testbed-node-2 | ||
# Hostname 192.168.16.12 | ||
# | ||
|
||
# copy .kube to ./.k8s | ||
scp -r testbed-manager:.kube ./.k8s | ||
|
||
# copy /etc/ceph/ from node1 to ./.k8s | ||
ssh testbed-manager "docker cp cephclient:/etc/ceph /tmp/cephclientconfig" && scp -r testbed-manager:/tmp/cephclientconfig ./.ceph && ssh testbed-manager "rm -rf /tmp/cephclientconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Helperscript: Reset the k3s cluster of the OSISM testbed | ||
# | ||
# NOTE: this is for test purposes and specific for the OISISM testbed | ||
# it requires .ssh/config to be set accordingly, e.g.: | ||
# | ||
# Host testbed-* | ||
# StrictHostKeyChecking no | ||
# IdentityFile <id_rsa of testbed> | ||
# IdentitiesOnly yes | ||
# user dragon | ||
# | ||
# Host testbed-manager | ||
# Hostname <ip of manager of testbed> | ||
# | ||
# Host testbed-node-0 | ||
# Hostname 192.168.16.10 | ||
# | ||
# Host testbed-node-1 | ||
# Hostname 192.168.16.11 | ||
# Host testbed-node-2 | ||
# Hostname 192.168.16.12 | ||
# | ||
|
||
ssh testbed-node-0 "sudo rm -rf /var/lib/rancher/k3s/server/db/" | ||
ssh testbed-node-1 "sudo rm -rf /var/lib/rancher/k3s/server/db/" | ||
ssh testbed-node-2 "sudo rm -rf /var/lib/rancher/k3s/server/db/" | ||
ssh testbed-manager "nohup /opt/configuration/scripts/deploy/005-kubernetes.sh > ~/005-kubernetes.log 2>&1 &" | ||
ssh testbed-manager "tail -f ~/005-kubernetes.log" |