returner question

103 views
Skip to first unread message

Kent Tenney

unread,
Apr 13, 2012, 3:26:51 PM4/13/12
to salt-...@googlegroups.com
Howdy,

I'm having trouble with specifying a returner.

On the minion, If I change redis_return.py __opts__['redis.host'] to my url
and run:

# salt lappy cmd.run 'ls' --return=redis_return
it works as expected

I copied redis_return.py to my_return.py and expected this to work
# salt lappy cmd.run 'ls' --return=my_return

but it doesn't
I have restarted the minion.

What am I missing?

Thanks,
Kent

Thomas S Hatch

unread,
Apr 13, 2012, 3:40:18 PM4/13/12
to salt-...@googlegroups.com
Yes, that should work, are there any errors or debug messages with the loader system when you start up the minion? if you start the minion with -l debug does anything odd show up?

Kent Tenney

unread,
Apr 13, 2012, 4:06:55 PM4/13/12
to salt-...@googlegroups.com
lappy# /usr/lib/python2.7/dist-packages/salt/returners/redis_return.py
copied to
lappy# /usr/lib/python2.7/dist-packages/salt/returners/getatdata.py

# sudo salt-minion -ldebug
<snip>
14:57:44,106 [salt.minion ][INFO ] Authentication with master successful!
14:57:44,107 [salt.crypt ][DEBUG ] Loaded minion key:
/etc/salt/pki/minion.pem
14:57:44,223 [salt.crypt ][DEBUG ] Decrypting the current master AES key
14:57:44,224 [salt.crypt ][DEBUG ] Loaded minion key:
/etc/salt/pki/minion.pem

on master
# salt lappy cmd.run 'ls' --return=getatdata

on minion
<output>
14:58:24,909 [salt.minion ][INFO ] Returning information for
job: 20120413145815955271
14:58:25,001 [salt.minion ][ERROR ] The return failed for job
20120413145815955271 'getatdata'

on master
15:05:48,359 [salt.master ][INFO ] Clear payload received with
command publish
15:05:48,360 [salt.master ][INFO ] User ktenney Published
command cmd.run with jid 20120413150548357419
15:05:48,360 [salt.master ][DEBUG ] Published command details
{'tgt_type': 'glob', 'jid': '20120413150548357419', 'tgt': 'lappy',
'ret': 'getatdata', 'user': 'ktenney', 'arg': ['ls'], 'fun':
'cmd.run'}
15:05:54,005 [salt.master ][INFO ] Clear payload received with
command publish
15:05:54,007 [salt.master ][INFO ] User ktenney Published
command saltutil.find_job with jid 20120413150554000237
15:05:54,007 [salt.master ][DEBUG ] Published command details
{'tgt_type': 'glob', 'jid': '20120413150554000237', 'tgt': 'lappy',
'ret': '', 'user': 'ktenney', 'arg': ['20120413150548357419'], 'fun':
'saltutil.find_job'}

Thomas S Hatch

unread,
Apr 13, 2012, 4:25:09 PM4/13/12
to salt-...@googlegroups.com
My guess here is that the 'getdata' returner is not getting loaded, what version of Salt is this?

Kent Tenney

unread,
Apr 13, 2012, 4:51:10 PM4/13/12
to salt-...@googlegroups.com
On Fri, Apr 13, 2012 at 3:25 PM, Thomas S Hatch <that...@gmail.com> wrote:
> My guess here is that the 'getdata' returner is not getting loaded, what
> version of Salt is this?

Seems to be Frankenversion 0.0
The code is from trunk, but old files are showing up, maybe
inconsistency in usage of --install-layout=deb, other foolishness.

I'll clean house.

Thanks,
Kent

Reply all
Reply to author
Forward
0 new messages