Skip to content

systemd notification is not fully supported by Salt  #33803

Closed

Description

@dmurphy18

Description of Issue/Question

On OS's which support systemd, setting systemd service unit's to 'Type=notify' doesn't have support inside Salt. Only notify messages currently supported is for salt-master started. Need to support salt-minion, salt-sysndic and salt-api, the other processes with services.

functions which need development
salt/cli/daemons.py
salt/utils/process.py, notify_systemd, systemd_notify_call

Need support for sd_notify's
READY=1
RELOADING=1
STOPPING=1

Setup

[root@localhost ~]# cat /usr/lib/systemd/system/salt-minion.service
[Unit]
Description=The Salt Minion
After=network.target

[Service]

Type=simple

Type=notify
LimitNOFILE=8192
ExecStart=/usr/bin/salt-minion
KillMode=process
NotifyAccess=all

[Install]
WantedBy=multi-user.target
[root@localhost ~]#

Steps to Reproduce Issue

(Include debug logs if possible and relevant.)

Versions Report

Problem exists from 2015.8.x on.

Activity

  1. added
    Core
    pending-discussion
    on Jun 6, 2016
  2. added this to the Approved milestone on Jun 6, 2016
  3. modified the milestones: C 5, Approved on Aug 3, 2016
  4. added
    fixed-pls-verify
    and removed
    pending-discussion
    on Aug 17, 2016
  5. terminalmage commented on Aug 17, 2016

    @terminalmage
    Contributor

    Implemented in #35510.

  6. terminalmage commented on Aug 17, 2016

    @terminalmage
    Contributor

    vmware-archive/salt-pack#131 will be required on the packaging end to fully implement systemd notification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Corefixed-pls-verify

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions