salt icon indicating copy to clipboard operation
salt copied to clipboard

[BUG]manage.alived not reporting all live minions

Open dnessett opened this issue 1 year ago • 0 comments

Description Comparing manage.up and manage.alived output, the latter does not report all live minions. This bug may be related to issue #66837

Setup

Using salt-run manage.alived and salt-run manage.up reports inconsistent results. For example,

sudo salt-run manage.alived
[sudo] password for dnessett:
- MOLS-Master
- MOLS-S-02
- MOLS-S-05
- MOLS-S-08
- MOLS-S-13
- MOLS-S-14
- MOLS-S-15
- MOLS-S-16
- MOLS-S-18
- MOLS-S-20
- MOLS-S-21
- MOLS-T-04

Versus

sudo salt-run manage.up
[sudo] password for dnessett:
- MOLS-Master
- MOLS-S-01
- MOLS-S-02
- MOLS-S-03
- MOLS-S-04
- MOLS-S-05
- MOLS-S-06
- MOLS-S-07
- MOLS-S-08
- MOLS-S-09
- MOLS-S-10
- MOLS-S-11
- MOLS-S-12
- MOLS-S-13
- MOLS-S-14
- MOLS-S-15
- MOLS-S-16
- MOLS-S-17
- MOLS-S-18
- MOLS-S-19
- MOLS-S-20
- MOLS-S-21
- MOLS-T-01
- MOLS-T-02
- MOLS-T-03
- MOLS-T-04

ss -ant src :4505 reports:

ss -ant src :4505
State         Recv-Q        Send-Q               Local Address:Port                Peer Address:Port        Process
LISTEN        0             1000                       0.0.0.0:4505                     0.0.0.0:*
ESTAB         0             0                    192.168.1.200:4505               192.168.1.140:43030
ESTAB         0             0                    192.168.1.200:4505               192.168.1.120:58520
ESTAB         0             0                    192.168.1.200:4505               192.168.1.101:58320
ESTAB         0             0                    192.168.1.200:4505                192.168.1.78:34232
ESTAB         0             0                    192.168.1.200:4505               192.168.1.199:38378
ESTAB         0             0                    192.168.1.200:4505                192.168.1.67:38922
ESTAB         0             0                    192.168.1.200:4505               192.168.1.153:58594
ESTAB         0             0                    192.168.1.200:4505               192.168.1.169:48692
ESTAB         0             0                    192.168.1.200:4505                192.168.1.94:60518
ESTAB         0             0                    192.168.1.200:4505               192.168.1.141:42796
ESTAB         0             0                    192.168.1.200:4505               192.168.1.142:33094
ESTAB         0             0                    192.168.1.200:4505               192.168.1.184:42146
ESTAB         0             0                    192.168.1.200:4505               192.168.1.182:37492
ESTAB         0             0                    192.168.1.200:4505               192.168.1.152:34168
ESTAB         0             0                    192.168.1.200:4505               192.168.1.192:37040
ESTAB         0             0                    192.168.1.200:4505               192.168.1.130:35800
ESTAB         0             0                    192.168.1.200:4505               192.168.1.200:53198
ESTAB         0             0                    192.168.1.200:4505                192.168.1.95:40830
ESTAB         0             0                    192.168.1.200:4505                192.168.1.98:46582
ESTAB         0             0                    192.168.1.200:4505               192.168.1.151:38188
ESTAB         0             0                    192.168.1.200:4505               192.168.1.149:56922
ESTAB         0             0                    192.168.1.200:4505               192.168.1.107:36796
ESTAB         0             0                    192.168.1.200:4505               192.168.1.176:60726
ESTAB         0             0                    192.168.1.200:4505                192.168.1.79:56840
ESTAB         0             0                    192.168.1.200:4505               192.168.1.127:49938
ESTAB         0             0                    192.168.1.200:4505               192.168.1.123:49908

and for one of the missing minions:

sudo salt-run cache.grains MOLS-S-01 MOLS-S-01: ---------- . . .

