Skip to content

state.show_state_usage misses include:d states #58670

Open

Description

@Mrten

If you have included states like I described in issue #11868 it seems that state.show_state_usage call puts the included states in the 'unused' part of the result:

web-1:
    ----------
    base:
        ----------
        count_all:
            235
        count_unused:
            176
        count_used:
            59
        unused:
            - all-1804-fixups
            - all-secure
            - apache
            [...]
        used:
            [...]
            - machine.web.apache

The first lines of machine/web/apache/init.sls are:

include:
  - apache

So i'd say its used.

Activity

  1. added
    bug
    on Oct 7, 2020
  2. garethgreenaway commented on Oct 13, 2020

    @garethgreenaway
    Contributor

    @Mrten Thanks for the report. Can you provide the output from salt --versions-report? Thanks!

  3. Mrten commented on Oct 13, 2020

    @Mrten
    ContributorAuthor

    aw dammit i know that's supposed to be there but I forgot.

    mrten@salt:~$ salt --versions-report
    Salt Version:
               Salt: 2019.2.5
    
    Dependency Versions:
               cffi: Not Installed
           cherrypy: Not Installed
           dateutil: 2.6.1
          docker-py: Not Installed
              gitdb: Not Installed
          gitpython: Not Installed
              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: 3.6.9 (default, Jul 17 2020, 12:50:27)
       python-gnupg: 0.4.1
             PyYAML: 3.12
              PyZMQ: 16.0.2
               RAET: Not Installed
              smmap: Not Installed
            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-72-generic
             system: Linux
            version: Ubuntu 18.04 bionic
    

    Would you also like one from the minion?

  4. garethgreenaway commented on Oct 13, 2020

    @garethgreenaway
    Contributor

    @Mrten Nope. This one is perfect. We're no longer supporting the 2019.2.x releases other than security fixes. Are you able to upgrade to the latest release?

  5. added this to the Blocked milestone on Oct 13, 2020
  6. added
    pending-discussion
    and removed
    bug
    on Oct 13, 2020
  7. Mrten commented on Oct 14, 2020

    @Mrten
    ContributorAuthor

    I was planning to, soonish, perhaps I can expedite things. 3000.3 OK? I hate to be bleeding edge.

  8. Mrten commented on Oct 14, 2020

    @Mrten
    ContributorAuthor

    sorry, same problem with 3000.3

    root@salt:/home/salt/conf/all-salt-minion-config# salt web-6 state.show_state_usage
    web-6:
        ----------
        base:
            ----------
            count_all:
                235
            count_unused:
                180
            count_used:
                55
            unused:
                - all-1804-fixups
    [...]
                - apache
    

    (another minion).

    master:

    root@salt:/home/salt/conf/all-salt-minion-config# salt --versions-report
    Salt Version:
               Salt: 3000.3
    
    Dependency Versions:
               cffi: Not Installed
           cherrypy: Not Installed
           dateutil: 2.6.1
          docker-py: Not Installed
              gitdb: Not Installed
          gitpython: Not Installed
             Jinja2: 2.10
            libgit2: 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: 3.6.9 (default, Jul 17 2020, 12:50:27)
       python-gnupg: 0.4.1
             PyYAML: 3.12
              PyZMQ: 16.0.2
              smmap: Not Installed
            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-72-generic
             system: Linux
            version: Ubuntu 18.04 bionic
    

    minion:

    mrten@web-6:/etc/apt/sources.list.d$ salt-call --versions-report
    Salt Version:
               Salt: 3000.3
    
    Dependency Versions:
               cffi: Not Installed
           cherrypy: Not Installed
           dateutil: 2.4.2
          docker-py: Not Installed
              gitdb: Not Installed
          gitpython: Not Installed
             Jinja2: 2.8
            libgit2: Not Installed
           M2Crypto: Not Installed
               Mako: 1.0.3
       msgpack-pure: Not Installed
     msgpack-python: 0.6.2
       mysql-python: Not Installed
          pycparser: Not Installed
           pycrypto: 2.6.1
       pycryptodome: Not Installed
             pygit2: Not Installed
             Python: 3.5.2 (default, Jul 17 2020, 14:04:10)
       python-gnupg: 0.3.8
             PyYAML: 3.11
              PyZMQ: 15.2.0
              smmap: Not Installed
            timelib: Not Installed
            Tornado: 4.5.3
                ZMQ: 4.1.4
    
    System Versions:
               dist: Ubuntu 16.04 xenial
             locale: UTF-8
            machine: x86_64
            release: 4.4.0-170-generic
             system: Linux
            version: Ubuntu 16.04 xenial
    
  9. garethgreenaway commented on Oct 15, 2020

    @garethgreenaway
    Contributor

    @Mrten Thanks for confirming that the issue is still happening in the later releases.

  10. added
    bug
    severity-high
    and removed
    pending-discussion
    on Oct 22, 2020
  11. removed their assignment
    on Jan 11, 2021
  12. added
    Phosphorus v3005.0
    on Jun 18, 2021
  13. removed
    Phosphorus v3005.0
    on Mar 30, 2022
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

    bugseverity-high

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions