question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

state_output option being ignored, salt 2018.3.3

See original GitHub issue

Description of Issue/Question

I am attempting to utilize the option “state_output” so that my state.apply commands do not display so much information every time I run them. My understanding is that by setting state_output to options like “changes” should reduce my output, however, I receive the same level of verbosity no matter what I have tried.

Setup

master:/etc/salt$ egrep "^state_output" master
state_output: changes

Steps to Reproduce Issue

master:/etc/salt$ sudo salt admin1 state.apply
admin1:
    ----------
    file_|-/etc/profile.d/history-format.sh_|-/etc/profile.d/history-format.sh_|-managed:
        ----------
        __id__:
            /etc/profile.d/history-format.sh
        __run_num__:
            62
        __sls__:
            security
        changes:
            ----------
        comment:
            File /etc/profile.d/history-format.sh is in the correct state
        duration:
            135.399
        name:
            /etc/profile.d/history-format.sh
        pchanges:
            ----------
        result:
            True
        start_time:
            22:18:33.041584

output is the same when manually specifying --state-output=changes

Versions Report

master:/etc/salt$ sudo salt --versions-report
Salt Version:
           Salt: 2018.3.3

Dependency Versions:
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: 2.6.1
      docker-py: Not Installed
          gitdb: 2.0.3
      gitpython: 2.1.8
          ioflo: Not Installed
         Jinja2: 2.10
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: 1.0.7
   msgpack-pure: Not Installed
 msgpack-python: 0.5.6
   mysql-python: Not Installed
      pycparser: Not Installed
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 2.7.15rc1 (default, Nov 12 2018, 14:31:15)
   python-gnupg: 0.4.1
         PyYAML: 3.12
          PyZMQ: 16.0.2
           RAET: Not Installed
          smmap: 2.0.3
        timelib: Not Installed
        Tornado: 4.5.3
            ZMQ: 4.2.5

System Versions:
           dist: Ubuntu 18.04 bionic
         locale: UTF-8
        machine: x86_64
        release: 4.15.0-1021-aws
         system: Linux
        version: Ubuntu 18.04 bionic

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dawidmalinacommented, Oct 3, 2019

@Ch3LL sorry for such a long delay. During test environment preparation we found issue on our side (better don’t ask what was it). So I can confirm no problems on saltstack side.

1reaction
dawidmalinacommented, Jul 25, 2019

Thx @Ch3LL I will give it a try and I will test new branch. In addition I will try to prepare some test environment in docker.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Minion state_output option appears ignored by salt-call #7803
I'm been using Salt and using a masterless minion, with the state_output option configured to be mixed in the minion file.
Read more >
Salt 0.10.3 Release Notes
Te next option to be aware of new and called state_output . This option allows for the state output to be set to...
Read more >
salt man page - salt-master - Miscellanea | ManKier
This option is intended for situations where the ssh-agent offers many different identities and allows ssh to ignore those identities and use the...
Read more >
What's New in Salt 3003 Aluminium Release
The Salt Aluminium release is rather modest with new features. ... If you know some obscure and undocumented config options, please add them ......
Read more >
Applying Salt states to minions - Packt Subscription
There is a second option of applying the state from master to minion, ... salt 'salt-minion' state.highstate \ saltenv=development --state-output=terse ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found