Skip to content

minion runs highstate on start if schedule set in pillar  #22580

Closed

Description

@ryanwalder

This is either a bug with the minion or a bug in the documentation and I wanted to clarify if this expected behaviour.

With a schedule in the pillar it triggers the function on salt-minion start:

schedule:                                                                       
  highstate:                                                                    
    function: state.highstate                                                   
    minutes: 60

This will trigger a highstate when the minion starts which is (to me) slightly unexpected behaviour, I can understand why it would do it but I can't see it documented (which has lead to a few head/table interfaces during state development).

Activity

  1. rallytime commented on Apr 17, 2015

    @rallytime
    Contributor

    @ryanwalder I think that is expected behavior, but it would be good to get that documented. @garethgreenaway - can you comment to whether or not that is expected?

  2. added
    pending-discussion
    on Apr 17, 2015
  3. added this to the Blocked milestone on Apr 17, 2015
  4. garethgreenaway commented on Apr 17, 2015

    @garethgreenaway
    Contributor

    Yup! Using seconds, minutes, and hours schedule items will run on startup. In 2015.2 there is an option, run_on_start, which will cause it not to run on startup but at the next iteration.

  5. rallytime commented on Apr 17, 2015

    @rallytime
    Contributor

    @garethgreenaway Nice! Is that configuration added to the docs anywhere? I did a quick search for it and didn't come up with anything, though I think our docs pages are being a little finicky as of the last day or so...

  6. garethgreenaway commented on Apr 17, 2015

    @garethgreenaway
    Contributor

    It's in the docs for the scheduler.

  7. rallytime commented on Apr 17, 2015

    @rallytime
    Contributor

    Ah, I see it here.

    By default any job scheduled based on the startup time of the minion will run

    Maybe it would be useful to get it in here, as well?

  8. added
    documentation
    bug
    severity-low
    P4
    and removed
    pending-discussion
    on Apr 17, 2015
  9. modified the milestones: Approved, Blocked on Apr 17, 2015
  10. added a commit that references this issue on Apr 29, 2016
    7042858
  11. added
    fixed-pls-verify
    on Apr 29, 2016
  12. modified the milestones: B -3, Approved on Apr 29, 2016
  13. self-assigned this
    on Apr 29, 2016
  14. added 2 commits that reference this issue on May 3, 2016
    f00b5f9
    111701c
  15. added a commit that references this issue on May 12, 2016
    457d9dd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P4bugdocumentationfixed-pls-verifyseverity-low

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions