-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Running service_facts stops Graphites carbon-cache #81239
Comments
Files identified in the description: If these files are incorrect, please update the |
The code that is being run here is ansible/lib/ansible/modules/service_facts.py Lines 243 to 318 in c5e54be
systemctl list-units --no-pager --type service --all
systemctl list-unit-files --no-pager --type service --all I do notice that it might run |
I tested the commands you provided to me but none of these stops the service. Then I created a playbook with only the service_facts task to run (first I had some other steps afterwards) and it stopped the carbon-cache again. So its surely the service_facts task that "kills" the application. |
Did you disable fact gathering altogether and try just |
It still happens:
My playbook:
|
@chgarling still, we cannot reproduce this and looking at what is executed ... cannot fathom how this is caused by that module, unless your systemd units are setup to execute a shutdown when querying status?!?! I'm going to guess that this is a confluence of things happening (resource starvation?) that the module execution aggravates. I would suggest looking at dmesg, carbon service logs and other system logs for a cause of the service shutdown. |
Summary
I experienced the problem, that a run of service_facts stops carbon-cache reproducable. I was wondering why the service was stopped after a rollout and so I looked at the logs, where I found this:
I retried the service_facts run twice and in both cases carbon-cache was stopped directly after the invokement. I have no clue if the problem occurs, because carbon-cache is also a python3 process.
Issue Type
Bug Report
Component Name
service_facts
Ansible Version
Configuration
OS / Environment
Ansible is running as part of AWX installed with awx-operator 2.2.1.
The target host is a Ubuntu 20.04.5 LTS host.
Steps to Reproduce
Expected Results
No services should be stopped accidently when invoking service_facts.
Actual Results
Process /usr/bin/python3 /usr/bin/carbon-cache will be stopped when invoking service_facts.
Code of Conduct
The text was updated successfully, but these errors were encountered: