Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'Minion' object has no attribute 'remove_periodic_callbback' #54796

Closed
tcarroll25 opened this issue Sep 27, 2019 · 2 comments
Closed
Labels
Duplicate Duplicate of another issue or PR - will be closed
Milestone

Comments

@tcarroll25
Copy link

Hello,

I ran into this issue while deploying version 2019.2.1, it looks like a simple syntax error with the function call to remove_periodic_callbback, accidentally having an extra b in the name.

In order to reproduce the bug you need to have the ping_interval minion config option set.

The symptoms of the bug result in the minion continuously sending start events
because it appears to be caught in loop.

2019-09-27 14:11:24,344 [salt.minion      :1049][CRITICAL][22765] Unexpected error while connecting to 192.168.1.10
Traceback (most recent call last):
  File "/tmp/tmpkxxemiux/pip3/salt/salt/minion.py", line 1027, in _connect_minion
    minion.tune_in(start=False)
  File "/tmp/tmpkxxemiux/pip3/salt/salt/minion.py", line 2733, in tune_in
    self.remove_periodic_callbback('ping', ping_master)
AttributeError: 'Minion' object has no attribute 'remove_periodic_callbback'

Here is a link to the line with the error:

self.remove_periodic_callbback('ping', ping_master)

Salt Version:
           Salt: 2019.2.1

Dependency Versions:
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: Not Installed
      docker-py: Not Installed
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.10
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.6.0
   mysql-python: Not Installed
      pycparser: Not Installed
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 3.6.8 (default, Aug  9 2019, 16:44:18)
   python-gnupg: Not Installed
         PyYAML: 3.13
          PyZMQ: 17.1.2
           RAET: Not Installed
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 4.5.3
            ZMQ: 4.2.5

System Versions:
           dist: centos 7.5.1804 Core
         locale: utf-8
        machine: x86_64
        release: 3.10.0-957.21.3.el7.x86_64
         system: Linux
        version: CentOS Linux 7.5.1804 Core
@dwoz
Copy link
Contributor

dwoz commented Sep 27, 2019

duplicate of #54776

@dwoz dwoz added the Duplicate Duplicate of another issue or PR - will be closed label Sep 27, 2019
@cmcmarrow cmcmarrow added this to the Blocked milestone Sep 27, 2019
@waynew
Copy link
Contributor

waynew commented Oct 1, 2019

Closing this as it's a duplicate

@waynew waynew closed this as completed Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Duplicate of another issue or PR - will be closed
Projects
None yet
Development

No branches or pull requests

4 participants