Story #289
closed[RFE] pulp-consumer history should show profile events
0%
Description
++ This bug was initially created as a clone of Bugzilla Bug #1188410 ++
Description of problem:
I wanted to use 'pulp-consumer history' to verify that a profile changed for a consumer.
1. I register a new consumer
2. Bind it to a repo
3. Install something with yum. It says it reported the profile. I can also see it in the database. In other words the event of interest has occurred.
4. `pulp-consumer history` gives the following output:
[bmbouter@dhcp129-138 pulp]$ pulp-consumer history
--------------------------------------------------------------------
Consumer History [c1]
--------------------------------------------------------------------
Consumer Id: c1
Type: repo_bound
Details:
Distributor Id: yum_distributor
Repo Id: zoo
Originator: SYSTEM
Timestamp: 2015-02-02T18:50:56Z
Consumer Id: c1
Type: consumer_registered
Details: None
Originator: admin
Timestamp: 2015-02-02T18:49:58Z
5. Observe that the profile reporting step is not listed. I'm not sure what type of an event it should be, but it isn't present.
I expected the profile changing to be reported because pulp-consumer history --help lists the following event types:
--event-type - limits displayed history entries to the given type;supported
types: ("consumer_registered", "consumer_unregistered",
"repo_bound", "repo_unbound","content_unit_installed",
"content_unit_uninstalled", "unit_profile_changed",
"added_to_group","removed_from_group")
Surely a profile getting updated is one of these. Probably 'content_unit_installed'. This is not as broad as a 2011 BZ [0], but may be related to a recently filed BZ [1] that I discovered while working in this area.
[0]: https://bugzilla.redhat.com/show_bug.cgi?id=674591
[1]: https://bugzilla.redhat.com/show_bug.cgi?id=1188407