Skip to content

Custom modules are only resynced to minions at highstate #35340

Closed
@dqminh

Description

Description of Issue/Question

Custom modules are only resynced to minions at highstate. The documentation said

Modules placed in _modules/ will be synced to the minions when any of the following Salt functions are called:

state.apply
saltutil.sync_modules
saltutil.sync_all

Before the introduction of state.apply it was state.highstate which is much clearer. However if we can fix the loading process of modules so it can be automatically resynced/reloaded it would be great too.

Setup

  • Custom modules stored in states/_modules

Steps to Reproduce Issue

  • Update a custom module
  • Run a specific state on the minion without saltutils.sync_modules|all first.

Versions Report

root@haha:/# salt-call --versions-report
Salt Version:
           Salt: 2016.3.2

Dependency Versions:
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: 2.2
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.8
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.2
   mysql-python: Not Installed
      pycparser: Not Installed
       pycrypto: Not Installed
         pygit2: Not Installed
         Python: 2.7.9 (default, Mar  1 2015, 12:57:24)
   python-gnupg: 0.3.6
         PyYAML: 3.11
          PyZMQ: Not Installed
           RAET: Not Installed
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 4.2.1
            ZMQ: Not Installed

System Versions:
           dist: debian 8.5
        machine: x86_64
        release: 4.4.14-cloudflare
         system: Linux
        version: debian 8.5

Metadata

Assignees

No one assigned

    Labels

    Bugbroken, incorrect, or confusing behaviorCorerelates to code central or existential to SaltDocumentationRelates to Salt documentationP3Priority 3fixed-pls-verifyfix is linked, bug author to confirm fixseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions