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

datadog_apm_instrumentation_enabled error in newer versions of ansible-datadog #625

Open
hylaride opened this issue Nov 27, 2024 · 0 comments

Comments

@hylaride
Copy link

After upgrading from 4.22.0 to 4.28.0 I'm getting an error

This config seems to be the culprit:

  datadog_apm_instrumentation_enabled: docker
  datadog_apm_instrumentation_docker_config:
    config_sources: "LOCAL:/etc/datadog-agent/inject/tracer_config.yaml;BASIC"
    library_inject: true
    log_level: warn
    output_paths:
      - stderr

I get the following error:

TASK [Datadog.datadog : Set the datadog agent version] *************************
skipping: [ubuntu-2204]

TASK [Datadog.datadog : Bootstrap the installer] *******************************
fatal: [ubuntu-2204]: FAILED! => {"changed": true, "cmd": ["/usr/bin/datadog-bootstrap", "bootstrap"], "delta": "0:00:00.549842", "end": "2024-11-26 23:48:56.367345", "msg": "non-zero return code", "rc": 255, "start": "2024-11-26 23:48:55.817503", "stderr": "Error: error running setup: run failed: Error: failed to install package oci://install.datadoghq.com/apm-inject-package:latest: run failed: Error: could not setup package: exit status 1 \nexit status 255 \nexit status 255", "stderr_lines": ["Error: error running setup: run failed: Error: failed to install package oci://install.datadoghq.com/apm-inject-package:latest: run failed: Error: could not setup package: exit status 1 ", "exit status 255 ", "exit status 255"], "stdout": "", "stdout_lines": []}
...ignoring

TASK [Datadog.datadog : Check if installer owns datadog-agent package] *********
skipping: [ubuntu-2204]

TASK [Datadog.datadog : Check if installer owns apm injector package] **********
skipping: [ubuntu-2204]

TASK [Datadog.datadog : Register if the installer owns apm injector package] ***
skipping: [ubuntu-2204]

TASK [Datadog.datadog : Disable agent install if owned by installer] ***********
skipping: [ubuntu-2204]

TASK [Datadog.datadog : Query APM packages owned by installer] *****************
skipping: [ubuntu-2204] => (item=java)
skipping: [ubuntu-2204] => (item=js)
skipping: [ubuntu-2204] => (item=dotnet)
skipping: [ubuntu-2204] => (item=python)
skipping: [ubuntu-2204] => (item=ruby)
skipping: [ubuntu-2204]

TASK [Datadog.datadog : Save APM packages before filtering] ********************
ok: [ubuntu-2204]

TASK [Datadog.datadog : Filter APM packages owned by the installer] ************
fatal: [ubuntu-2204]: FAILED! => {"msg": "The conditional check 'item.rc == 0' failed. The error was: error while evaluating conditional (item.rc == 0): 'dict object' has no attribute 'rc'\n\nThe error appears to be in '/home/circleci/.ansible/roles/Datadog.datadog/tasks/installer-setup.yml': line 94, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Filter APM packages owned by the installer\n  ^ here\n"}

PLAY RECAP *********************************************************************
ubuntu-2204                : ok=123  changed=2    unreachable=0    failed=1    skipped=77   rescued=0    ignored=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant