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

Minion unable to start after upgrade to 2014.1.0 #10969

Closed
octo47 opened this issue Mar 5, 2014 · 4 comments
Closed

Minion unable to start after upgrade to 2014.1.0 #10969

octo47 opened this issue Mar 5, 2014 · 4 comments
Labels
Bug broken, incorrect, or confusing behavior Duplicate Duplicate of another issue or PR - will be closed

Comments

@octo47
Copy link

octo47 commented Mar 5, 2014

It fails with exception:

2014-03-05 17:44:45,805 [salt.log.setup   ][ERROR   ] An un-handled exception was caught by salt's global exception handler:
StopIteration:
Traceback (most recent call last):
  File "/usr/bin/salt-minion", line 14, in <module>
    salt_minion()
  File "/usr/lib/pymodules/python2.7/salt/scripts.py", line 35, in salt_minion
    minion.start()
  File "/usr/lib/pymodules/python2.7/salt/__init__.py", line 224, in start
    self.minion.tune_in()
  File "/usr/lib/pymodules/python2.7/salt/minion.py", line 501, in tune_in
    minion['generator'].next()
StopIteration

salt-minion --versions-report
Salt: 2014.1.0
Python: 2.7.3 (default, Feb 27 2014, 19:58:35)
Jinja2: 2.7-dev
M2Crypto: 0.21.1
msgpack-python: 0.1.10
msgpack-pure: Not Installed
pycrypto: 2.4.1
PyYAML: 3.10
PyZMQ: 13.0.0
ZMQ: 3.2.2

@octo47
Copy link
Author

octo47 commented Mar 5, 2014

Thats happens when master in minion config specified as master: [ some.host ]

@juniorctl
Copy link

I have the same error since the upgrade to 2014.1.0 but I can track it down to when the master configuration in /etc/salt/minion spans more than one line. For example:

# cat /etc/salt/minion
master: 
  - salt.master.example.com
id: salt.minion.example.com

# salt-minion -l debug
...
[ERROR   ] An un-handled exception was caught by salt's global exception handler:
StopIteration: 
Traceback (most recent call last):
  File "/usr/bin/salt-minion", line 14, in <module>
    salt_minion()
  File "/usr/lib/python2.6/site-packages/salt/scripts.py", line 35, in salt_minion
    minion.start()
  File "/usr/lib/python2.6/site-packages/salt/__init__.py", line 224, in start
    self.minion.tune_in()
  File "/usr/lib/python2.6/site-packages/salt/minion.py", line 501, in tune_in
    minion['generator'].next()
StopIteration

When the master configuration is all on one line as shown below everything works fine.

# cat /etc/salt/minion
master: salt.master.example.com
id: salt.minion.example.com
# salt-minion --versions-report
           Salt: 2014.1.0
         Python: 2.6.9 (unknown, Oct 29 2013, 19:58:13)
         Jinja2: 2.6
       M2Crypto: 0.20.2
 msgpack-python: 0.1.13
   msgpack-pure: Not Installed
       pycrypto: 2.6.1
         PyYAML: 3.10
          PyZMQ: 2.2.0.1
            ZMQ: 3.2.4

@basepi
Copy link
Contributor

basepi commented Mar 5, 2014

Right, both of these are a known issue, which has since been fixed. (Fix will be in 2014.1.1) Basically, when you define the master configuration option, it triggers multi-master functionality, which had a regression in 2014.1.0. Fixed in #10868 and #10937.

@basepi basepi closed this as completed Mar 5, 2014
@basepi basepi added Bug labels Mar 5, 2014
@basepi basepi added this to the Outstanding Bugs milestone Mar 5, 2014
@cachedout
Copy link
Contributor

#10937 is the correct fix, for what it's worth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior Duplicate Duplicate of another issue or PR - will be closed
Projects
None yet
Development

No branches or pull requests

4 participants