盐堆栈TypeError:参数必须为int或具有fileno()方法

时间:2019-08-23 14:31:49

标签: salt-stack salt

运行盐编排状态时出现错误:

salt-run state.orch orch.build.build_linux_azure pillar='{"name": "usazrklxp10712.nix.us.cworld.company.com"}' --out=nested
[WARNING ] /srv/extmod/grains/ciscoaci.py:41: DeprecationWarning: Use of 'salt.utils.is_proxy' detected. This function has been moved to 'salt.utils.platform.is_proxy' as of Salt 2018.3.0. This warning will be removed in Salt Neon.

[WARNING ] /srv/extmod/grains/ciscoprime.py:41: DeprecationWarning: Use of 'salt.utils.is_proxy' detected. This function has been moved to 'salt.utils.platform.is_proxy' as of Salt 2018.3.0. This warning will be removed in Salt Neon.

[WARNING ] /srv/extmod/runners/company_certs.py:124: DeprecationWarning: Use of 'salt.utils.is_linux' detected. This function has been moved to 'salt.utils.platform.is_linux' as of Salt 2018.3.0. This warning will be removed in Salt Neon.

[ERROR   ] Exception in callback <functools.partial object at 0x7fc79f5dd418>
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/tornado/ioloop.py", line 591, in _run_callback
    ret = callback()
  File "/usr/lib64/python2.7/site-packages/tornado/stack_context.py", line 274, in null_wrapper
    return fn(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/tornado/ioloop.py", line 597, in <lambda>
    self.add_future(ret, lambda f: f.result())
  File "/usr/lib64/python2.7/site-packages/tornado/concurrent.py", line 214, in result
    raise_exc_info(self._exc_info)
  File "/usr/lib64/python2.7/site-packages/tornado/gen.py", line 230, in wrapper
    yielded = next(result)
  File "/usr/lib/python2.7/site-packages/salt/crypt.py", line 599, in _authenticate
    io_loop=self.io_loop)
  File "/usr/lib/python2.7/site-packages/salt/transport/client.py", line 108, in factory
    return salt.transport.zeromq.AsyncZeroMQReqChannel(opts, **kwargs)
  File "/usr/lib/python2.7/site-packages/salt/transport/zeromq.py", line 141, in __new__
    obj.__singleton_init__(opts, **kwargs)
  File "/usr/lib/python2.7/site-packages/salt/transport/zeromq.py", line 205, in __singleton_init__
    kwargs={'io_loop': self._io_loop})
  File "/usr/lib/python2.7/site-packages/salt/transport/zeromq.py", line 985, in __init__
    super(AsyncReqMessageClientPool, self).__init__(AsyncReqMessageClient, opts, args=args, kwargs=kwargs)
  File "/usr/lib/python2.7/site-packages/salt/transport/__init__.py", line 71, in __init__
    self.message_clients = [tgt(*args, **kwargs) for _ in range(sock_pool_size)]
  File "/usr/lib/python2.7/site-packages/salt/transport/zeromq.py", line 1032, in __init__
    self._init_socket()
  File "/usr/lib/python2.7/site-packages/salt/transport/zeromq.py", line 1086, in _init_socket
    self.stream = zmq.eventloop.zmqstream.ZMQStream(self.socket, io_loop=self.io_loop)
  File "/usr/lib64/python2.7/site-packages/zmq/eventloop/zmqstream.py", line 107, in __init__
    self._init_io_state()
  File "/usr/lib64/python2.7/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/lib64/python2.7/site-packages/tornado/ioloop.py", line 703, in add_handler
    self._impl.register(fd, events | self.ERROR)
TypeError: argument must be an int, or have a fileno() method.

这是我正在使用的命令:

salt-run state.orch orch.build.build_linux_azure pillar='{"name": "usazrklxp10712.nix.us.cworld.company.com"}' --out=nested

我正在使用盐3.4.1,并且今天开始出现错误,原因尚不清楚。上面的错误也会出现在主日志中。

这是来自版本报告的盐主版本:      盐大师-版本报告     盐版本:                盐:2018.3.4

Dependency Versions:
           cffi: Not Installed
       cherrypy: 5.6.0
       dateutil: Not Installed
      docker-py: Not Installed
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.8.1
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.6
   mysql-python: Not Installed
      pycparser: Not Installed
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 2.7.13 (default, Mar 30 2018, 15:31:59)
   python-gnupg: Not Installed
         PyYAML: 3.11
          PyZMQ: 14.5.0
           RAET: Not Installed
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.0.5

System Versions:
           dist: redhat 6.9 Santiago
         locale: UTF-8
        machine: x86_64
        release: 2.6.32-696.16.1.el6.x86_64
         system: Linux
        version: Red Hat Enterprise Linux Server 6.9 Santiago

这是今天开始发生的,因为另一个用户尚未登录并确定原因。我该如何解决这个问题?

0 个答案:

没有答案