-
Notifications
You must be signed in to change notification settings - Fork 223
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 Agent Disable Fails on Windows Due to Win Process Dependency Order #328
Comments
Additionally, it seems that this task just sets the state of the agent to stopped. As such, it isn't so much "disable" as the opposite of "datadog_enabled" would suggest. The agent would start once again after a reboot. |
I would like to push a branch for my testing and later consideration for PR. it seems this is not possible due to the current permissions model. What kind of workflow would you recommend? While I can push a copy of the source code to our own organization I see there are some contributors to issues within your org, lmk if this is open to your customers. |
Hey @erikhjensen, Thanks for reporting this issue! Indeed, we should either change the order of services (to stop the The workflow to propose changes is to create a fork of this repository (under your own name or the organization of your choice), make & test the changes there and then open a PR against our repository. |
Noted. Will do so.
Erik
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Kylian Serrania ***@***.***>
Sent: Tuesday, March 16, 2021 5:37:42 AM
To: DataDog/ansible-datadog ***@***.***>
Cc: Jensen, Erik ***@***.***>; Mention ***@***.***>
Subject: Re: [DataDog/ansible-datadog] Datadog Agent Disable Fails on Windows Due to Win Process Dependency Order (#328)
Hey @erikhjensen<https://github.com/erikhjensen>,
Thanks for reporting this issue! Indeed, we should either change the order of services (to stop the datadogagent service last), or pass the Force flag to stop the services.
The workflow to propose changes is to create a fork of this repository (under your own name or the organization of your choice), make & test the changes there and then open a PR against our repository.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#328 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AID7KRE5A63NILSNOMDC6FLTD47INANCNFSM4ZGXDGYA>.
________________________________
---------------------------------------------------------
If you wish to no longer receive electronic messages from this sender, please respond and advise accordingly in your return email.
This email and its contents are private and confidential, for the sole use of the addressees. If you are not an intended recipient, copying, forwarding or other distribution of this email or its contents by any means is prohibited. If you believe that you received this email in error please notify the original sender and delete this communication and any copies immediately.
Petro-Canada is a Suncor Energy business.
150 – 6th Avenue S.W., Calgary, Alberta, Canada, T2P 3E3 (Corporate Head Office) / www.suncor.com
------------------------
Si vous ne voulez plus recevoir de messages électroniques de cet expéditeur, veuillez l’en aviser en répondant à ce courriel.
Ce courriel et son contenu sont privés et confidentiels, et sont destinés à l’usage exclusif des destinataires. Si vous n'êtes pas le destinataire prévu, toute reproduction, transfert ou autre forme de diffusion de ce courriel ou de son contenu par quelque moyen que ce soit est interdit. Si vous croyez avoir reçu ce courriel par erreur, veuillez en aviser l’expéditeur original et supprimer cette communication et toutes ses copies immédiatement.
Petro-Canada est une entreprise de Suncor Énergie.
150 – 6th Avenue S.W., Calgary, Alberta, Canada, T2P 3E3 (siège social) / www.suncor.com
|
ansible-datadog/tasks/agent-win.yml
Line 65 in 949bdb7
Conditions:
Server had Trace Agent and DD Agent.
Set datadog_enabled to false.
Issue:
List given to the stop task should be re ordered (in the reverse order for example) to stop trace and process before the DD agent otherwise the following error is received.
Error Message:
failed: [SERVERNAME.DOMAIN.EXT] (item=datadogagent) => {"ansible_loop_var": "item", "can_pause_and_continue": false, "changed": false, "depended_by": ["datadog-process-agent", "datadog-trace-agent"], "dependencies": [], "description": "Send metrics to Datadog", "desktop_interact": false, "display_name": "Datadog Agent", "exists": true, "item": "datadogagent", "msg": "Cannot stop service 'Datadog Agent (datadogagent)' because it has dependent services. It can only be stopped if the Force flag is set.", "name": "datadogagent", "path": ""C:\Program Files\Datadog\Datadog Agent\bin\agent.exe"", "start_mode": "auto", "state": "running", "username": ".\ddagentuser"}
The text was updated successfully, but these errors were encountered: