-
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
set __virtualname__ to 'service' #36330
Conversation
Thanks for fixing this @silenius |
* upstream/develop: (30 commits) correct key check Create a set from the minion list Skip extra traversals of minion cache for auth Whitespace fix Add -V option to work with --versions-report Update usage docs for Thorium (saltstack#36368) Fix calc docstrings (saltstack#36366) Fix a minor typo in docs (saltstack#36365) salt/modules/apk.py: Add version() function support (saltstack#36362) postgres_extension: report changes when an extension was installed (saltstack#36335) Schema test requires jsonschema 2.5.0 or above Check for Ign/Hit membership instead of == in aptpkg.refresh_db Quote postgres privilege target names (saltstack#36249) Fixed arguments to VPC peering function (saltstack#36268) set __virtualname__ to 'service' (saltstack#36330) Use infoblox_* values if present in arguments (saltstack#36339) Return None when find_file identifies the path as a directory (saltstack#36342) remove help message from glance module (saltstack#36345) Clean up libcloud stack trace (saltstack#36314) Add resize2fs unit test from blockdev_test to disk_test (saltstack#36346) ...
Hi there @silenius and @rallytime ! Can you take a look at #37498 (comment)? This PR makes salt assume that because daemontools is installed, it means that it is the system-wide init process. However, I think daemontools is more than a system-wide init process. It can be used under upstart/systemd to manage some directories of services, or to use some of its tools independently, in my case its |
Hello, I think you are right, it should only be active when
but I don't find any mention of def __virtual__():
'''
Only make these states available if a service provider has been detected or
assigned for this minion
'''
if 'service.start' in __salt__:
return __virtualname__
else:
return (False, 'No service execution module loaded: '
'check support for service management on {0} '
''.format(__grains__.get('osfinger', __grains__['os']))
) |
Can you check if #37748 fixes the issue? |
Yes, it does fix the issue. I believe that is a better heuristic. 👍 |
What does this PR do?
It sets
__virtualname__
to 'service'.In the
states/service.py
file the check is made through the_available
function:So currently it doesn't work with the daemontools module as the
__virtualname__
is notservice
Also: not sure if
provider: daemontools
is still supported as I haven't found any reference in the service state file ... and it is not mentionned in the documentationWhat issues does this PR fix or reference?
None
Tests written?
No