Skip to content

Instantly share code, notes, and snippets.

@pcn
Last active July 2, 2018 18:07
Show Gist options
  • Select an option

  • Save pcn/a40c04c051fc52e8da4a7623aa08f32d to your computer and use it in GitHub Desktop.

Select an option

Save pcn/a40c04c051fc52e8da4a7623aa08f32d to your computer and use it in GitHub Desktop.
Why can't I see cached minion grains for this dummy?
2018-07-02 15:24:28,851 [salt.utils.event ][DEBUG ] Sending event: tag = salt/run/20180702152428092436/new; data = {u'fun': u'runner.cache.grains', u'fun_args': [{u'tgt': u'dummy1'}], u'jid': u'20180702152428092436', u'user': u'sudo_ubuntu', u'_stamp': '2018-07-02T15:24:28.851086'}
2018-07-02 15:24:28,852 [salt.utils.reactor][DEBUG ] Gathering reactors for tag salt/run/20180702152428092436/new
2018-07-02 15:24:28,853 [salt.utils.master][DEBUG ] New instance of MasterPillarUtil created.
2018-07-02 15:24:28,853 [salt.utils.master][DEBUG ] Init settings: tgt: 'dummy1', tgt_type: 'glob', saltenv: 'None', use_cached_grains: True, use_cached_pillar: True, grains_fallback: False, pillar_fallback: True
2018-07-02 15:24:28,853 [salt.utils.master][DEBUG ] No minions matched for tgt="dummy1" and tgt_type="glob"
2018-07-02 15:24:28,854 [salt.utils.lazy ][DEBUG ] LazyLoaded local_cache.prep_jid
2018-07-02 15:24:28,855 [salt.loaded.int.returner.local_cache][DEBUG ] Adding minions for job 20180702152428092436: [u'ip-172-26-168-7.ec2.internal_master']
ubuntu@spacey-saltmaster-vagrant:~$ sudo salt '*' test.ping
dummy1:
    True
saltmaster:
    True
ubuntu@spacey-saltmaster-vagrant:~$ sudo salt-run cache.grains tgt='dummy1'

Looks like it's saltstack/salt#48408

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