Skip to content

Disabling CMD module on minion #25854

Closed
Closed

Description

@ez-ml

I was trying to disable the CMD module on minion using 'disable_modules' configuration, so that it should not be available even from master .
But it seems that its not supported and minion never comes up by throwing following error

[DEBUG   ] Could not LazyLoad cmd.run
[INFO    ] The salt minion is shut down
[ERROR   ] 'cmd.run'

Activity

  1. added
    needs-more-info
    on Aug 3, 2015
  2. added this to the Blocked milestone on Aug 3, 2015
  3. jfindlay commented on Aug 3, 2015

    @jfindlay
    Contributor

    @hishailesh77, thanks for the report. What is the output of salt --versions-report? Are there any other log statements that seem related? Does this happen if you instead add some other module to disable_modules?

  4. ez-ml commented on Aug 3, 2015

    @ez-ml
    Author

    @jfindlay :- Please find the underlying output from salt --versions-report . I have tried adding Test module 'disable_modules' and it works fine as expected .

               Salt: 2015.5.3
             Python: 2.7.5 (default, Jun 24 2015, 00:41:19)
             Jinja2: 2.7.2
           M2Crypto: 0.21.1
     msgpack-python: 0.4.6
       msgpack-pure: Not Installed
           pycrypto: 2.6.1
            libnacl: Not Installed
             PyYAML: 3.10
              ioflo: Not Installed
              PyZMQ: 14.3.1
               RAET: Not Installed
                ZMQ: 3.2.5
               Mako: Not Installed
            Tornado: Not Installed
  5. modified the milestones: Approved, Blocked on Aug 3, 2015
  6. added
    bug
    severity-medium
    Core
    P3
    and removed
    needs-more-info
    on Aug 3, 2015
  7. jfindlay commented on Aug 3, 2015

    @jfindlay
    Contributor

    @hishailesh77, thanks for the extra info. There may be something extra related to the cmd module and/or the lazyloader causing this problem.

  8. ez-ml commented on Aug 3, 2015

    @ez-ml
    Author

    @jfindlay :- Here is some more information, in order to troubleshoot the issue .

    "disable_modules:cmd" will have no effect and will not disable the command module on minion .

    In order to disabel cmd module, i have used
    "disable_modules:cmdmod"

  9. added
    won't-fix
    on May 19, 2016
  10. cachedout commented on May 19, 2016

    @cachedout
    Contributor

    @hishailesh77 is correct here.

    Personally, I believe this is feature and not a bug. It's better to be able to disable various providers for a given module (i.e., win_pkg but not yumpkg) versus only being able to disable the virtual pkg module. I will update the documentation better clarify this.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    CoreP3bugseverity-mediumwon't-fix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions