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

Dba 767 debug #409

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
245 changes: 241 additions & 4 deletions .github/workflows/oracle-db-duplicate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -595,11 +595,11 @@ jobs:
run: |
export ANSIBLE_CONFIG=$ansible_config
ln -s $PWD/roles/ansible/roles $PWD/operations/playbooks/oracle_duplicate/roles
$ansible_playbook_directory/rman-post-duplicate.yml -e ansible_aws_ssm_bucket_name=${{ vars.ANSIBLE_AWS_SSM_BUCKET_NAME }} -i $inventory \
-e duplicate_target=${{ env.DuplicateTarget }}
# $ansible_playbook_directory/rman-post-duplicate.yml -e ansible_aws_ssm_bucket_name=${{ vars.ANSIBLE_AWS_SSM_BUCKET_NAME }} -i $inventory \
# -e duplicate_target=${{ env.DuplicateTarget }}

oracle-build-ha-debug:
name: oracle-build-ha-debug
oracle-build-ha-debug-1:
name: oracle-build-ha-debug-1
environment: ${{ needs.oracle-rman-duplicate-check.outputs.TargetEnvironment }}-preapproved
runs-on: ubuntu-latest
container:
Expand All @@ -619,9 +619,246 @@ jobs:
- name: Debug why HA Build is being skipped
id: response
run: |
echo "DEBUG 1"
echo "needs.oracle-rman-post-duplicate.result: >>${{ needs.oracle-rman-post-duplicate.result }}<<"
echo "needs.oracle-rman-duplicate-check.outputs.RestoreDatetime: >>${{ needs.oracle-rman-duplicate-check.outputs.RestoreDatetime }}<<"

oracle-build-ha-debug-2:
if: ${{ (needs.oracle-rman-duplicate-check.outputs.RestoreDatetime != '0') }}
name: oracle-build-ha-debug-2
environment: ${{ needs.oracle-rman-duplicate-check.outputs.TargetEnvironment }}-preapproved
runs-on: ubuntu-latest
container:
image: ghcr.io/ministryofjustice/hmpps-delius-operational-automation:0.78.0
needs: [oracle-rman-duplicate-check,oracle-rman-post-duplicate]
timeout-minutes: 1440
continue-on-error: false
env:
DuplicateTarget: ${{ needs.oracle-rman-duplicate-check.outputs.DuplicateTarget }}
TargetHost: ${{ needs.oracle-rman-duplicate-check.outputs.TargetHost }}
SourceConfigVersion: ${{ needs.oracle-rman-duplicate-check.outputs.SourceConfigVersion }}
SourceCodeVersion: ${{ needs.oracle-rman-duplicate-check.outputs.SourceCodeVersion }}
outputs:
JobId: ${{ github.job }}
steps:

- name: Debug why HA Build is being skipped
id: response
run: |
echo "DEBUG 2"
echo "needs.oracle-rman-post-duplicate.result: >>${{ needs.oracle-rman-post-duplicate.result }}<<"
echo "needs.oracle-rman-duplicate-check.outputs.RestoreDatetime: >>${{ needs.oracle-rman-duplicate-check.outputs.RestoreDatetime }}<<"

oracle-build-ha-debug-3:
if: ${{ needs.oracle-rman-post-duplicate.result == 'success' }}
name: oracle-build-ha-debug-3
environment: ${{ needs.oracle-rman-duplicate-check.outputs.TargetEnvironment }}-preapproved
runs-on: ubuntu-latest
container:
image: ghcr.io/ministryofjustice/hmpps-delius-operational-automation:0.78.0
needs: [oracle-rman-duplicate-check,oracle-rman-post-duplicate]
timeout-minutes: 1440
continue-on-error: false
env:
DuplicateTarget: ${{ needs.oracle-rman-duplicate-check.outputs.DuplicateTarget }}
TargetHost: ${{ needs.oracle-rman-duplicate-check.outputs.TargetHost }}
SourceConfigVersion: ${{ needs.oracle-rman-duplicate-check.outputs.SourceConfigVersion }}
SourceCodeVersion: ${{ needs.oracle-rman-duplicate-check.outputs.SourceCodeVersion }}
outputs:
JobId: ${{ github.job }}
steps:

