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

Pillars not available to reactor states #42762

Closed
nomeelnoj opened this Issue Aug 5, 2017 · 2 comments

Comments

Projects
None yet
4 participants
@nomeelnoj

nomeelnoj commented Aug 5, 2017

Description of Issue/Question

When I run a state or highstate manually on one node, it succeeds. However, when a reactor calls the same state or highstate, it fails with a pillar error such as:

"Rendering SLS 'base:ops.salt.users' failed: Jinja variable 'salt.pillar object' has no attribute 'users'"

The same files worked properly under 2016.11.6.

Setup

The reactor is running an orchestration state:

------------------------
/srv/reactor/startup.sls
------------------------
startup_orchestration:
  runner.state.orchestrate:
    - mods: orch.startup
    - kwarg:
        pillar:
          minion: {{ data['id'] }}

The orchestration state (truncated):

-------------------------
/srv/salt/orch/startup.sls
-------------------------
...
highstate_run:
  salt.state:
    - tgt: '{{ pillar['minion'] }}'
    - highstate: True
...

Steps to Reproduce Issue

Here are the salt-master -l debug logs:

salt/run/20170805033329986947/ret	{
    "_stamp": "2017-08-05T07:33:30.707754",
    "fun": "runner.jobs.lookup_jid",
    "fun_args": [
        "20170805032737124845"
    ],
    "jid": "20170805033329986947",
    "return": {
        "buildcafe": [
            "Rendering SLS 'base:ops.salt.users' failed: Jinja variable 'salt.pillar object' has no attribute 'users'"
        ]
    },
    "success": true,
    "user": "UNKNOWN"
}

Versions Report

Master and all minions are running 2017.7.0
Master:

salt --versions-report
Salt Version:
           Salt: 2017.7.0

Dependency Versions:
           cffi: Not Installed
       cherrypy: unknown
       dateutil: 1.5
      docker-py: Not Installed
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.7.2
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: 0.21.1
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.6
   mysql-python: Not Installed
      pycparser: Not Installed
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 2.7.5 (default, Aug  2 2016, 04:20:16)
   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: redhat 7.3 Maipo
         locale: UTF-8
        machine: x86_64
        release: 3.10.0-514.26.2.el7.x86_64
         system: Linux
        version: Red Hat Enterprise Linux Server 7.3 Maipo

Minion in question:

salt-minion --versions-report
Salt Version:
           Salt: 2017.7.0

Dependency Versions:
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: 1.5
      docker-py: Not Installed
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.7.2
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: 0.9.1
   msgpack-pure: Not Installed
 msgpack-python: 0.4.6
   mysql-python: 1.2.3
      pycparser: Not Installed
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 2.7.6 (default, Oct 26 2016, 20:30:19)
   python-gnupg: Not Installed
         PyYAML: 3.10
          PyZMQ: 14.0.1
           RAET: Not Installed
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.0.5

System Versions:
           dist: Ubuntu 14.04 trusty
         locale: UTF-8
        machine: x86_64
        release: 4.4.0-31-generic
         system: Linux
        version: Ubuntu 14.04 trusty

@nomeelnoj nomeelnoj changed the title from Pillars not passing to reactor highstates to Pillars not available to reactor states Aug 5, 2017

@gtmanfred

This comment has been minimized.

Show comment
Hide comment
@gtmanfred

gtmanfred Aug 7, 2017

Member

can you test the 2017.7.1 branch?

This should be fixed by #42433

Member

gtmanfred commented Aug 7, 2017

can you test the 2017.7.1 branch?

This should be fixed by #42433

@nomeelnoj

This comment has been minimized.

Show comment
Hide comment
@nomeelnoj

nomeelnoj Nov 2, 2017

Sorry for not responding sooner, yes, I believe this has been resolved with the new version

nomeelnoj commented Nov 2, 2017

Sorry for not responding sooner, yes, I believe this has been resolved with the new version

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