Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update number of default public IP addresses #12

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion osp.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
portal.ParameterType.BOOLEAN,False,advanced=True,
longDescription="If you do not mind waiting awhile for your experiment and OpenStack instance to be available, you can select this option to start from one of our standard Ubuntu disk images; the profile setup scripts will then install all necessary packages. NOTE: this option may only be used at x86 cluster (i.e., not the \"Utah Cluster\") for now! NOTE: this option requires that you select both the Apt update and install package options above!")
pc.defineParameter("publicIPCount", "Number of public IP addresses",
portal.ParameterType.INTEGER, 4,advanced=True,
portal.ParameterType.INTEGER, 3,advanced=True,
longDescription="Make sure to include both the number of floating IP addresses you plan to need for instances; and also for OpenVSwitch interface IP addresses. Each OpenStack network this profile creates for you is bridged to the external, public network, so you also need a public IP address for each of those switch interfaces. So, if you ask for one GRE tunnel network, and one flat data network (the default configuration), you would need two public IPs for switch interfaces, and then you request two additional public IPs that can be bound to instances as floating IPs. If you ask for more networks, make sure to increase this number appropriately.")
pc.defineParameter("flatDataLanCount","Number of Flat Data Networks",
portal.ParameterType.INTEGER,1,advanced=True,
Expand Down
27 changes: 18 additions & 9 deletions setup-pythia-compute.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ do
cd /local
done

# Remove reconstruction repo & clone new pythia repo
echo "y" | rm -r /local/reconstruction/
sudo echo "y" | rm -i /users/geniuser/reconstruction
git clone https://github.com/docc-lab/pythia.git

mkdir -p /opt/stack/manifest
chmod -R g+rwX /opt/
chmod -R o+rwX /opt/
Expand All @@ -69,18 +74,20 @@ service_start redis
maybe_install_packages python3-pip

# Bring back rustup for compilation error
su toslali -c "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y"
su geniuser -c "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y"
source $HOME/.cargo/env
rustup update stable
echo "**** Mert updating rust for match compile error ***"


chown toslali -R /local/reconstruction
su toslali -c "cargo update --manifest-path /local/reconstruction/Cargo.toml -p lexical-core"
su toslali -c "cargo update --manifest-path /local/reconstruction/pythia_server/Cargo.toml -p lexical-core"
su toslali -c "cargo install --locked --path /local/reconstruction"
su toslali -c "cargo install --locked --path /local/reconstruction/pythia_server"
sudo ln -s /users/toslali/.cargo/bin/pythia_server /usr/local/bin/
chown geniuser -R /local/pythia
su geniuser -c "cargo update --manifest-path /local/pythia/Cargo.toml -p lexical-core"
su geniuser -c "cargo update --manifest-path /local/pythia/pythia_server/Cargo.toml -p lexical-core"
su geniuser -c "cargo install --locked --path /local/pythia"
su geniuser -c "cargo install --locked --path /local/pythia/pythia_server"
sudo ln -s /users/geniuser/.cargo/bin/pythia_server /usr/local/bin/
sudo ln -s /local/pythia /users/geniuser/
sudo ln -s /local/dotfiles /users/geniuser/

echo -e 'nova\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers

Expand Down Expand Up @@ -133,7 +140,9 @@ sudo systemctl start pythia.service
touch $OURDIR/setup-pythia-compute-done
logtend "pythia-compute"

chown toslali -R /local
su toslali -c 'cd /local/dotfiles; ./setup_cloudlab.sh'
chown geniuser -R /local
su geniuser -c 'cd /local/dotfiles; ./setup_cloudlab.sh'

sudo chsh geniuser --shell /bin/bash

exit 0
27 changes: 18 additions & 9 deletions setup-pythia.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ do
cd /local
done

# Remove reconstruction repo & clone new pythia repo
echo "y" | rm -r /local/reconstruction/
sudo echo "y" | rm -i /users/geniuser/reconstruction
git clone https://github.com/docc-lab/pythia.git

PHOSTS=""
mkdir -p $OURDIR/pssh.setup-pythia.stdout $OURDIR/pssh.setup-pythia.stderr

Expand All @@ -80,19 +85,21 @@ maybe_install_packages python3-pip

# Bring back rustup for compilation error

su toslali -c "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y"
su geniuser -c "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y"

source $HOME/.cargo/env
rustup update stable
echo "**** Mert updating rust for match compile error ***"


chown toslali -R /local/reconstruction
su toslali -c "cargo update --manifest-path /local/reconstruction/Cargo.toml -p lexical-core"
su toslali -c "cargo update --manifest-path /local/reconstruction/pythia_server/Cargo.toml -p lexical-core"
su toslali -c "cargo install --locked --path /local/reconstruction"
su toslali -c "cargo install --locked --path /local/reconstruction/pythia_server"
sudo ln -s /users/toslali/.cargo/bin/pythia_server /usr/local/bin/
chown geniuser -R /local/pythia
su geniuser -c "cargo update --manifest-path /local/pythia/Cargo.toml -p lexical-core"
su geniuser -c "cargo update --manifest-path /local/pythia/pythia_server/Cargo.toml -p lexical-core"
su geniuser -c "cargo install --locked --path /local/pythia"
su geniuser -c "cargo install --locked --path /local/pythia/pythia_server"
sudo ln -s /users/geniuser/.cargo/bin/pythia_server /usr/local/bin/
sudo ln -s /local/pythia /users/geniuser/
sudo ln -s /local/dotfiles /users/geniuser/

mkdir -p /opt/stack/manifest
chmod -R g+rwX /opt/
Expand Down Expand Up @@ -207,7 +214,9 @@ sudo systemctl start pythia.service
touch $OURDIR/setup-pythia-done
logtend "pythia"

chown toslali -R /local
su toslali -c 'cd /local/dotfiles; ./setup_cloudlab.sh'
chown geniuser -R /local
su geniuser -c 'cd /local/dotfiles; ./setup_cloudlab.sh'

sudo chsh geniuser --shell /bin/bash

exit 0