Datadog Agent Installation Fails on `arm64` (M1) Mac Without Rosetta
jtdressel opened this issue · 1 comments
jtdressel commented
Environment:
- Control and Remote System Version: macOS 14.1.1, Build 23B81 with Command Line Tools already installe
- Datadog collection 5.0.1
Issue Description:
The installation of the Datadog Agent fails on an Apple Silicon Mac without Rosetta installed. The failure appears to be associated with the task "Unpack and copy Datadog Agent files" in the datadog.dd
collection (version 5.0.1), specifically in this section of the Ansible playbook.
Steps to Reproduce:
- Execute an Ansible playbook on an M1 Mac with macOS 14.1.1, which lacks Rosetta but has command line tools installed.
- The playbook employs the
datadog.datadog
role withbecome: yes
. - Observe failure in the task of unpacking and copying Datadog Agent files, likely due to the mentioned code section.
Actual Behavior:
Installation fails with an error indicating the necessity of Rosetta 2.
Error Message:
TASK [datadog.datadog : Unpack and copy Datadog Agent files]
fatal: []: FAILED! => {
"changed": true,
"cmd": "/usr/sbin/installer -pkg \"`find \"/Volumes/datadog_agent\" -name \\*.pkg 2>/dev/null`\" -target /",
...
"stderr": "installer: This package requires Rosetta 2 to be installed. Please install Rosetta 2 and try again. `sudo softwareupdate --install-rosetta` installer: Error - Agent can’t be installed on this computer."
...
}
Pythyu commented
Hey 👋
Thanks for the report and sorry for the late answer !
Sadly, It isn't an issue we can solve on via the ansible-role.
Our current macOS agent requires rosetta to function since we're using the same package for intel and arm macOS.