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

Bug 1052046

Summary: QMF to track queue owner (userId)
Product: Red Hat Enterprise MRG Reporter: Pavel Moravec <pmoravec>
Component: qpid-cppAssignee: Pavel Moravec <pmoravec>
Status: CLOSED ERRATA QA Contact: Zdenek Kraus <zkraus>
Severity: low Docs Contact:
Priority: medium    
Version: 3.0CC: eallen, iboverma, jross, lzhaldyb, mtoth, pmoravec, zkraus
Target Milestone: 3.0Keywords: EasyFix, Improvement, Patch
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: qpid-cpp-0.22-37 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-24 15:10: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:
Bug Depends On:    
Bug Blocks: 785156    
Attachments:
Description Flags
Patch proposal none

Description Pavel Moravec 2014-01-13 08:20:01 UTC
Description of problem:
due to RFE 572567, it is possible to set limits on queue created by an owner via ACL. But there is no way of checking the current limit.

The easiest way of doing so is to add to QMF queue object userId, that is the queue owner / creator.


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


How reproducible:
100%


Steps to Reproduce:
qpid-send -a "testQueue; {create:always}" --connection-options="{sasl-mechanism:'PLAIN', username:guest, password:guest}"
(try to check anywhere that "guest@QPID" owns/created the queue)


Actual results:
No way to see it.


Expected results:
E.g. qpid-tool -> show <queue_ID> should provide that information


Additional info:

Comment 2 Pavel Moravec 2014-01-19 13:38:54 UTC
Created attachment 852398 [details]
Patch proposal

Patch proposal.

It adds "creator" statistic to Queue QMF object and sets it properly.

Tested broker restarts for tracking the statistic value of a durable queue - both legacy and linear store were fine.

BUT: qpid-tool stopped showing anything (no output to "list" command at all).

Did I miss something?

Comment 3 Pavel Moravec 2014-01-19 13:40:17 UTC
Asking Ernie for a review of the patch (rather what misses there for qpid-tool)

Comment 7 Pavel Moravec 2014-02-28 13:36:22 UTC
I raised the review request on https://reviews.apache.org/r/18622/.

Comment 8 Pavel Moravec 2014-03-07 12:16:09 UTC
Committed to upstream as r1572963.

Comment 12 Zdenek Kraus 2014-05-15 17:28:05 UTC
Tested on RHEL 6.5 i686 && x86_64 with following packages:
perl-qpid-0.22-11
perl-qpid-debuginfo-0.22-11
python-qpid-0.22-14
python-qpid-qmf-0.22-30
qpid-cpp-client-0.22-38
qpid-cpp-client-devel-0.22-38
qpid-cpp-client-devel-docs-0.22-38
qpid-cpp-debuginfo-0.22-38
qpid-cpp-server-0.22-38
qpid-cpp-server-devel-0.22-38
qpid-cpp-server-ha-0.22-38
qpid-cpp-server-linearstore-0.22-38
qpid-cpp-server-xml-0.22-38
qpid-java-client-0.22-6
qpid-java-common-0.22-6
qpid-java-example-0.22-6
qpid-jca-0.22-2
qpid-jca-xarecovery-0.22-2
qpid-proton-c-0.6-2
qpid-proton-c-devel-0.6-2
qpid-qmf-0.22-30
qpid-snmpd-1.0.0-16
qpid-tools-0.22-11
rh-qpid-cpp-tests-0.22-38
ruby-qpid-qmf-0.22-30


Function works as expected.

Comment 13 errata-xmlrpc 2014-09-24 15:10:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2014-1296.html