ip4_gw:
    192.168.1.1
ip4_interfaces:
    ----------
    lo:
        - 127.0.0.1
    wlp1s0:
        - 192.168.1.89
ip6_gw:
    False
ip6_interfaces:
    ----------
    lo:
        - ::1
    wlp1s0:
        - fe80::d1ac:d55e:d97c:5827
ip_gw:
    True
ip_interfaces:
    ----------
    lo:
        - 127.0.0.1
        - ::1
    wlp1s0:
        - 192.168.1.89
        - fe80::d1ac:d55e:d97c:5827
ipv4:
    - 127.0.0.1
    - 192.168.1.89
ipv6:
    - ::1
    - fe80::d1ac:d55e:d97c:5827

. . .

Notice that the IPv4 address of minion MOLS-S-01 does not appear in the list produced by the ss command.

  • [ X] on-prem machine
  • [ ] VM (Virtualbox, KVM, etc. please specify)
  • [ ] VM running on a cloud service, please be explicit and add details
  • [ ] container (Kubernetes, Docker, containerd, etc. please specify)
  • [ ] or a combination, please be explicit
  • [ ] jails if it is FreeBSD
  • [ ] classic packaging
  • [X ] onedir packaging
  • [ ] used bootstrap to install

Steps to Reproduce the behavior run salt-run manage.alived and ss -ant src :4505. Compare the two and notice that the ss command doesn't show some of the minions produced by manage.up.

Expected behavior sudo salt-run manage.alived should report all live minions.

Screenshots N/A

Versions Report

Master version: salt --versions-report Salt Version: Salt: 3006.9

Python Version: Python: 3.10.14 (main, Jun 26 2024, 11:44:37) [GCC 11.2.0]

Dependency Versions: cffi: 1.14.6 cherrypy: unknown cryptography: 42.0.5 dateutil: 2.8.1 docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed Jinja2: 3.1.4 libgit2: Not Installed looseversion: 1.0.2 M2Crypto: Not Installed Mako: Not Installed msgpack: 1.0.2 msgpack-pure: Not Installed mysql-python: Not Installed packaging: 22.0 pycparser: 2.21 pycrypto: Not Installed pycryptodome: 3.19.1 pygit2: Not Installed python-gnupg: 0.4.8 PyYAML: 6.0.1 PyZMQ: 23.2.0 relenv: 0.17.0 smmap: Not Installed timelib: 0.2.4 Tornado: 4.5.3 ZMQ: 4.3.4

System Versions: dist: linuxmint 21.1 vera locale: utf-8 machine: x86_64 release: 5.15.0-88-generic system: Linux version: Linux Mint 21.1 vera

Minion version (all minions are identical):

salt-run 'MOLS-S-01' --versions-report Salt Version: Salt: 3006.9

Python Version: Python: 3.10.14 (main, Jun 26 2024, 11:44:37) [GCC 11.2.0]

Dependency Versions: cffi: 1.14.6 cherrypy: 18.6.1 cryptography: 42.0.5 dateutil: 2.8.1 docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed Jinja2: 3.1.4 libgit2: Not Installed looseversion: 1.0.2 M2Crypto: Not Installed Mako: Not Installed msgpack: 1.0.2 msgpack-pure: Not Installed mysql-python: Not Installed packaging: 22.0 pycparser: 2.21 pycrypto: Not Installed pycryptodome: 3.19.1 pygit2: Not Installed python-gnupg: 0.4.8 PyYAML: 6.0.1 PyZMQ: 23.2.0 relenv: 0.17.0 smmap: Not Installed timelib: 0.2.4 Tornado: 4.5.3 ZMQ: 4.3.4

System Versions: dist: linuxmint 21.1 vera locale: utf-8 machine: x86_64 release: 5.15.0-88-generic system: Linux version: Linux Mint 21.1 vera

N/A

Additional context Add any other context about the problem here.

dnessett avatar Aug 27 '24 18:08 dnessett