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

fix the lb script #1588

Closed
wants to merge 4 commits into from
Closed
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: 2 additions & 2 deletions .github/workflows/manual-deploy-testnet-l2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ jobs:
--admin-username obscurouser --admin-password "${{ secrets.OBSCURO_NODE_VM_PWD }}" \
--public-ip-address-dns-name "obscuronode-${{ matrix.host_id }}-${{vars.RESOURCE_TESTNET_NAME}}-${{ GITHUB.RUN_NUMBER }}" \
--tags deploygroup=ObscuroNode-${{vars.RESOURCE_TESTNET_NAME}}-${{ GITHUB.RUN_NUMBER }} ${{vars.RESOURCE_TAG_NAME}}=true \
--vnet-name ObscuroHost-${{vars.RESOURCE_TESTNET_NAME}}-01VNET --subnet ObscuroHost-${{vars.RESOURCE_TESTNET_NAME}}-01Subnet \
--vnet-name ${{vars.RESOURCE_TESTNET_NAME}}-virtual-network --subnet ${{vars.RESOURCE_TESTNET_NAME}}-sub-network \
--size Standard_DC8_v2 --storage-sku StandardSSD_LRS --image ObscuroConfUbuntu \
--public-ip-sku Standard --authentication-type password

Expand Down Expand Up @@ -281,7 +281,7 @@ jobs:
with:
inlineScript: |
az network nic ip-config address-pool add \
--address-pool Backend-Pool-Obscuro-${{vars.RESOURCE_TESTNET_NAME}} \
--address-pool ${{vars.RESOURCE_TESTNET_NAME}}-backend-pool \
--ip-config-name ipconfig${{vars.RESOURCE_STARTING_NAME}}-1-${{ GITHUB.RUN_NUMBER }} \
--nic-name ${{vars.RESOURCE_STARTING_NAME}}-1-${{ GITHUB.RUN_NUMBER }}VMNic \
--resource-group Testnet \
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/runner-scripts/testnet-clear-loadbalancer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@
#
#

if [[ $1 == "testnet" ]]; then
lb=testnet-loadbalancer
pool=Backend-Pool-Obscuro-testnet
if [[ $1 == "uat-testnet" ]]; then
lb=uat-testnet-loadbalancer
pool=uat-testnet-backend-pool
elif [[ $1 == "dev-testnet" ]]; then
lb=dev-testnet-loadbalancer
pool=dev-testnet-backend-pool
elif [[ $1 == "sepolia-testnet" ]]; then
lb=sepolia-testnet-loadbalancer
pool=sepolia-testnet-backend-pool
else
lb=devtestnet-loadbalancer
pool=Backend-Pool-Obscuro-devtestnet
echo "Invalid argument. Use 'uat-testnet', 'dev-testnet', or 'sepolia-testnet'"
exit 1
fi

nic_id=$(az network lb address-pool show \
Expand Down
Loading