Skip to content

[BUG] saltutil.refresh_pillar does not work for proxy minions #59393

Closed

Description

@jtraub91

Description
saltutil.refresh_pillar does not refresh pillar for proxy minions

Setup
Configure a proxy and normal minion to view the comparison. Can be any proxy minion type.

Example proxy config:

# /srv/pillar/vsrx.sls
proxy:
  proxytype: junos
  host: x.x.x.x
  username: xxxx
  password: xxxxxxxxx
  port: 22

Steps to Reproduce the behavior
Modify pillar top to apply a new pillar key

# /srv/pillar/top.sls
base:
  '*':
    - rando
# /srv/pillar/rando.sls
rando: j

Refresh the pillar.

salt \* saltutil.refresh_pillar

Check the pillar

salt \* pillar.get

You will see that only the regular minion updated its pillar. The proxy minion updates it pillar only after a process restart.

Expected behavior
Proxy minion should refresh pillar

Versions Report

Salt Version:
          Salt: 3002.2
 
Dependency Versions:
          cffi: 1.14.4
      cherrypy: Not Installed
      dateutil: 2.7.3
     docker-py: Not Installed
         gitdb: 2.0.6
     gitpython: 3.0.7
        Jinja2: 2.10.1
       libgit2: Not Installed
      M2Crypto: Not Installed
          Mako: Not Installed
       msgpack: 0.6.2
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     pycparser: 2.20
      pycrypto: Not Installed
  pycryptodome: 3.6.1
        pygit2: Not Installed
        Python: 3.8.5 (default, Jul 28 2020, 12:59:40)
  python-gnupg: 0.4.5
        PyYAML: 5.3.1
         PyZMQ: 18.1.1
         smmap: 2.0.5
       timelib: Not Installed
       Tornado: 4.5.3
           ZMQ: 4.3.2
 
System Versions:
          dist: ubuntu 20.04 focal
        locale: utf-8
       machine: x86_64
       release: 5.4.0-62-generic
        system: Linux
       version: Ubuntu 20.04 focal

Activity

  1. added
    bug
    on Feb 1, 2021
  2. sagetherage commented on Feb 2, 2021

    @sagetherage
    Contributor

    @jtraub91 I am not sure everything is supported for proxy minions, but let me get you an engineer to confirm, here. I hope I am wrong.

  3. sagetherage commented on Mar 2, 2021

    @sagetherage
    Contributor

    @jtraub91 are you still seeing this error? I will attempt to get it triaged this week, simply wondering, thanks for the extra input!

  4. jtraub91 commented on Mar 4, 2021

    @jtraub91
    ContributorAuthor

    @sagetherage yes I am still seeing it

  5. added this to the Approved milestone on Apr 27, 2021
  6. added
    severity-medium
    on Apr 27, 2021
  7. sagetherage commented on Apr 27, 2021

    @sagetherage
    Contributor

    @jtraub91 there is a workaround to restart or resync, but wondering if you would be willing to put in a PR?

  8. jtraub91 commented on May 1, 2021

    @jtraub91
    ContributorAuthor

    @sagetherage I can take a look but no promises. This sort of fix is definitely getting "in the weeds" a little bit. In order to remedy it, need to examine how the proxy minion is responding to events on its local minion event bus, and in particular the "refresh pillar" event. Some guidance from more experienced salt devs, at least, would probably be very valuable.

  9. sagetherage commented on May 4, 2021

    @sagetherage
    Contributor

    @jtraub91 I completely understand, the core devs are a small team and extremely stretch, so all you can give in a PR would be great and then I can help get it reviewed even if you keep in a WIP status :) or something else?

  10. hemebond commented on May 9, 2021

    @hemebond
    Contributor

    In my testing the refresh works if you do it twice.

  11. added a commit that references this issue on Jul 11, 2026
    ad54e13
  12. added a commit that references this issue on Aug 5, 2026
    9288b00
  13. added a commit that references this issue on Oct 27, 2026
    1687709
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

    Proxy-Minionbugseverity-medium

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions