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

Bug 818663

Summary: request for an errata event message
Product: [Retired] Pulp Reporter: Vincent Batts <vbatts>
Component: user-experienceAssignee: Jeff Ortel <jortel>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 1.1.0CC: dgregor, tsanders
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-25 14:15:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Test Event Listener none

Description Vincent Batts 2012-05-03 17:01:24 UTC
Description of problem:
new feature request of an additional amqp event message to be broadcasted

Version-Release number of selected component (if applicable):
1.0.4

How reproducible:
Always

Steps to Reproduce:
1. bind an AMQP queue to the 'event' exchange
2. listen for messages regarding errata publish'ings
3.
  
Actual results:
There are no messages


Expected results:
errata information, at minimum the errata 'id' (or '_id')

Additional info:

Comment 1 Jeff Ortel 2012-05-08 20:23:37 UTC
Raising (2) new events:

subject = errata.created
body <dict>:
{
  'id'=,
  'title'=,
  'description'=,
  'version'=,
  'release'=,
  'type'=,
  'status'=,
  'updated'=,
  'issued'=,
  'pushcount'=,
  'reboot_suggested'=,
  'references'=,
  'pkglist'=,
  'severity'=,
  'rights'=,
  'summary'=,
  'solution'=,
}

subject = errata.updated
body <dict>:
{
  'id'=,
  'title'=,
  'description'=,
  'version'=,
  'release'=,
  'type'=,
  'status'=,
  'updated'=,
  'issued'=,
  'pushcount'=,
  'reboot_suggested'=,
  'references'=,
  'pkglist'=,
  'severity'=,
  'rights'=,
  'summary'=,
  'solution'=,
}

Comment 2 Jeff Ortel 2012-05-08 20:53:15 UTC
build: 1.1.8

Comment 3 Jeff Ortel 2012-05-09 19:19:29 UTC
Testing Instructions:

1. Listen for pulp events (messages) on QPID as follows:

> python
from pulp.server.event.consumer import EventConsumer
class TestListener(EventConsumer):
  def raised(self, subject, event):
    print 'Raised: %s\n%s' % (subject, event)

listener = TestListener()
listener.start()

2. Enable Pulp event sending. Edit /etc/pulp/pulp.conf and
   change [events]; send_enabled: true

3. Create an errata in pulp using the CLI.  Observe messages printed by
   the listener.

4. Update an errata in pulp using the CLI.  Observe messages printed by
   the listener

Done.

Comment 4 Jeff Ortel 2012-05-09 19:50:24 UTC
Created attachment 583377 [details]
Test Event Listener

Test Listener

Comment 5 Preethi Thomas 2012-05-09 20:04:02 UTC
verified

[root@pulp-v1-server ~]# rpm -q pulp
pulp-1.1.8-1.el6.noarch

[root@pulp-v1-server ~]# python
Python 2.6.6 (r266:84292, Sep 12 2011, 14:03:14) 
[GCC 4.4.5 20110214 (Red Hat 4.4.5-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pulp.server.event.consumer import EventConsumer
>>> class TestListener(EventConsumer):
...   def raised(self, subject, event):
...      print 'Raised: %s\n%s' % (subject, event)
... 
>>> listener = TestListener()
>>> listener.start()
>>> No handlers could be found for logger "qpid.messaging"
Raised: errata.created
{'status': None, 'updated': '', 'description': 'test1', 'title': 'test1',
'issued': '', 'id': 'test1', 'rights': '', 'solution': '', 'summary': '',
'pushcount': 1, 'version': '1', 'references': [], 'release': '1',
'reboot_suggested': '', 'type': 'security', 'pkglist': [], 'severity': ''}
Raised: errata.updated
{'status': None, 'updated': '', 'description': 'test1', 'title': 'test1',
'issued': '', 'id': 'test1', 'rights': '', 'solution': '', 'summary': '',
'pushcount': 1, 'version': '2', 'references': [], 'release': '1.1',
'reboot_suggested': '', 'type': 'security', 'pkglist': [], 'severity': ''}

Comment 6 Preethi Thomas 2012-05-25 14:15:01 UTC
Pulp v1.1 Release