-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Supervisord is considered as "systemd" in grains #37187
Comments
@darkalia looks like i'm able to replicate this behavior. I did have to edit the docker file a bit to install 2016.3.3:
Looks like we need to detect for supervisord |
Thanks. May I propose a patch ? |
…'s not *bin/init and set supervisord
PR proposed on 2015.5 branch (the oldest I found relevant) : #37214 |
…'s not *bin/init and set supervisord
New PR for 2016.3 as requested. |
Issue #37187 Do not parse first /proc/1/cmdline binary if it's not *b…
* upstream/develop: Update release notes and version added Add ability to specify disk backing mode for VMware cloud profile Update bootstrap release to 2016.10.25 fix run_cloud timeout change timeout for cloud tests modules.win_system.py: Fix flag disabling AD Computer objects Update configuration examples for Joyent Issue saltstack#37187 Do not parse first /proc/1/cmdline binary if it's not *bin/init and set supervisord use salt utils for file handling Do not prematurily raise an exception, let the main loop take care of it instead Do not restart the whole thing if roster is not around Fix PEP8 changed the way filter is taken for get-config and changed state file to reflect change of call_rpc to rpc Changed the name of call_rpc to rpc and changed the way rpc call is made Allow junos versions older than 14.2 to run junos.call_rpc. Fix version_info in junos grains
Thank you for submitting this fix @darkalia. I'll close this. |
Description of Issue/Question
Using supervisord as pid 1 in a docker container fill grains['init'] with "systemd" value
root@b9e49580d089:/# salt-call --local -l quiet grains.item init local: ---------- init: systemd
Setup
Use a Dockerfile as this
Here is the supervisord.conf files
/etc/supervisor/supervisord.conf
/etc/supervisor/conf.d/salt-minion.conf
Then start the docker.
Steps to Reproduce Issue
By extracting the relevant code in grains.core.py as following I can see that systemd comes out
You can see that the condition "if item in buf:" is triggered with the result being systemd
/proc/1/cmdline looks like this :
Versions Report
The text was updated successfully, but these errors were encountered: