saltstack / salt

Software to automate the management and configuration of any infrastructure or application at scale. Get access to the Salt software package repository here:
https://repo.saltproject.io/
Apache License 2.0
14.1k stars 5.47k forks source link

managed interface #33114

Closed sivann closed 4 years ago

sivann commented 8 years ago

Description

Both manage.allowed and manage.alived do not seem to work.

In our case both always return the same list of 5 hosts, while hosts responding to test.ping are about 200. worker_threads is 50 in our case.

salt master: 2015.8.8

cachedout commented 8 years ago

Do you have presence events enabled? Both those require that you do so. https://docs.saltstack.com/en/latest/ref/configuration/master.html#std:conf_master-presence_events

Otherwise, you probably want manage.up and manage down.

sivann commented 8 years ago

@cachedout I added presence_events: True to saltmaster and restarted, now only 1 host is reported as allowed/alived.

zbikmarc commented 8 years ago

I confirm this issue. We have about 50 hosts, all are visible as up (manage.up) however only few of them are visible in manage.alived exact same list in manage.present. All of them have IP in same subnet as master. Every minion with version 2015.8.8 are visible. Only 4-5 minions with 2016.3.1 are visible. What is more interesting all 2016.3.1 minins are reporting exact same versions of packages, they all have same config file.

# salt-minion --versions-report
Salt Version:
           Salt: 2016.3.1

Dependency Versions:
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: 2.4.2
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.8
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: 1.0.3
   msgpack-pure: Not Installed
 msgpack-python: 0.4.6
   mysql-python: Not Installed
      pycparser: Not Installed
       pycrypto: 2.6.1
         pygit2: Not Installed
         Python: 2.7.11+ (default, Apr 17 2016, 14:00:29)
   python-gnupg: Not Installed
         PyYAML: 3.11
          PyZMQ: 15.2.0
           RAET: Not Installed
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.1.4

System Versions:
           dist: Ubuntu 16.04 xenial
        machine: x86_64
        release: 4.4.0-24-generic
         system: Linux
        version: Ubuntu 16.04 xenial
stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

grinapo commented 6 years ago
# salt-run --versions-report
Salt Version:
           Salt: 2016.11.2

# salt-run manage.up | wc -l
71
# salt-run manage.allowed | wc -l
0
# salt-run manage.alived | wc -l
0
stale[bot] commented 6 years ago

Thank you for updating this issue. It is no longer marked as stale.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

grinapo commented 4 years ago
# salt-run manage.up | wc -l
77
# salt-run manage.allowed | wc -l
74
# salt-run manage.alived | wc -l
74
# salt-run --versions-report
Salt Version:
           Salt: 2019.2.0

It seems to be working now, which is surprising.

stale[bot] commented 4 years ago

Thank you for updating this issue. It is no longer marked as stale.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.