Troubleshooting Salt Minion Beacons

38 views
Skip to first unread message

Josh Chu

unread,
Sep 9, 2022, 11:03:26 PM9/9/22
to Salt-users
I'm running into an issue with beacons in my salt implementation where my minions (running on Windows machines, Salt version 3003.4) don't have any available beacons. IE. when I try to query beacons.list_available, I get an empty list:

    ----------

    beacons:

        ----------


I can see the .py files for the beacons in the salt site-packages for these minions:

Directory of C:\salt\bin\Lib\site-packages\salt-3003.4-py3.7.egg\salt\beacons
06/29/2022 12:16 PM <DIR> .
06/29/2022 12:16 PM <DIR> ..
02/28/2022 08:13 PM 5,517 adb.py
02/28/2022 08:13 PM 1,497 aix_account.py
02/28/2022 08:13 PM 9,022 avahi_announce.py
02/28/2022 08:13 PM 8,726 bonjour_announce.py
02/28/2022 08:13 PM 8,909 btmp.py
02/28/2022 08:13 PM 6,126 cert_info.py
02/28/2022 08:13 PM 3,522 diskusage.py
02/28/2022 08:13 PM 2,002 glxinfo.py
02/28/2022 08:13 PM 3,193 haproxy.py
02/28/2022 08:13 PM 13,080 inotify.py
02/28/2022 08:13 PM 2,814 journald.py
02/28/2022 08:13 PM 760 junos_rre_keys.py
02/28/2022 08:13 PM 6,668 load.py
02/28/2022 08:13 PM 3,896 log_beacon.py
02/28/2022 08:13 PM 1,639 memusage.py
02/28/2022 08:13 PM 12,257 napalm_beacon.py
02/28/2022 08:13 PM 4,999 network_info.py
02/28/2022 08:13 PM 7,023 network_settings.py
02/28/2022 08:13 PM 2,725 pkg.py
02/28/2022 08:13 PM 1,552 proxy_example.py
02/28/2022 08:13 PM 2,366 ps.py
02/28/2022 08:13 PM 4,259 salt_monitor.py
02/28/2022 08:13 PM 1,917 salt_proxy.py
02/28/2022 08:13 PM 2,903 sensehat.py
02/28/2022 08:13 PM 6,569 service.py
02/28/2022 08:13 PM 3,276 sh.py
02/28/2022 08:13 PM 2,754 smartos_imgadm.py
02/28/2022 08:13 PM 3,530 smartos_vmadm.py
02/28/2022 08:13 PM 4,381 status.py
02/28/2022 08:13 PM 1,634 swapusage.py
02/28/2022 08:13 PM 2,654 telegram_bot_msg.py
02/28/2022 08:13 PM 2,892 twilio_txt_msg.py
02/28/2022 08:13 PM 5,206 watchdog.py
02/28/2022 08:13 PM 10,817 wtmp.py
02/28/2022 08:13 PM 18,369 __init__.py
06/29/2022 12:19 PM <DIR> __pycache__
35 File(s) 179,454 bytes
3 Dir(s) 69,554,495,488 bytes free

This leads me to believe I am passing in some incorrect parameters when starting up my minions. I'm working my way through the source code but was hoping someone has some quicker insights into where I should look. Thanks in advance!

Josh Chu

unread,
Sep 13, 2022, 12:23:07 PM9/13/22
to Salt-users
When I run
```
sudo salt river-road-dental:DataSource-2791 cmd.run "salt-call --log-level=all --log-file=C:\\salt\\var\\log\\salt\\beacon.log beacons.list_available"
```

I end up with:
```
    2022-09-12 20:19:22,894 [salt.utils.event :805 ][DEBUG ][4284] Sending event: tag = manage_beacons; data = {'func': 'list_available', '_stamp': '2022-09-13T00:19:22.894093'} 2 2022-09-12 20:19:22,894 [salt.transport.ipc:365 ][DEBUG ][4284] Closing IPCMessageClient instance 3 2022-09-12 20:19:22,894 [salt.utils.event :40 ][TRACE ][4284] Get event. tag: /salt/minion/minion_beacons_list_available_complete 4 2022-09-12 20:20:22,902 [salt.utils.event :40 ][TRACE ][4284] _get_event() waited 60.0 seconds and received nothing
``` 

Here is my versions report on my salt-master:
```

sh-4.2$ sudo salt-master --versions-report

Salt Version:

          Salt: 3003.5

 

Dependency Versions:

          cffi: 1.15.0

      cherrypy: 5.6.0

      dateutil: 2.7.3

     docker-py: Not Installed

         gitdb: Not Installed

     gitpython: Not Installed

        Jinja2: 2.7.2

       libgit2: 1.4.3

      M2Crypto: Not Installed

          Mako: Not Installed

       msgpack: 0.5.6

  msgpack-pure: Not Installed

  mysql-python: Not Installed

     pycparser: 2.21

      pycrypto: 2.6.1

  pycryptodome: 3.6.1

        pygit2: 1.9.2

        Python: 3.7.10 (default, Jun  3 2021, 00:02:01)

  python-gnupg: 0.4.4

        PyYAML: 4.2

         PyZMQ: 17.0.0

         smmap: Not Installed

       timelib: Not Installed

       Tornado: 4.5.3

           ZMQ: 4.2.3

 

System Versions:

          dist: amzn 2 

        locale: UTF-8

       machine: x86_64

       release: 4.14.275-207.503.amzn2.x86_64

        system: Linux

       version: Amazon Linux 2 

```

Salt minion:
```

sh-4.2$ sudo salt river-road-dental:DataSource-2791 cmd.run "salt-minion --versions-report"

river-road-dental:DataSource-2791:

    Salt Version:

              Salt: 3003.4

     

    Dependency Versions:

              cffi: 1.14.5

          cherrypy: 18.6.0

          dateutil: 2.8.1

         docker-py: Not Installed

             gitdb: 4.0.5

         gitpython: Not Installed

            Jinja2: 2.11.3

           libgit2: Not Installed

          M2Crypto: Not Installed

              Mako: 1.1.4

           msgpack: 1.0.2

      msgpack-pure: Not Installed

      mysql-python: Not Installed

         pycparser: 2.20

          pycrypto: Not Installed

      pycryptodome: 3.9.8

            pygit2: Not Installed

            Python: 3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)]

      python-gnupg: 0.4.6

            PyYAML: 5.4.1

             PyZMQ: 18.0.1

             smmap: 3.0.4

           timelib: 0.2.4

           Tornado: 4.5.3

               ZMQ: 4.3.1

     

    System Versions:

              dist:   

            locale: cp1252

           machine: AMD64

           release: 2016Server

            system: Windows

           version: 2016Server 10.0.14393 SP0

```

Reply all
Reply to author
Forward
0 new messages