Skip to content
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

The formula fails to check the status of the Keepalived service #3

Open
simonpasquier opened this issue Nov 9, 2016 · 0 comments
Open

Comments

@simonpasquier
Copy link
Contributor

There is an issue with the keepalived formula when reapplying the state.

# salt 'ctl01*' state.sls keepalived 
<snip>
----------
          ID: keepalived_service
    Function: service.running
        Name: keepalived
      Result: False
     Comment: Service keepalived is already enabled, and is dead
     Started: 08:28:33.588880
    Duration: 90.55 ms
     Changes:   

Summary for ctl01.mk20-stacklight-basic.local
------------
Succeeded: 2
Failed:    1
------------
Total states run:     3
Total run time: 615.689 ms
ERROR: Minions returned with non-zero exit code

This is because the init script doesn't support the 'status' option:

root@ctl01:~# /etc/init.d/keepalived status
Usage: /etc/init.d/keepalived {start|stop|restart|reload|force-reload}

The error isn't happening the first time the keepalived state is applied because then it just starts the service.
But any further Salt call will fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant