Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

salt-call state.show_states gives error on 2019.2.1-1 #54758

Closed
verhage opened this issue Sep 26, 2019 · 7 comments
Closed

salt-call state.show_states gives error on 2019.2.1-1 #54758

verhage opened this issue Sep 26, 2019 · 7 comments
Labels
Bug broken, incorrect, or confusing behavior Confirmed Salt engineer has confirmed bug/feature - often including a MCVE fixed-pls-verify fix is linked, bug author to confirm fix P4 Priority 4 severity-low 4th level, cosemtic problems, work around exists
Milestone

Comments

@verhage
Copy link

verhage commented Sep 26, 2019

Description of Issue

I just updated my salt-minion on CentOS 7 to version 2019.2.1-1.el7. Now when I run salt-call state.show_states, I get the following error;

Passed invalid arguments: string indices must be integers.

Usage:

    Returns the list of states that will be applied on highstate.

    CLI Example:

    .. code-block:: bash

        salt '*' state.show_states

    .. versionadded:: 2019.2.0

On a minion still running the previous version (2019.2.0-1.el7) everything works fine.

Setup

salt-master and minion both running on CentOS 7 7.6.1810, salt version 2019.2.1-1.el7

Steps to Reproduce Issue

Update minion to latest version and call state.show_states:

yum update
salt-call state.show_states

Versions Report

Salt Version:
           Salt: 2019.2.1

Dependency Versions:
           cffi: 1.6.0
       cherrypy: Not Installed
       dateutil: Not Installed
      docker-py: Not Installed
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.7.2
        libgit2: 0.26.3
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.5.6
   mysql-python: Not Installed
      pycparser: 2.14
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: 0.26.4
         Python: 2.7.5 (default, Jun 20 2019, 20:27:34)
   python-gnupg: Not Installed
         PyYAML: 3.11
          PyZMQ: 15.3.0
           RAET: Not Installed
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.1.4

System Versions:
           dist: centos 7.6.1810 Core
         locale: UTF-8
        machine: x86_64
        release: 3.10.0-957.27.2.el7.x86_64
         system: Linux
        version: CentOS Linux 7.6.1810 Core
@verhage verhage changed the title salt-call state.show_states gives error salt-call state.show_states gives error on 2019.2.1-1 Sep 26, 2019
@waynew
Copy link
Contributor

waynew commented Sep 26, 2019

Hi @verhage thanks for the report - I'm trying to reproduce this, and it's not failing for me yet.

Question: do you have any Jinja in your states?

@verhage
Copy link
Author

verhage commented Sep 26, 2019

Yes, we use Jinja templates in almost every state. I'll try and see if I can reproduce this in Vagrant.

@Ch3LL
Copy link
Contributor

Ch3LL commented Sep 26, 2019

im able to replicate this @waynew working on bisecting it now

@Ch3LL
Copy link
Contributor

Ch3LL commented Sep 26, 2019

looks like this is also failing on 2019.2.0. and state.show_states was added in 2.0

@Ch3LL
Copy link
Contributor

Ch3LL commented Sep 26, 2019

I found the reason mine is failing is I have an sls defined in my top.sls file that does not exist. Looking into a fix to handle this.

@verhage
Copy link
Author

verhage commented Sep 26, 2019

I just figured it out too, there was a typo in one of the states in top.sls

@cmcmarrow cmcmarrow added this to the Approved milestone Sep 26, 2019
@waynew waynew added the Confirmed Salt engineer has confirmed bug/feature - often including a MCVE label Sep 26, 2019
@Ch3LL
Copy link
Contributor

Ch3LL commented Sep 27, 2019

Fixed in #54785

@Ch3LL Ch3LL added fixed-pls-verify fix is linked, bug author to confirm fix Bug broken, incorrect, or confusing behavior severity-low 4th level, cosemtic problems, work around exists P4 Priority 4 labels Sep 27, 2019
@Ch3LL Ch3LL closed this as completed Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior Confirmed Salt engineer has confirmed bug/feature - often including a MCVE fixed-pls-verify fix is linked, bug author to confirm fix P4 Priority 4 severity-low 4th level, cosemtic problems, work around exists
Projects
None yet
Development

No branches or pull requests

4 participants