Skip to content

Commit ee3ff79

Browse files
committed
debugging steps
1 parent aa7fab8 commit ee3ff79

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

.github/actions/aufn-test/run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ fi
2020

2121
function check_lab_vm_connections() {
2222
echo "Checking VM connections..."
23+
cat ssh_list.txt
2324
while IFS= read -r line; do
2425
ip=$(echo "$line" | awk '{print $2}')
2526
name=$(echo "$line" | awk '{print $3}')

.github/workflows/deploy-aufn.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -186,17 +186,6 @@ jobs:
186186
sed -i 's/"//g' registry.txt
187187
cat registry.txt
188188
189-
# - name: Sleep to debug (cancel workflow to clean up)
190-
# if: ${{ inputs.deployment_type == 'Test' }}
191-
# run: |
192-
# # ssh rocky@$(cat registry.txt) -i default.pem -o StrictHostKeyChecking=no
193-
# # echo '${BAS_PWD}' | sudo passwd --stdin ${LAB_IMAGE_USER}
194-
# # sudo echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config.d/50-cloud-init.conf
195-
# # sudo systemctl restart sshd
196-
# sleep 7h
197-
# env:
198-
# LAB_IMAGE_USER: ${{ inputs.os_image == 'Ubuntu' && 'ubuntu' || inputs.os_image == 'Rocky9' && 'rocky' }}
199-
# BAS_PWD: ${{ inputs.bas_pwd == '' && secrets.BASTION_TEST_PASSWORD || inputs.bas_pwd }}
200189
201190
- name: Run tests on Lab VMs (Test)
202191
if: ${{ inputs.deployment_type == 'Test' }}
@@ -225,11 +214,16 @@ jobs:
225214
# with:
226215
# name: ${{ inputs.deployment_type }}-terraform-artifacts
227216

217+
- name: Sleep to debug (cancel workflow to clean up)
218+
if: ${{ inputs.deployment_type == 'Test' }}
219+
run: |
220+
sleep 7h
221+
228222
- name: Pause for debugging (cancel workflow to clean up)
229223
if: always() && ${{ inputs.debug_mode == true }} && ${{ inputs.deployment_type == 'Test' }}
230224
run: |
231225
echo "Pausing for 7d for debugging... cancel manually to proceed."
232-
if true; then sleep 7d; done
226+
sleep 7d
233227
234228
- name: Destroy Failed or Test Lab VMs
235229
run: terraform destroy -auto-approve

0 commit comments

Comments
 (0)