From 8a2aa4271cfcf99e9759188172e278d4bbc14098 Mon Sep 17 00:00:00 2001 From: "jansen.wenberg" Date: Mon, 16 Nov 2026 18:55:16 +0000 Subject: [PATCH 1/2] Show a Preview note for OP on GovCloud in the install scripts The OP Worker install scripts stopped with exit 1 when DD_SITE is ddog-gov.com. Now they print a note that OP on GovCloud is in Preview, and the install continues. Add the Agent script GovCloud guard to on_error, so a failed GovCloud install does not offer to upload the install log and API key. Environment: Datadog workspace --- install_script_op_worker1.sh | 9 +++++++-- install_script_op_worker2.sh | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/install_script_op_worker1.sh b/install_script_op_worker1.sh index 802d8160..1a75047a 100755 --- a/install_script_op_worker1.sh +++ b/install_script_op_worker1.sh @@ -100,6 +100,12 @@ Troubleshooting and basic usage information for the $nice_flavor are available a exit 1; fi + # Don't offer to send the install log and API key in a failure report on GovCloud + if [ "$site" == "ddog-gov.com" ]; then + fallback_msg + exit 1; + fi + while true; do read -t 60 -p "Do you want to send a failure report to Datadog (including $logfile)? (y/[n]) " -r yn || on_read_error case $yn in @@ -143,9 +149,8 @@ if [ -n "$DD_SITE" ]; then site="$DD_SITE" if [ "$site" == "ddog-gov.com" ]; then echo -e " - \033[33mWarning: Observability Pipelines isn't supported on GovCloud at this time. + \033[33mNote: Observability Pipelines on GovCloud is in Preview. \033[0m" - exit 1; fi fi diff --git a/install_script_op_worker2.sh b/install_script_op_worker2.sh index 07836781..eed65878 100755 --- a/install_script_op_worker2.sh +++ b/install_script_op_worker2.sh @@ -100,6 +100,12 @@ Troubleshooting and basic usage information for the $nice_flavor are available a exit 1; fi + # Don't offer to send the install log and API key in a failure report on GovCloud + if [ "$site" == "ddog-gov.com" ]; then + fallback_msg + exit 1; + fi + while true; do read -t 60 -p "Do you want to send a failure report to Datadog (including $logfile)? (y/[n]) " -r yn || on_read_error case $yn in @@ -143,9 +149,8 @@ if [ -n "$DD_SITE" ]; then site="$DD_SITE" if [ "$site" == "ddog-gov.com" ]; then echo -e " - \033[33mWarning: Observability Pipelines isn't supported on GovCloud at this time. + \033[33mNote: Observability Pipelines on GovCloud is in Preview. \033[0m" - exit 1; fi fi From 65ab3ad417ba8c96c9d3e8ac8638d82bd89d5125 Mon Sep 17 00:00:00 2001 From: "jansen.wenberg" Date: Mon, 16 Nov 2026 19:25:55 +0000 Subject: [PATCH 2/2] Keep the GovCloud block in the OP Worker 1 install script OP Worker 1 cannot connect to GovCloud, so restore the check that stops the Worker 1 install on ddog-gov.com. Only the Worker 2 script shows the Preview note. Environment: Datadog workspace --- install_script_op_worker1.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/install_script_op_worker1.sh b/install_script_op_worker1.sh index 1a75047a..802d8160 100755 --- a/install_script_op_worker1.sh +++ b/install_script_op_worker1.sh @@ -100,12 +100,6 @@ Troubleshooting and basic usage information for the $nice_flavor are available a exit 1; fi - # Don't offer to send the install log and API key in a failure report on GovCloud - if [ "$site" == "ddog-gov.com" ]; then - fallback_msg - exit 1; - fi - while true; do read -t 60 -p "Do you want to send a failure report to Datadog (including $logfile)? (y/[n]) " -r yn || on_read_error case $yn in @@ -149,8 +143,9 @@ if [ -n "$DD_SITE" ]; then site="$DD_SITE" if [ "$site" == "ddog-gov.com" ]; then echo -e " - \033[33mNote: Observability Pipelines on GovCloud is in Preview. + \033[33mWarning: Observability Pipelines isn't supported on GovCloud at this time. \033[0m" + exit 1; fi fi