Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 524614

Summary: osad: verify action doesn't work
Product: Red Hat Satellite 5 Reporter: Petr Sklenar <psklenar>
Component: OtherAssignee: Jan Pazdziora (Red Hat) <jpazdziora>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: high Docs Contact:
Priority: high    
Version: 530CC: tao, tlestach, xdmoon
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-21 15:38:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 462714    

Description Petr Sklenar 2009-09-21 13:50:05 UTC
Description of problem:
client registered to to sat-530-20090820.1 doesn't execute my actions. Only osad-ping works.

Version-Release number of selected component (if applicable):
530-sat-20090820.1 
its in kvm-guest, arch x86_64, installed on rhel54

client: osad-5.9.10-5.el5sat

How reproducible:
only with satellite dhcp-lab-183.englab.brq.redhat.com

Steps to Reproduce:
1. register client to satellite
2. osad-ping that client > it works
3. schedule verify/install some packages
4. its all the time in pending action
  
Actual results:
osa status ping works, /var/log/osad:

2009-09-21 15:47:13 jabber_lib.process: Reading 1024 bytes from ssl socket
2009-09-21 15:47:13 jabber_lib.process: Read 480 bytes
2009-09-21 15:47:13 jabber_lib._orig_dispatch: <message from='rhn-dispatcher-sat.brq.redhat.com/superclient' type='normal' to='osad-0b9b762d9e.brq.redhat.com/osad'><x xmlns = 'http://jabber.rhn.redhat.com/jabber/signed'  action='http://jabber.rhn.redhat.com/jabber/message/request/ping' timestamp='1253541091' jid='rhn-dispatcher-sat.brq.redhat.com/superclient' serial='c21b27-37395' signature='3e17bbe88fbd199d9d00d7368ab2da15fe2c53bf' /></message>
2009-09-21 15:47:13 jabber_lib.dispatch: <message from='rhn-dispatcher-sat.brq.redhat.com/superclient' type='normal' to='osad-0b9b762d9e.brq.redhat.com/osad'><x xmlns = 'http://jabber.rhn.redhat.com/jabber/signed'  action='http://jabber.rhn.redhat.com/jabber/message/request/ping' timestamp='1253541091' jid='rhn-dispatcher-sat.brq.redhat.com/superclient' serial='c21b27-37395' signature='3e17bbe88fbd199d9d00d7368ab2da15fe2c53bf' /></message>
2009-09-21 15:47:13 jabber_lib.cleanup_expired_callbacks: 
2009-09-21 15:47:13 jabber_lib._expire_callbacks_hash: 1253540833.73
2009-09-21 15:47:13 jabber_lib._expire_callbacks_hash: 1253540833.73
2009-09-21 15:47:13 jabber_lib._expire_callbacks_hash: 1253540833.73
2009-09-21 15:47:13 jabber_lib._expire_callbacks_list: [[<bound method Client._roster_callback of <osad.osad_client.Client instance at 0xb7c22fac>>, None, None]] 1253540833.73
2009-09-21 15:47:13 jabber_lib._expire_callbacks_hash: 1253540833.73
2009-09-21 15:47:13 jabber_lib._expire_callbacks_hash: 1253540833.73
2009-09-21 15:47:13 jabber_lib._expire_callbacks_hash: 1253540833.73
2009-09-21 15:47:13 jabber_lib._expire_callbacks_list: [[<bound method Client._message_callback of <osad.osad_client.Client instance at 0xb7c22fac>>, None, None]] 1253540833.73
2009-09-21 15:47:13 jabber_lib._expire_callbacks_hash: 1253540833.73
2009-09-21 15:47:13 jabber_lib._expire_callbacks_hash: 1253540833.73
2009-09-21 15:47:13 jabber_lib._expire_callbacks_hash: 1253540833.73
2009-09-21 15:47:13 jabber_lib._expire_callbacks_list: [[<bound method Client._presence_callback of <osad.osad_client.Client instance at 0xb7c22fac>>, None, None]] 1253540833.73
2009-09-21 15:47:13 jabber_lib._get_callbacks: <message from='rhn-dispatcher-sat.brq.redhat.com/superclient' type='normal' to='osad-0b9b762d9e.brq.redhat.com/osad'><x xmlns = 'http://jabber.rhn.redhat.com/jabber/signed'  action='http://jabber.rhn.redhat.com/jabber/message/request/ping' timestamp='1253541091' jid='rhn-dispatcher-sat.brq.redhat.com/superclient' serial='c21b27-37395' signature='3e17bbe88fbd199d9d00d7368ab2da15fe2c53bf' /></message>
2009-09-21 15:47:13 jabber_lib.dispatch: Calling callback <bound method Client._message_callback of <osad.osad_client.Client instance at 0xb7c22fac>> <message from='rhn-dispatcher-sat.brq.redhat.com/superclient' type='normal' to='osad-0b9b762d9e.brq.redhat.com/osad'><x xmlns = 'http://jabber.rhn.redhat.com/jabber/signed'  action='http://jabber.rhn.redhat.com/jabber/message/request/ping' timestamp='1253541091' jid='rhn-dispatcher-sat.brq.redhat.com/superclient' serial='c21b27-37395' signature='3e17bbe88fbd199d9d00d7368ab2da15fe2c53bf' /></message>
2009-09-21 15:47:13 osad_client._message_callback: 
2009-09-21 15:47:13 jabber_lib._check_signature_from_message: <message from='rhn-dispatcher-sat.brq.redhat.com/superclient' type='normal' to='osad-0b9b762d9e.brq.redhat.com/osad'><x xmlns = 'http://jabber.rhn.redhat.com/jabber/signed'  action='http://jabber.rhn.redhat.com/jabber/message/request/ping' timestamp='1253541091' jid='rhn-dispatcher-sat.brq.redhat.com/superclient' serial='c21b27-37395' signature='3e17bbe88fbd199d9d00d7368ab2da15fe2c53bf' /></message>
2009-09-21 15:47:13 osad_client._check_signature: Signature args ['dfe3a49d12f924b728f75c05b079610bda1ac1c5', 'osad-0b9b762d9e.brq.redhat.com/osad', u'1253541091', u'c21b27-37395', u'http://jabber.rhn.redhat.com/jabber/message/request/ping', u'rhn-dispatcher-sat.brq.redhat.com/superclient']
2009-09-21 15:47:13 osad_client._message_callback: Ping request
2009-09-21 15:47:13 osad_client._create_signature: rhn-dispatcher-sat.brq.redhat.com/superclient http://jabber.rhn.redhat.com/jabber/message/response/ping
2009-09-21 15:47:13 osad_client._create_signature: Signature args ['dfe3a49d12f924b728f75c05b079610bda1ac1c5', rhn-dispatcher-sat.brq.redhat.com/superclient, 'e0a4dca1e25a04d3', 1253540833, '5df18d-4', 'http://jabber.rhn.redhat.com/jabber/message/response/ping', 'osad-0b9b762d9e.brq.redhat.com/osad']