- name: Debug why HA Build is being skipped
id: response
run: |
echo "DEBUG 3"
echo "needs.oracle-rman-post-duplicate.result: >>${{ needs.oracle-rman-post-duplicate.result }}<<"
echo "needs.oracle-rman-duplicate-check.outputs.RestoreDatetime: >>${{ needs.oracle-rman-duplicate-check.outputs.RestoreDatetime }}<<"

oracle-build-ha-debug-4:
if: ${{ needs.oracle-rman-post-duplicate.result == 'skipped' }}
name: oracle-build-ha-debug-4
environment: ${{ needs.oracle-rman-duplicate-check.outputs.TargetEnvironment }}-preapproved
runs-on: ubuntu-latest
container:
image: ghcr.io/ministryofjustice/hmpps-delius-operational-automation:0.78.0
needs: [oracle-rman-duplicate-check,oracle-rman-post-duplicate]
timeout-minutes: 1440
continue-on-error: false
env:
DuplicateTarget: ${{ needs.oracle-rman-duplicate-check.outputs.DuplicateTarget }}
TargetHost: ${{ needs.oracle-rman-duplicate-check.outputs.TargetHost }}
SourceConfigVersion: ${{ needs.oracle-rman-duplicate-check.outputs.SourceConfigVersion }}
SourceCodeVersion: ${{ needs.oracle-rman-duplicate-check.outputs.SourceCodeVersion }}
outputs:
JobId: ${{ github.job }}
steps:

- name: Debug why HA Build is being skipped
id: response
run: |
echo "DEBUG 4"
echo "needs.oracle-rman-post-duplicate.result: >>${{ needs.oracle-rman-post-duplicate.result }}<<"
echo "needs.oracle-rman-duplicate-check.outputs.RestoreDatetime: >>${{ needs.oracle-rman-duplicate-check.outputs.RestoreDatetime }}<<"

oracle-build-ha-debug-5:
if: ${{ ( needs.oracle-rman-post-duplicate.result == 'success' || needs.oracle-rman-post-duplicate.result == 'skipped' ) }}
name: oracle-build-ha-debug-5
environment: ${{ needs.oracle-rman-duplicate-check.outputs.TargetEnvironment }}-preapproved
runs-on: ubuntu-latest
container:
image: ghcr.io/ministryofjustice/hmpps-delius-operational-automation:0.78.0
needs: [oracle-rman-duplicate-check,oracle-rman-post-duplicate]
timeout-minutes: 1440
continue-on-error: false
env:
DuplicateTarget: ${{ needs.oracle-rman-duplicate-check.outputs.DuplicateTarget }}
TargetHost: ${{ needs.oracle-rman-duplicate-check.outputs.TargetHost }}
SourceConfigVersion: ${{ needs.oracle-rman-duplicate-check.outputs.SourceConfigVersion }}
SourceCodeVersion: ${{ needs.oracle-rman-duplicate-check.outputs.SourceCodeVersion }}
outputs:
JobId: ${{ github.job }}
steps:

- name: Debug why HA Build is being skipped
id: response
run: |
echo "DEBUG 5"
echo "needs.oracle-rman-post-duplicate.result: >>${{ needs.oracle-rman-post-duplicate.result }}<<"
echo "needs.oracle-rman-duplicate-check.outputs.RestoreDatetime: >>${{ needs.oracle-rman-duplicate-check.outputs.RestoreDatetime }}<<"

