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

Scheduled runners not executed (again) #36871

Closed
mirceaulinic opened this issue Oct 9, 2016 · 5 comments
Closed

Scheduled runners not executed (again) #36871

mirceaulinic opened this issue Oct 9, 2016 · 5 comments
Labels
Bug broken, incorrect, or confusing behavior ZRELEASED - Carbon
Milestone

Comments

@mirceaulinic
Copy link
Contributor

mirceaulinic commented Oct 9, 2016

Description of Issue/Question

Similar problem to #36021, this time in a different place.

Setup

Same as #36021.

Steps to Reproduce Issue

2016-10-09 06:00:12,156 [salt.utils.schedule                                                        ][ERROR   ][4623] Unhandled exception running redis.disabled
Traceback (most recent call last):
  File "/usr/local/salt/virtualenv/lib/python2.7/site-packages/salt/utils/schedule.py", line 741, in handle_func
    ret['return'] = self.functions[func](*args, **kwargs)
  File "/usr/local/salt/virtualenv/lib/python2.7/site-packages/salt/client/mixins.py", line 101, in wrapper
    False,  # Don't daemonize
  File "/usr/local/salt/virtualenv/lib/python2.7/site-packages/salt/client/mixins.py", line 432, in _proc_function
    return self.low(fun, low)
  File "/usr/local/salt/virtualenv/lib/python2.7/site-packages/salt/client/mixins.py", line 263, in low
    'fun_args': fun_args + ([low['kwargs']] if low.get('kwargs', False) else []),
TypeError: can only concatenate tuple (not "list") to tuple

This time looks like the error is elsewhere: https://github.com/saltstack/salt/blob/v2016.3.3/salt/client/mixins.py#L263

'fun_args': fun_args + ([low['kwargs']] if low.get('kwargs', False) else []),

Should be

'fun_args': list(fun_args) + ([low['kwargs']] if low.get('kwargs', False) else []),

Versions Report

(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)

$ sudo salt --versions-report
Salt Version:
           Salt: 2016.3.3

Dependency Versions:
           cffi: 1.7.0
       cherrypy: Not Installed
       dateutil: 2.2
          gitdb: 0.6.4
      gitpython: 2.0.5
          ioflo: Not Installed
         Jinja2: 2.8
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: 0.21.1
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.8
   mysql-python: 1.2.5
      pycparser: 2.14
       pycrypto: 2.6.1
         pygit2: Not Installed
         Python: 2.7.9 (default, Mar  1 2015, 12:57:24)
   python-gnupg: 0.3.8
         PyYAML: 3.12
          PyZMQ: 15.4.0
           RAET: Not Installed
          smmap: 0.9.0
        timelib: Not Installed
        Tornado: 4.4.2
            ZMQ: 4.1.5

System Versions:
           dist: debian 8.5
        machine: x86_64
        release: 4.1.3-cloudflare
         system: Linux
        version: debian 8.5
@gtmanfred gtmanfred added the Pending-Discussion The issue or pull request needs more discussion before it can be closed or merged label Oct 11, 2016
@gtmanfred gtmanfred added this to the Blocked milestone Oct 11, 2016
@gtmanfred
Copy link
Contributor

This will be fixed in 2016.3.4.

78d16a8
03007be

@mirceaulinic
Copy link
Contributor Author

@gtmanfred please make sure this won't be propagated in Carbon. I've upgraded to 2016.11.0rc1-54-gf3e2148 as per #35443 and got the same error over:

2016-10-25 10:07:29,722 [salt.utils.event                                        ][DEBUG   ][842] Sending event: tag = salt/run/20161025100729538864/ret; data = {'_stamp': '2016-10-25T10:07:29.722382', 'return': 'Exception occurred in runner redis.disabled: Traceback (most recent call last):\n  File "/usr/local/salt/virtualenv/src/salt/salt/client/mixins.py", line 390, in _low\n    data[\'fun_args\'] = args + ([kwargs] if kwargs else [])\nTypeError: can only concatenate tuple (not "list") to tuple\n', 'success': False, 'jid': '20161025100729538864', 'user': 'root', 'fun': 'runner.redis.disabled'}

Which is exactly the same as here and #36021.

https://github.com/saltstack/salt/blob/carbon/salt/client/mixins.py#L390

data['fun_args'] = args + ([kwargs] if kwargs else [])

For sure will fail as args is tuple.

@gtmanfred gtmanfred reopened this Oct 25, 2016
@gtmanfred gtmanfred modified the milestones: Approved, Blocked Oct 25, 2016
@gtmanfred gtmanfred added Bug broken, incorrect, or confusing behavior and removed Pending-Discussion The issue or pull request needs more discussion before it can be closed or merged labels Oct 25, 2016
@gtmanfred
Copy link
Contributor

Looks like there was an error in the merge forward, I have removed the duplicate lines.

#37225

@mirceaulinic
Copy link
Contributor Author

Okay, I made the same change locally and they seem to work fine.

However, I am not aware of all the changes in this branch - could you double check for other changes in 2016.3.4 that should also be in 2016.11?

Thanks!

@gtmanfred
Copy link
Contributor

gtmanfred commented Oct 25, 2016

I already looked at the 2016.3 branch and it was already correct.

And this change will be in rc2 of the 2016.11 release

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 ZRELEASED - Carbon
Projects
None yet
Development

No branches or pull requests

3 participants