verify action shows logs in client, /var/log/osad :

2009-09-21 15:24:17 jabber_lib.process: select() returned
2009-09-21 15:24:17 jabber_lib.process: Reading 1024 bytes from ssl socket
2009-09-21 15:24:17 jabber_lib.process: Read 1 bytes
2009-09-21 15:24:24 jabber_lib.process: None
2009-09-21 15:24:24 jabber_lib.process: before select(); timeout None
2009-09-21 15:25:21 jabber_lib.process: select() returned
2009-09-21 15:25:21 jabber_lib.process: Reading 1024 bytes from ssl socket
2009-09-21 15:25:21 jabber_lib.process: Read 1 bytes
2009-09-21 15:25:29 jabber_lib.process: None
2009-09-21 15:25:29 jabber_lib.process: before select(); timeout None
2009-09-21 15:26:20 jabber_lib.process: select() returned

Expected results:
verify action should work

Additional info:

When I reregister to satellite sun-x4440-01.rhts.eng.bos.redhat.com, action works as expected. 

I can see this issue only on dhcp-lab-183.englab.brq.redhat.com

Comment 2 Petr Sklenar 2009-09-21 13:54:41 UTC
There are only following actions (only woring ping) in osad log on server side:

# cat  /var/log/rhn/osa-dispatcher.log
2009/09/18 12:31:00 -04:00 3172 0.0.0.0: osad/dispatcher_client._message_callback('Ping response',)
2009/09/18 12:31:31 -04:00 3172 0.0.0.0: osad/dispatcher_client._message_callback('Ping response',)
2009/09/18 12:35:48 -04:00 3172 0.0.0.0: osad/dispatcher_client._message_callback('Ping response',)

Comment 5 Tomas Lestach 2016-01-21 15:38:57 UTC
We have re-reviewed this bug, as part of an ongoing effort to improve  Satellite/Proxy feature and bug updates, review and backlog.

We believe this bug has been fixed in the latest Satellite 5 version (5.7), so closing the bug as CURRENTRELEASE. Please feel free to re-open in case you discover any issues.