<div dir="ltr">Hi Glen,<br><br>Can't try that since I'm using rhnsd and not osad.<br><br>Thanks<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-27 15:28 GMT+00:00 Glen Collins <span dir="ltr"><<a href="mailto:glenc2004@comcast.net" target="_blank">glenc2004@comcast.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Times New Roman;font-size:12pt;color:#000000"><div>Hi <span style="font-family:Helvetica,Arial,sans-serif">Paulo,</span></div><div><span style="font-family:Helvetica,Arial,sans-serif"><br></span></div><div><span style="font-family:Helvetica,Arial,sans-serif">   Why don't you try this on the client....</span></div><div><span style="font-family:Helvetica,Arial,sans-serif"><br></span></div><div><span style="font-family:Helvetica,Arial,sans-serif">service osad stop</span></div><div><span style="font-family:Helvetica,Arial,sans-serif">rm -rf /etc/sysconfig/rhn/osad-auth.conf</span></div><div><span style="font-family:Helvetica,Arial,sans-serif">service osad start</span></div><div><span style="font-family:Helvetica,Arial,sans-serif">(Wait for 2 minutes) and run (On the client)</span></div><div><span style="font-family:Helvetica,Arial,sans-serif">/usr/sbin/rhn_check</span></div><div><br></div><div>I've had the same issues and just restarting OSAD didn't do it for me. But when I removed the auth file, that seemed to fix things. Not elegant in any sort of means but it seems to work. Have not tried it long term since I'm putting this "fix" into place right now. I guess this is what happens when you cobble a product together and "make it work". I have found jabber to be a PITA!</div><div><br></div><div>Anyways, hope this helps!</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Glen Collins</div><div><br></div><hr></font></span><div><div class="h5"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><div dir="ltr">It's not permissions:<div><br></div><div><div>[root@zbx-prx-elk-04 ~]# rhn-actions-control --report</div><div>deploy is enabled</div><div>diff is enabled</div><div>upload is enabled</div><div>mtime_upload is enabled</div><div>run is enabled</div></div><div><br></div><div>It's not SSL either, we have our systems configured to speak in the clear while troubleshooting this issue. Flipping over to HTTPS doesn't change anything.</div><div><br></div><div>This particular server has three tasks pending now: two config file pushes and one remote command (just to run "date").  Here's the output of rhn_check -vvvv:</div><div><br></div><div><div>[root@zbx-prx-elk-04 ~]# rhn_check -vvvv</div><div>D: opening  db environment /var/lib/rpm cdb:mpool:joinenv</div><div>D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0</div><div>D: locked   db index       /var/lib/rpm/Packages</div><div>D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key</div><div>D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key</div><div>D: loading keyring from rpmdb</div><div>D: opening  db index       /var/lib/rpm/Name rdonly mode=0x0</div><div>D: added key gpg-pubkey-b6f8c6bf-48853124 to keyring</div><div>D: added key gpg-pubkey-8db2536f-4ade0b9d to keyring</div><div>D: added key gpg-pubkey-66fd4949-4803fe57 to keyring</div><div>D: added key gpg-pubkey-c105b9de-4e0fd3a3 to keyring</div><div>D: added key gpg-pubkey-217521f6-45e8a532 to keyring</div><div>D: added key gpg-pubkey-0608b895-4bd22942 to keyring</div><div>D: added key gpg-pubkey-863a853d-4f55f54d to keyring</div><div>D: added key gpg-pubkey-79ea5ed4-508d25a6 to keyring</div><div>D: Using legacy gpg-pubkey(s) from rpmdb</div><div>D: opening  db index       /var/lib/rpm/Providename rdonly mode=0x0</div><div>D: do_call packages.checkNeedUpdate('rhnsd=1',){}</div><div>D: opening  db environment /var/lib/rpm cdb:mpool:joinenv</div><div>D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0</div><div>D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key</div><div>D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key</div><div>D: loading keyring from rpmdb</div><div>D: opening  db index       /var/lib/rpm/Name rdonly mode=0x0</div><div>D: added key gpg-pubkey-b6f8c6bf-48853124 to keyring</div><div>D: added key gpg-pubkey-8db2536f-4ade0b9d to keyring</div><div>D: added key gpg-pubkey-66fd4949-4803fe57 to keyring</div><div>D: added key gpg-pubkey-c105b9de-4e0fd3a3 to keyring</div><div>D: added key gpg-pubkey-217521f6-45e8a532 to keyring</div><div>D: added key gpg-pubkey-0608b895-4bd22942 to keyring</div><div>D: added key gpg-pubkey-863a853d-4f55f54d to keyring</div><div>D: added key gpg-pubkey-79ea5ed4-508d25a6 to keyring</div><div>D: Using legacy gpg-pubkey(s) from rpmdb</div><div>D: opening  db index       /var/lib/rpm/Providename rdonly mode=0x0</div><div>D: closed   db index       /var/lib/rpm/Providename</div><div>D: closed   db index       /var/lib/rpm/Name</div><div>D: closed   db index       /var/lib/rpm/Packages</div><div>D: closed   db environment /var/lib/rpm</div><div>Loaded plugins: fastestmirror, rhnplugin</div><div>Config time: 0.040</div><div>D: login(forceUpdate=False) invoked</div><div>D: readCachedLogin invoked</div><div>D: Checking pickled loginInfo, currentTime=1422370609.99, createTime=1422370587.99, expire-offset=3600.0</div><div>D: readCachedLogin(): using pickled loginInfo set to expire at 1422374187.99</div><div>D: rpcServer: Calling XMLRPC up2date.listChannels</div><div>Setting up Package Sacks</div><div>Loading mirror speeds from cached hostfile</div><div>pkgsack time: 0.071</div><div>rpmdb time: 0.000</div><div>Loading mirror speeds from cached hostfile</div><div>repo time: 0.000</div><div>D: local action status: (0, 'rpm database not modified since last update (or package list recently updated)', {})</div><div>D: rpcServer: Calling XMLRPC registration.welcome_message</div><div>D: closed   db index       /var/lib/rpm/Providename</div><div>D: closed   db index       /var/lib/rpm/Name</div><div>D: closed   db index       /var/lib/rpm/Packages</div><div>D: closed   db environment /var/lib/rpm</div></div><div><br></div><div>Paulo: To answer your question about the API, spacecmd calls it extensively; and you can look up pending tasks by ID.</div><div><br></div><div><div>spacecmd {SSM:0}> schedule_details 578593</div><div>ID:        578593</div><div>Action:    Remote Command on <a href="http://zbx-prx-elk-04.company.com" target="_blank">zbx-prx-elk-04.company.com</a>.</div><div>User:      admincswingler</div><div>Date:      20150126T16:36:00</div><div><br></div><div>Completed:   0</div><div>Failed:      0</div><div>Pending:     1</div><div><br></div><div>Pending Systems</div><div>---------------</div><div><a href="http://zbx-prx-elk-04.company.com" target="_blank">zbx-prx-elk-04.company.com</a></div><div>spacecmd {SSM:0}> schedule_details 578588</div><div>ID:        578588</div><div>Action:    Deploy config files to system</div><div>User:      admincswingler</div><div>Date:      20150126T16:22:00</div><div><br></div><div>Completed:   0</div><div>Failed:      0</div><div>Pending:     1</div><div><br></div><div>Pending Systems</div><div>---------------</div><div><a href="http://zbx-prx-elk-04.company.com" target="_blank">zbx-prx-elk-04.company.com</a></div><div>spacecmd {SSM:0}> schedule_details 578586</div><div>ID:        578586</div><div>Action:    Deploy config files to system</div><div>User:      admincswingler</div><div>Date:      20150126T16:18:00</div><div><br></div><div>Completed:   0</div><div>Failed:      0</div><div>Pending:     1</div><div><br></div><div>Pending Systems</div><div>---------------</div><div><a href="http://zbx-prx-elk-04.company.com" target="_blank">zbx-prx-elk-04.company.com</a></div><div>spacecmd {SSM:0}></div></div><div><br></div><div>Still scratching my head on this one, and getting rather frustrated :)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 27, 2015 at 7:02 AM, Paulo Silva <span dir="ltr"><<a href="mailto:paulojjs@gmail.com" target="_blank">paulojjs@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>I'm checking pending events using the web interface (URL /rhn/systems/details/history/Pending.do?sid=1000010296) and it shows 2 pending events: and Hardware Refresh and an Errata Update.<br><div><br></div></div>The sid seams to be correct with the server I'm running my commands:<br><div><br></div># grep 1000010296 /etc/sysconfig/rhn/systemid <br><value><string>ID-1000010296</string></value><br><div><br></div></div>Is there a way to check for pending events using the API?<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-27 12:45 GMT+00:00 Alexander Innes <span dir="ltr"><<a href="mailto:senni@necurity.co.uk" target="_blank">senni@necurity.co.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Just to make sure im not thinking of the wrong feture are you trying to use to remote commands?<br></div>Systems -> System -> somethin -> remote command (or a different one so i can test in our environment :) )<br><div><br></div></div>from that output its not seeing anything as you said :o<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 27 January 2015 at 12:16, Paulo Silva <span dir="ltr"><<a href="mailto:paulojjs@gmail.com" target="_blank">paulojjs@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm having the same issue, running rhn_check does this:<br><div><br></div># rhn_check -vvv <br>D: opening  db environment /var/lib/rpm cdb:mpool:joinenv<br>D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0<br>D: locked   db index       /var/lib/rpm/Packages<br>D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key<br>D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key<br>D: loading keyring from rpmdb<br>D: opening  db index       /var/lib/rpm/Name rdonly mode=0x0<br>D: added key gpg-pubkey-c105b9de-4e0fd3a3 to keyring<br>D: added key gpg-pubkey-b5c61460-41667588 to keyring<br>D: added key gpg-pubkey-6b8d79e6-3f49313d to keyring<br>D: added key gpg-pubkey-0608b895-4bd22942 to keyring<br>D: added key gpg-pubkey-863a853d-4f55f54d to keyring<br>D: Using legacy gpg-pubkey(s) from rpmdb<br>D: opening  db index       /var/lib/rpm/Providename rdonly mode=0x0<br>D: do_call packages.checkNeedUpdate('rhnsd=1',){}<br>D: opening  db environment /var/lib/rpm cdb:mpool:joinenv<br>D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0<br>D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key<br>D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key<br>D: loading keyring from rpmdb<br>D: opening  db index       /var/lib/rpm/Name rdonly mode=0x0<br>D: added key gpg-pubkey-c105b9de-4e0fd3a3 to keyring<br>D: added key gpg-pubkey-b5c61460-41667588 to keyring<br>D: added key gpg-pubkey-6b8d79e6-3f49313d to keyring<br>D: added key gpg-pubkey-0608b895-4bd22942 to keyring<br>D: added key gpg-pubkey-863a853d-4f55f54d to keyring<br>D: Using legacy gpg-pubkey(s) from rpmdb<br>D: opening  db index       /var/lib/rpm/Providename rdonly mode=0x0<br>D: closed   db index       /var/lib/rpm/Providename<br>D: closed   db index       /var/lib/rpm/Name<br>D: closed   db index       /var/lib/rpm/Packages<br>D: closed   db environment /var/lib/rpm<br>Loaded plugins: etckeeper, fastestmirror, rhnplugin<br>Config time: 0.073<br>D: login(forceUpdate=False) invoked<br>D: readCachedLogin invoked<br>D: Checking pickled loginInfo, currentTime=1422360920.07, createTime=1422360336.74, expire-offset=3600.0<br>D: readCachedLogin(): using pickled loginInfo set to expire at 1422363936.74<br>D: rpcServer: Calling XMLRPC up2date.listChannels<br>This system is receiving updates from RHN Classic or Red Hat Satellite.<br>rpmdb time: 0.000<br>Loading mirror speeds from cached hostfile<br>repo time: 0.002<br>Setting up Package Sacks<br>pkgsack time: 0.253<br>D: local action status: (0, 'rpm database not modified since last update (or package list recently updated)', {})<br>D: rpcServer: Calling XMLRPC registration.welcome_message<br>D: closed   db index       /var/lib/rpm/Providename<br>D: closed   db index       /var/lib/rpm/Name<br>D: closed   db index       /var/lib/rpm/Packages<br>D: closed   db environment /var/lib/rpm<br><div><br></div></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">2015-01-27 10:53 GMT+00:00 Alexander Innes <span dir="ltr"><<a href="mailto:senni@necurity.co.uk" target="_blank">senni@necurity.co.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Schedual the action then on the server do rhn-chck -vvv. It will tell you what the client's doing, my gut feeling is either SSL errors OR permsions (rhn-actions-control is it?)<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On 26 January 2015 at 23:16, Chris Swingler <span dir="ltr"><<a href="mailto:chris@chrisswingler.com" target="_blank">chris@chrisswingler.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hey Spacewalk-list!<div><br></div><div>I have quite a few systems (I haven't dug into seeing if there is any consistency in CentOS versions or the RHN tools) that just plain do not seem to get tasks back from the Spacewalk server.  We're running Spacewalk 2.2 on CentOS release 6.5 (Final).</div><div><br></div><div>I can create a simple task in Spacewalk, like just print the output of "date", and an rhn_check never seems to execute it.  It shows up under Events > Pending, the SystemIDs match, but it never moves.</div><div><br></div><div>Running a packet capture to watch the transaction, it looks like Spacewalk itself isn't even sending the task to the remote system. Spacewalk happily replies with an HTTP 200 and an empty payload.</div><div><br></div><div><pre style="font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;width:4658px;color:rgb(51,51,51);line-height:16px"><div>HTTP/1.1 200 OK
</div><div>Date: Mon, 26 Jan 2015 22:47:55 GMT
</div><div>Server: Apache
</div><div>Content-Length: 126
</div><div>X-RHN-Server-Capability: registration.finish_message(1)=1
</div><div>X-RHN-Server-Capability: registration.remaining_subscriptions(1)=1
</div><div>X-RHN-Server-Capability: abrt(1)=1
</div><div>X-RHN-Server-Capability: registration.update_contact_info(1)=1
</div><div>X-RHN-Server-Capability: staging_content(1)=1
</div><div>X-RHN-Server-Capability: applet.has_base_channel(1)=1
</div><div>X-RHN-Server-Capability: registration.smbios(1)=1
</div><div>X-RHN-Server-Capability: registration.extended_update_support(1)=1
</div><div>X-RHN-Server-Capability: rhncfg.filetype.directory(1)=1
</div><div>X-RHN-Server-Capability: registration.update_systemid(1)=1
</div><div>X-RHN-Server-Capability: registration.register_osad(1)=1
</div><div>X-RHN-Server-Capability: registration.delta_packages(1)=1
</div><div>X-RHN-Server-Capability: cpu_sockets(1)=1
</div><div>X-RHN-Server-Capability: ipv6(1)=1
</div><div>X-RHN-Server-Capability: rhncfg.content.base64_decode(1)=1
</div><div>X-RHN-Server-Capability: xmlrpc.packages.extended_profile(1-2)=1
</div><div>X-RHN-Server-Capability: xmlrpc.errata.patch_names(1)=1
</div><div>X-RHN-Server-Capability: xmlrpc.packages.checksums(1)=1
</div><div>X-RHN-Server-Capability: xmlrpc.login.extra_data(1)=1
</div><div>X-RHN-Proxy-Version: 0
</div><div>X-Transport-Info: Extended Capabilities Transport (C) Red Hat, Inc (version 2.5.72-1.el6)
</div><div>X-RHN-Client-Version: 1
</div><div>Connection: close
</div><div>Content-Type: text/xml
</div><div> 
</div><div><?xml version='1.0'?>
</div><div><methodResponse>
</div><div><params>
</div><div><param>
</div><div><value><string></string></value>
</div><div></param>
</div><div></params>
</div><div></methodResponse></div><div><br></div><div><br></div></pre></div><div>Full transaction at </div><div><br></div><div><a href="https://gist.github.com/cswingler/f718abcb9ce290adec29" target="_blank">https://gist.github.com/cswingler/f718abcb9ce290adec29</a><br></div><div><br></div><div>rhn_server_xmlrpc.log simply shows:</div><div><br></div><div><div>2015/01/26 16:52:07 -05:00 30997 <a href="http://172.29.7.14" target="_blank">172.29.7.14</a>: xmlrpc/queue.get(1000015056, 2, 'checkins enabled')</div><div>2015/01/26 16:52:07 -05:00 30998 <a href="http://172.29.7.14" target="_blank">172.29.7.14</a>: xmlrpc/up2date.listChannels(1000015056,)</div><div>2015/01/26 16:52:08 -05:00 30995 <a href="http://172.29.7.14" target="_blank">172.29.7.14</a>: xmlrpc/registration.welcome_message('lang: None',)</div></div><div><br></div><div>Any basic things I should be checking? I've tried updating the spacewalk/rhn tools on the agent, restarting Spacewalk itself, and nothing seems to make a change. This issue, as far as I can recall, did not seem to appear until after we upgraded to 2.2.</div><div><br></div><div>Some systems seem just fine, and I can't seem to find a consistent reason why some succeed and others fail.</div><div><br></div><div>Thanks!</div></div>
<br></div></div>_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com" target="_blank">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br></blockquote></div><br></div>
<br>_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com" target="_blank">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br></blockquote></div><br><br clear="all"><br></div></div><span><span color="#888888" style="color:#888888">-- <br><div>Paulo Silva <<a href="mailto:paulojjs@gmail.com" target="_blank">paulojjs@gmail.com</a>></div>
</span></span></div>
<br>_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com" target="_blank">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com" target="_blank">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br></blockquote></div><br><br clear="all"><br>-- <br><div>Paulo Silva <<a href="mailto:paulojjs@gmail.com" target="_blank">paulojjs@gmail.com</a>></div>
</div>
</div></div><br>_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com" target="_blank">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br></blockquote></div><br></div>
<br>_______________________________________________<br>Spacewalk-list mailing list<br><a href="mailto:Spacewalk-list@redhat.com" target="_blank">Spacewalk-list@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></div><div><br></div></div></div></div></div><br>_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Paulo Silva <<a href="mailto:paulojjs@gmail.com">paulojjs@gmail.com</a>></div>
</div>