oracle-build-ha-debug-6:
if: ${{ (needs.oracle-rman-duplicate-check.outputs.RestoreDatetime != '0') && ( needs.oracle-rman-post-duplicate.result == 'success' || needs.oracle-rman-post-duplicate.result == 'skipped' ) }}
name: oracle-build-ha-debug-6
environment: ${{ needs.oracle-rman-duplicate-check.outputs.TargetEnvironment }}-preapproved
runs-on: ubuntu-latest
container:
image: ghcr.io/ministryofjustice/hmpps-delius-operational-automation:0.78.0
needs: [oracle-rman-duplicate-check,oracle-rman-post-duplicate]
timeout-minutes: 1440
continue-on-error: false
env:
DuplicateTarget: ${{ needs.oracle-rman-duplicate-check.outputs.DuplicateTarget }}
TargetHost: ${{ needs.oracle-rman-duplicate-check.outputs.TargetHost }}
SourceConfigVersion: ${{ needs.oracle-rman-duplicate-check.outputs.SourceConfigVersion }}
SourceCodeVersion: ${{ needs.oracle-rman-duplicate-check.outputs.SourceCodeVersion }}
outputs:
JobId: ${{ github.job }}
steps:

- name: Debug why HA Build is being skipped
id: response
run: |
echo "DEBUG 6"
echo "needs.oracle-rman-post-duplicate.result: >>${{ needs.oracle-rman-post-duplicate.result }}<<"
echo "needs.oracle-rman-duplicate-check.outputs.RestoreDatetime: >>${{ needs.oracle-rman-duplicate-check.outputs.RestoreDatetime }}<<"

oracle-build-ha-debug-7:
if: ${{ always() && (needs.oracle-rman-duplicate-check.outputs.RestoreDatetime != '0') && ( needs.oracle-rman-post-duplicate.result == 'success' || needs.oracle-rman-post-duplicate.result == 'skipped' ) }}
name: oracle-build-ha-debug-7
environment: ${{ needs.oracle-rman-duplicate-check.outputs.TargetEnvironment }}-preapproved
runs-on: ubuntu-latest
container:
image: ghcr.io/ministryofjustice/hmpps-delius-operational-automation:0.78.0
needs: [oracle-rman-duplicate-check,oracle-rman-post-duplicate]
timeout-minutes: 1440
continue-on-error: false
env:
DuplicateTarget: ${{ needs.oracle-rman-duplicate-check.outputs.DuplicateTarget }}
TargetHost: ${{ needs.oracle-rman-duplicate-check.outputs.TargetHost }}
SourceConfigVersion: ${{ needs.oracle-rman-duplicate-check.outputs.SourceConfigVersion }}
SourceCodeVersion: ${{ needs.oracle-rman-duplicate-check.outputs.SourceCodeVersion }}
outputs:
JobId: ${{ github.job }}
steps:

- name: Debug why HA Build is being skipped
id: response
run: |
echo "DEBUG 7"
echo "needs.oracle-rman-post-duplicate.result: >>${{ needs.oracle-rman-post-duplicate.result }}<<"
echo "needs.oracle-rman-duplicate-check.outputs.RestoreDatetime: >>${{ needs.oracle-rman-duplicate-check.outputs.RestoreDatetime }}<<"


oracle-build-ha-debug-8:
if: ${{ !(needs.oracle-rman-duplicate-check.outputs.RestoreDatetime == '0') }}
name: oracle-build-ha-debug-8
environment: ${{ needs.oracle-rman-duplicate-check.outputs.TargetEnvironment }}-preapproved
runs-on: ubuntu-latest
container:
image: ghcr.io/ministryofjustice/hmpps-delius-operational-automation:0.78.0
needs: [oracle-rman-duplicate-check,oracle-rman-post-duplicate]
timeout-minutes: 1440
continue-on-error: false
env:
DuplicateTarget: ${{ needs.oracle-rman-duplicate-check.outputs.DuplicateTarget }}
TargetHost: ${{ needs.oracle-rman-duplicate-check.outputs.TargetHost }}
SourceConfigVersion: ${{ needs.oracle-rman-duplicate-check.outputs.SourceConfigVersion }}
SourceCodeVersion: ${{ needs.oracle-rman-duplicate-check.outputs.SourceCodeVersion }}
outputs:
JobId: ${{ github.job }}
steps:

- name: Debug why HA Build is being skipped
id: response
run: |
echo "DEBUG 8"
echo "needs.oracle-rman-post-duplicate.result: >>${{ needs.oracle-rman-post-duplicate.result }}<<"
echo "needs.oracle-rman-duplicate-check.outputs.RestoreDatetime: >>${{ needs.oracle-rman-duplicate-check.outputs.RestoreDatetime }}<<"

oracle-build-ha-debug-9:
if: ${{ needs.oracle-rman-duplicate-check.outputs.RestoreDatetime == '' }}
name: oracle-build-ha-debug-9
environment: ${{ needs.oracle-rman-duplicate-check.outputs.TargetEnvironment }}-preapproved
runs-on: ubuntu-latest
container:
image: ghcr.io/ministryofjustice/hmpps-delius-operational-automation:0.78.0
needs: [oracle-rman-duplicate-check,oracle-rman-post-duplicate]
timeout-minutes: 1440
continue-on-error: false
env:
DuplicateTarget: ${{ needs.oracle-rman-duplicate-check.outputs.DuplicateTarget }}
TargetHost: ${{ needs.oracle-rman-duplicate-check.outputs.TargetHost }}
SourceConfigVersion: ${{ needs.oracle-rman-duplicate-check.outputs.SourceConfigVersion }}
SourceCodeVersion: ${{ needs.oracle-rman-duplicate-check.outputs.SourceCodeVersion }}
outputs:
JobId: ${{ github.job }}
steps:

- name: Debug why HA Build is being skipped
id: response
run: |
echo "DEBUG 9"
echo "needs.oracle-rman-post-duplicate.result: >>${{ needs.oracle-rman-post-duplicate.result }}<<"
echo "needs.oracle-rman-duplicate-check.outputs.RestoreDatetime: >>${{ needs.oracle-rman-duplicate-check.outputs.RestoreDatetime }}<<"

oracle-build-ha-debug-10:
if: ${{ needs.oracle-rman-duplicate-check.outputs.RestoreDatetime == null }}
name: oracle-build-ha-debug-10
environment: ${{ needs.oracle-rman-duplicate-check.outputs.TargetEnvironment }}-preapproved
runs-on: ubuntu-latest
container:
image: ghcr.io/ministryofjustice/hmpps-delius-operational-automation:0.78.0
needs: [oracle-rman-duplicate-check,oracle-rman-post-duplicate]
timeout-minutes: 1440
continue-on-error: false
env:
DuplicateTarget: ${{ needs.oracle-rman-duplicate-check.outputs.DuplicateTarget }}
TargetHost: ${{ needs.oracle-rman-duplicate-check.outputs.TargetHost }}
SourceConfigVersion: ${{ needs.oracle-rman-duplicate-check.outputs.SourceConfigVersion }}
SourceCodeVersion: ${{ needs.oracle-rman-duplicate-check.outputs.SourceCodeVersion }}
outputs:
JobId: ${{ github.job }}
steps:

- name: Debug why HA Build is being skipped
id: response
run: |
echo "DEBUG 10"
echo "needs.oracle-rman-post-duplicate.result: >>${{ needs.oracle-rman-post-duplicate.result }}<<"
echo "needs.oracle-rman-duplicate-check.outputs.RestoreDatetime: >>${{ needs.oracle-rman-duplicate-check.outputs.RestoreDatetime }}<<"


oracle-build-ha:
if: ${{ (needs.oracle-rman-duplicate-check.outputs.RestoreDatetime != '0') && ( needs.oracle-rman-post-duplicate.result == 'success' || needs.oracle-rman-post-duplicate.result == 'skipped' ) }}
name: oracle-build-ha
Expand Down