Skip to content

Commit

Permalink
CASMTRIAGE-7217 - DNS check failing in 5.setup_nexus.yaml stage (#5294)
Browse files Browse the repository at this point in the history
* CASMTRIAGE-7217 - DNS check failing in 5.setup_nexus.yaml stage

* Bump copyright

Signed-off-by: Russell Bunch <doomslayer@hpe.com>

---------

Signed-off-by: Russell Bunch <doomslayer@hpe.com>
Co-authored-by: Russell Bunch <doomslayer@hpe.com>
  • Loading branch information
spillerc-hpe and rustydb authored Aug 9, 2024
1 parent f0de894 commit 7f70d50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions install/scripts/csm_services/steps/5.setup_nexus.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# MIT License
#
# (C) Copyright 2021-2023 Hewlett Packard Enterprise Development LP
# (C) Copyright 2021-2024 Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -53,9 +53,10 @@ spec:
counter_max=10
sleep_time=30
url=packages.local
dns_server=10.92.100.225
while [[ $nexus_resources_ready -eq 0 ]] && [[ "$counter" -le "$counter_max" ]]; do
nexus_check_configmap=$(kubectl -n services get cm cray-dns-unbound -o json 2>&1 | jq '.binaryData."records.json.gz"' -r 2>&1 | base64 -d 2>&1| gunzip - 2>&1|jq 2>&1|grep $url|wc -l)
nexus_check_dns=$(dig $url +short |wc -l)
nexus_check_dns=$(dig @$dns_server $url +short |wc -l)
nexus_check_pod=$(kubectl get pods -n nexus| grep nexus | grep -v Completed |awk {' print $3 '})
if [[ "$nexus_check_dns" -eq "1" ]] && [[ "$nexus_check_pod" == "Running" ]]; then
Expand Down

0 comments on commit 7f70d50

Please sign in to comment.