Bug 818663
| Summary: | request for an errata event message | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Vincent Batts <vbatts> | ||||
| Component: | user-experience | Assignee: | Jeff Ortel <jortel> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 1.1.0 | CC: | 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
Vincent Batts
2012-05-03 17:01:24 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'=,
}
build: 1.1.8 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.
Created attachment 583377 [details]
Test Event Listener
Test Listener
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': ''} Pulp v1.1 Release |