Skip to content

Unable to override state-output setting in command line #29795

Closed

Description

@vutny

Hello,

I've configured the "changes" state output mode in master's config:

# The state_output setting changes if the output is the full multi line
# output for each changed state if set to 'full', but if set to 'terse'
# the output will be shortened to a single line.  If set to 'mixed', the output
# will be terse unless a state failed, in which case that output will be full.
# If set to 'changes', the output will be full unless the state didn't change.
state_output: changes

That works like a charm. But I would like to get back to full output mode temporarily with command line parameter:

[root@salt salt]# salt --state-output=full salt state.sls salt
salt:
  Name: salt-minion - Function: pkg.installed - Result: Clean
----------
          ID: salt-load-dynamic-modules
    Function: module.run
        Name: saltutil.sync_all
      Result: True
     Comment: Module function saltutil.sync_all executed
     Started: 15:21:19.705402
    Duration: 121.905 ms
     Changes:   
              ----------
              ret:
                  ----------
                  beacons:
                  grains:
                  log_handlers:
                  modules:
                  output:
                  renderers:
                  returners:
                  states:
                  utils:
  Name: /etc/salt/minion - Function: file.managed - Result: Clean
  Name: /etc/salt/minion.d - Function: file.recurse - Result: Clean
  Name: salt-minion - Function: service.running - Result: Clean

Summary for salt
------------
Succeeded: 5 (changed=1)
Failed:    0
------------
Total states run:     5
Total run time: 437.626 ms

Unfortunately, it has no effect.

Salt versions report:

[root@salt salt]# salt --versions-report 
Salt Version:
           Salt: 2015.8.1

Dependency Versions:
         Jinja2: 2.7.2
       M2Crypto: 0.21.1
           Mako: Not Installed
         PyYAML: 3.11
          PyZMQ: 14.7.0
         Python: 2.7.5 (default, Jun 24 2015, 00:41:19)
           RAET: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.0.5
           cffi: 0.8.6
       cherrypy: Not Installed
       dateutil: 2.4.2
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
        libnacl: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.6
   mysql-python: Not Installed
      pycparser: 2.10
       pycrypto: 2.6.1
         pygit2: 0.21.4
   python-gnupg: Not Installed
          smmap: Not Installed
        timelib: Not Installed

System Versions:
           dist: centos 7.1.1503 Core
        machine: x86_64
        release: 3.10.0-229.7.2.el7.x86_64
         system: CentOS Linux 7.1.1503 Core

Activity

  1. added
    bug
    severity-medium
    P3
    Core
    on Dec 17, 2015
  2. added this to the Approved milestone on Dec 17, 2015
  3. added
    help-wanted
    on Dec 17, 2015
  4. jfindlay commented on Dec 17, 2015

    @jfindlay
    Contributor

    @vutny, thanks for the report.

  5. vutny commented on Dec 18, 2015

    @vutny
    ContributorAuthor
  6. added a commit that references this issue on Feb 18, 2016
    483f319
  7. self-assigned this
    on Feb 18, 2016
  8. modified the milestones: B 2, Approved on Feb 18, 2016
  9. rallytime commented on Feb 18, 2016

    @rallytime
    Contributor

    @vutny I was able to reproduce this behavior and I have fixed this bug in #31299. Feel free to give that a try!

  10. added
    fixed-pls-verify
    on Feb 18, 2016
  11. vutny commented on Feb 22, 2016

    @vutny
    ContributorAuthor

    @rallytime Thank you very much! It works for me.

  12. rallytime commented on Feb 22, 2016

    @rallytime
    Contributor

    @vutny Awesome! Glad to hear it!

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

Metadata

Metadata

Assignees

Labels

CoreOutputtersP3bugfixed-pls-verifyhelp-wantedseverity-medium

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions