Ошибка Salt Minion: невозможно войти в систему на мастере: попытка аутентификации на мастере соли не удалась из-за ошибки тайм-аута.

У меня есть мастер соли и миньон, работающие в VirturalBox с использованием vagrant.Minion не может подключиться к мастеру, когда я выполняю «salt-call test.version», он возвращает ошибку «Невозможно войти в мастер: попытка аутентификации с помощью мастера соли не удалась с ошибкой тайм-аута»:

      [root@infbitgitl01v ~]# salt-call test.version
[DEBUG   ] Configuration file path: /etc/salt/minion
[DEBUG   ] Grains refresh requested. Refreshing grains.
[DEBUG   ] Reading configuration from /etc/salt/minion
[DEBUG   ] The functions from module 'core' are being loaded by dir() on the loaded module
[DEBUG   ] The functions from module 'disks' are being loaded by dir() on the loaded module
[DEBUG   ] The functions from module 'extra' are being loaded by dir() on the loaded module
[DEBUG   ] The functions from module 'lvm' are being loaded by dir() on the loaded module
[DEBUG   ] The functions from module 'mdadm' are being loaded by dir() on the loaded module
[DEBUG   ] The functions from module 'minion_process' are being loaded by dir() on the loaded module
[DEBUG   ] The functions from module 'opts' are being loaded by dir() on the loaded module
[DEBUG   ] Override  __utils__: <module 'salt.loaded.int.grains.zfs' from '/usr/lib/python3.6/site-packages/salt/grains/zfs.py'>
[DEBUG   ] The functions from module 'zfs' are being loaded by dir() on the loaded module
[DEBUG   ] Elapsed time getting FQDNs: 0.07333755493164062 seconds
[DEBUG   ] The `lspci` binary is not available on the system. GPU grains will not be available.
[DEBUG   ] The functions from module 'zfs' are being loaded by dir() on the loaded module
[DEBUG   ] LazyLoaded zfs.is_supported
[DEBUG   ] Connecting to master. Attempt 1 of 1
[DEBUG   ] Master URI: tcp://192.168.56.10:4506
[DEBUG   ] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'infbitgitl01v.loc.geoplace.co.uk', 'tcp://192.168.56.10:4506')
[DEBUG   ] Generated random reconnect delay between '1000ms' and '11000ms' (5982)
[DEBUG   ] Setting zmq_reconnect_ivl to '5982ms'
[DEBUG   ] Setting zmq_reconnect_ivl_max to '11000ms'
[DEBUG   ] salt.crypt.get_rsa_key: Loading private key
[DEBUG   ] salt.crypt._get_key_with_evict: Loading private key
[DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG   ] SaltEvent PUB socket URI: /var/run/salt/minion/minion_event_182b8c2f71_pub.ipc
[DEBUG   ] SaltEvent PULL socket URI: /var/run/salt/minion/minion_event_182b8c2f71_pull.ipc
[DEBUG   ] salt.crypt.get_rsa_pub_key: Loading public key
[DEBUG   ] Closing AsyncReqChannel instance
Unable to sign_in to master: Attempt to authenticate with the salt master failed with timeout error

На salt-master я попробовал salt '*' test.version, и он просто зависает:

      [root@devmaster ~]# salt '*' test.version
[DEBUG   ] Configuration file path: /etc/salt/master
[DEBUG   ] Reading configuration from /etc/salt/master
[DEBUG   ] Changed git to gitfs in master opts' fileserver_backend list
[DEBUG   ] Using cached minion ID from /etc/salt/minion_id: devmaster
[DEBUG   ] Missing configuration file: /root/.saltrc
[DEBUG   ] MasterEvent PUB socket URI: /var/run/salt/master/master_event_pub.ipc
[DEBUG   ] MasterEvent PULL socket URI: /var/run/salt/master/master_event_pull.ipc
[DEBUG   ] Closing AsyncReqChannel instance

В журналах salt-master (/var/logs/salt) я вижу следующую ошибку:

      2023-07-04 14:36:00,805 [salt.utils.process:1002][ERROR   ][8889] An un-handled exception from the multiprocessing process 'MWorker' was caught:
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/salt/utils/process.py", line 993, in wrapped_run_func
    return run_func()
  File "/usr/lib/python3.6/site-packages/salt/master.py", line 1142, in run
    self.__bind()
  File "/usr/lib/python3.6/site-packages/salt/master.py", line 994, in __bind
    self._handle_payload, io_loop=self.io_loop
  File "/usr/lib/python3.6/site-packages/salt/channel/server.py", line 101, in post_fork
    self.transport.post_fork(self.handle_message, io_loop)
  File "/usr/lib/python3.6/site-packages/salt/transport/zeromq.py", line 418, in post_fork
    self.stream = zmq.eventloop.zmqstream.ZMQStream(self._socket, io_loop=io_loop)
  File "/usr/lib64/python3.6/site-packages/zmq/eventloop/zmqstream.py", line 107, in __init__
    self._init_io_state()
  File "/usr/lib64/python3.6/site-packages/zmq/eventloop/zmqstream.py", line 528, in _init_io_state
    self.io_loop.add_handler(self.socket, self._handle_events, self._state)
  File "/usr/lib/python3.6/site-packages/salt/ext/tornado/ioloop.py", line 730, in add_handler
    self._impl.register(fd, events | self.ERROR)
TypeError: argument must be an int, or have a fileno() method.

и

      2023-07-04 15:05:34,414 [salt.utils.process:1002][ERROR   ][27087] An un-handled exception from the multiprocessing process 'PubServerChannel._publish_daemon' was caught:
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/salt/utils/process.py", line 993, in wrapped_run_func
    return run_func()
  File "/usr/lib64/python3.6/multiprocessing/process.py", line 93, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.6/site-packages/salt/channel/server.py", line 777, in _publish_daemon
    self.transport.publish_daemon(self.publish_payload, self.presence_callback)
  File "/usr/lib/python3.6/site-packages/salt/transport/zeromq.py", line 719, in publish_daemon
    monitor.start_io_loop(ioloop)
  File "/usr/lib/python3.6/site-packages/salt/transport/zeromq.py", line 645, in start_io_loop
    self._monitor_socket, io_loop=io_loop
  File "/usr/lib64/python3.6/site-packages/zmq/eventloop/zmqstream.py", line 107, in __init__
    self._init_io_state()
  File "/usr/lib64/python3.6/site-packages/zmq/eventloop/zmqstream.py", line 528, in _init_io_state
    self.io_loop.add_handler(self.socket, self._handle_events, self._state)
  File "/usr/lib/python3.6/site-packages/salt/ext/tornado/ioloop.py", line 730, in add_handler
    self._impl.register(fd, events | self.ERROR)
TypeError: argument must be an int, or have a fileno() method.

и

      2023-07-04 15:05:24,498 [salt.utils.process:1002][ERROR   ][26725] An un-handled exception from the multiprocessing process 'PubServerChannel._publish_daemon' was caught:
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/salt/utils/process.py", line 993, in wrapped_run_func
    return run_func()
  File "/usr/lib64/python3.6/multiprocessing/process.py", line 93, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.6/site-packages/salt/channel/server.py", line 777, in _publish_daemon
    self.transport.publish_daemon(self.publish_payload, self.presence_callback)
  File "/usr/lib/python3.6/site-packages/salt/transport/zeromq.py", line 719, in publish_daemon
    monitor.start_io_loop(ioloop)
  File "/usr/lib/python3.6/site-packages/salt/transport/zeromq.py", line 645, in start_io_loop
    self._monitor_socket, io_loop=io_loop
  File "/usr/lib64/python3.6/site-packages/zmq/eventloop/zmqstream.py", line 107, in __init__
    self._init_io_state()
  File "/usr/lib64/python3.6/site-packages/zmq/eventloop/zmqstream.py", line 528, in _init_io_state
    self.io_loop.add_handler(self.socket, self._handle_events, self._state)
  File "/usr/lib/python3.6/site-packages/salt/ext/tornado/ioloop.py", line 730, in add_handler
    self._impl.register(fd, events | self.ERROR)
TypeError: argument must be an int, or have a fileno() method.

Эта настройка работала на прошлой неделе, я не вносил никаких изменений в соляные версии. Salt-версия si salt 3005+0na.9d3b3b7 (я тоже не ожидал такого длинного числа).

И соль-мастер, и соль-миньон могут пинговать друг друга.

Любая помощь в этом вопросе высоко ценится.

Спасибо.

Я пытался уничтожить и восстановить мастера соли и его миньона. Сделал ням-обновление на salt-master. Пока ничего не получалось.

0 ответов

Другие вопросы по тегам