Skip to content

Remove ddot install if version >=7.78 (installer side)#415

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 12 commits intomainfrom
stanp/1-Correct_DDOT_install_for_7.78
Apr 14, 2026
Merged

Remove ddot install if version >=7.78 (installer side)#415
gh-worker-dd-mergequeue-cf854d[bot] merged 12 commits intomainfrom
stanp/1-Correct_DDOT_install_for_7.78

Conversation

@Stanislas167
Copy link
Copy Markdown
Contributor

@Stanislas167 Stanislas167 commented Mar 31, 2026

For agent version >= 7.78, DDOT is installed by the installer from the DD_OTELCOLLECTOR_ENABLED flag. There is no need to install it separately.
It was done before by unsetting the DD_OTELCOLLECTOR_ENABLED variable but this was causing issues.
This PR keep DD_OTELCOLLECTOR_ENABLED set and add a ddot_installed_by_agent variable to check if we need to install ddot manually in the script or not. ddot_installed_by_agent is false for 7.69 <= version < 7.78, and true above. DDOT is then gated by [ -n "$DD_OTELCOLLECTOR_ENABLED" ] && [ "$ddot_installed_by_agent" = false ]

@Stanislas167 Stanislas167 self-assigned this Mar 31, 2026
@Stanislas167 Stanislas167 marked this pull request as ready for review March 31, 2026 13:05
@Stanislas167 Stanislas167 requested review from a team as code owners March 31, 2026 13:05
@Stanislas167 Stanislas167 requested review from swang392 and removed request for a team March 31, 2026 13:05
DD_OTELCOLLECTOR_ENABLED="${DD_OTELCOLLECTOR_ENABLED}" DD_API_KEY="${apikey}" DD_SITE="${site}" DD_INSTALLER_REGISTRY_URL="${DD_INSTALLER_REGISTRY_URL}" ZYPP_RPM_DEBUG="${ZYPP_RPM_DEBUG:-0}" SYSTEMD_OFFLINE=${SYSTEMD_OFFLINE:-0} zypper --non-interactive --no-refresh install "${packages[@]}" 2> >($sudo_cmd tee /tmp/ddog_install_error_msg >&2) ||:
else
$sudo_cmd ZYPP_RPM_DEBUG="${ZYPP_RPM_DEBUG:-0}" SYSTEMD_OFFLINE="${SYSTEMD_OFFLINE:-0}" zypper --non-interactive --no-refresh install "${packages[@]}" 2> >($sudo_cmd tee /tmp/ddog_install_error_msg >&2) ||:
$sudo_cmd DD_OTELCOLLECTOR_ENABLED="${DD_OTELCOLLECTOR_ENABLED}" DD_API_KEY="${apikey}" DD_SITE="${site}" DD_INSTALLER_REGISTRY_URL="${DD_INSTALLER_REGISTRY_URL}" ZYPP_RPM_DEBUG="${ZYPP_RPM_DEBUG:-0}" SYSTEMD_OFFLINE="${SYSTEMD_OFFLINE:-0}" zypper --non-interactive --no-refresh install "${packages[@]}" 2> >($sudo_cmd tee /tmp/ddog_install_error_msg >&2) ||:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The install here passes env vars directly, but the yum and apt install paths use a bash -c wrapper for the env vars. Should that be aligned here too for consistency?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't want to change that, this has probably been done on purpose...

Co-authored-by: Sarah Wang <sarah.wang@datadoghq.com>
Copy link
Copy Markdown
Contributor

@liustanley liustanley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Validated this install script works with rc.7

@Stanislas167
Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351
Copy link
Copy Markdown

gh-worker-devflow-routing-ef8351 bot commented Apr 14, 2026

View all feedbacks in Devflow UI.

2026-04-14 08:25:38 UTC ℹ️ Start processing command /merge


2026-04-14 08:25:43 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in main is approximately 29m (p90).


2026-04-14 08:59:01 UTC 🚨 MergeQueue: This merge request is in error

mergequeue build completed successfully, but the github api returned an error while merging the pr.
It's probably because:

  • target branch of PR is restricted to only allow up-to-date branches, but the pr is now outdated
Details

Error: PUT https://api.github.com/repos/DataDog/agent-linux-install-script/pulls/415/merge: 405 9 of 9 required status checks are expected. [] (Request ID: D288:24AA8E:9E12B:27A41C:69DE01CC)

FullStacktrace:
activity error (type: github.GithubService_MergePullRequest, scheduledEventID: 50, startedEventID: 51, identity: 1@github-worker-698b7cf966-rlmlj@): PUT https://api.github.com/repos/DataDog/agent-linux-install-script/pulls/415/merge: 405 9 of 9 required status checks are expected. [] (Request ID: D288:24AA8E:9E12B:27A41C:69DE01CC) (type: GitFailure, retryable: false): PUT https://api.github.com/repos/DataDog/agent-linux-install-script/pulls/415/merge: 405 9 of 9 required status checks are expected. [] (type: ErrorResponse, retryable: true)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants