Bug 721141

Summary: Unknown event for user <system> and target <subscriptionName>
Product: [Community] Candlepin Reporter: John Sefler <jsefler>
Component: candlepinAssignee: Bryan Kearney <bkearney>
Status: CLOSED CURRENTRELEASE QA Contact: John Sefler <jsefler>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 0.5CC: spandey
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Solaris   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-30 13:16:02 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: 682238    

Description John Sefler 2011-07-13 20:14:11 UTC
Description of problem:
Discovered along side bug 721136, the description value for some atom events is not very helpful.  Is there a way to fix this? or are they really unknown.

For example, when triggering a POOL MODIFIED event, the atom description currently produced is:
Unknown event for user System and target Awesome OS Scalable Filesystem


Moreover, when I browse the entries of atoms feeds for an owner, consumer, or candlepin, I see many examples of an "Unknown event for user <system> and target <subscriptionName>"
  /candlepin/atom
  /candlepin/owners/admin/atom
  /candlepin/owners/admin/consumers/b25ea83b-9cdb-4db7-8911-21d41cd885d1/atom



Version-Release number of selected component (if applicable):
[root@jsefler-onprem-62candlepin proxy]# git branch
  0.3
* master
[root@jsefler-onprem-62candlepin proxy]# git show-ref | grep master
074f11f1e637a85d07620efb1778ab7a64fff253 refs/heads/master
074f11f1e637a85d07620efb1778ab7a64fff253 refs/remotes/origin/master

Comment 1 Bryan Kearney 2011-07-21 16:46:56 UTC
fixed in master with commit fc717991f18b3ba859a10a4f268cc97e884b8114

Comment 2 John Sefler 2011-07-26 15:08:29 UTC
Verifying Version...
[root@jsefler-onprem-62candlepin proxy]# git branch
  0.3
* master
[root@jsefler-onprem-62candlepin proxy]# git show-ref | grep master
49c78843b94f157caf30a2e0bd3a5cf02537db57 refs/heads/master
49c78843b94f157caf30a2e0bd3a5cf02537db57 refs/remotes/origin/master


With the candlepin fix applied and the existing automated EventTests rerun, no atom feed descriptions containing "Unknown event" were reported.

Here are samples of some of the events reported...201107260914:22.844 - FINE: Event Feed entries[0].title=ENTITLEMENT DELETED   description=jsefler-onprem-62server.usersys.redhat.com returned the subscription for Awesome OS for  z80/x86_64 (com.redhat.qe.sm.cli.tasks.CandlepinTasks.getSyndFeedFor)
201107260914:22.845 - FINE: Event Feed entries[1].title=ENTITLEMENT MODIFIED   description=System modified a subscription for product Awesome OS for  z80/x86_64 (com.redhat.qe.sm.cli.tasks.CandlepinTasks.getSyndFeedFor)
201107260914:22.845 - FINE: Event Feed entries[2].title=POOL MODIFIED   description=System modified a pool for product Awesome OS for  z80/x86_64 (com.redhat.qe.sm.cli.tasks.CandlepinTasks.getSyndFeedFor)


Moreover, I also updated our automated EventTests to assert that no "Unknown event" descriptions are encountered.

moving to VERIFIED