Bug 877007

Summary: String Updates: Product string cleanups
Product: [Retired] Subscription Asset Manager Reporter: Matt Reid <mreid>
Component: candlepinAssignee: William Poteat <wpoteat>
Status: CLOSED ERRATA QA Contact: Og Maciel <omaciel>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.3CC: bkearney, omaciel, sthirugn, wpoteat
Target Milestone: rc   
Target Release: 1.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-01 10:53:11 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: 833466    

Description Matt Reid 2012-11-15 14:17:32 UTC
Description of problem:

There are a few strings we should think about cleaning up in candlepin around products. These just consist of updating a few subscribe/consume strings to use 'attach', and capitalizing 'id'. 

Examples!
A user attaches subscriptions to a system.
A subscription attached to a system is represented as an entitlement.
A subscription covers an installed product.



#: src/main/java/org/candlepin/controller/Entitler.java:192
#, java-format
msgid "Only virtual systems can consume the product ''{0}''"
1. "Only virtual systems can have subscription ''(0}'' attached."

#: src/main/java/org/candlepin/resource/ConsumerResource.java:1279
#, java-format
msgid "Asked to be subscribed to a product that has no pool: {0} " 
2. "Unable to attach a subscription for a product that has no pool: {0}" (***can we say that instead? current string is a bit awkward)

#: src/main/java/org/candlepin/model/EntitlementCurator.java:247
#, java-format
msgid "No product found for product id {0}"
3. "No product found for product ID {0}"

#: src/main/java/org/candlepin/audit/EventAdapterImpl.java:132
#, java-format
msgid "{0} consumed a subscription for product {1}"
4. "{0} attached a subscription for product {1}"

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

Additional info:

Comment 1 Tom McKay 2012-12-18 14:40:04 UTC
Switching product from Subscription Asset Manager to Candlepin for visibility

Comment 2 Bryan Kearney 2013-06-07 18:20:21 UTC
Moving all POST bugs to ON_QA since we have delivered a puddle with the bugs.

Comment 3 Og Maciel 2013-08-16 21:36:29 UTC
root@cloud-qe-10 candlepin-0.8.20]# grep 'subscribe' -nriI po/* | wc -l
0
[root@cloud-qe-10 candlepin-0.8.20]# grep 'attach' -nriI po/* | wc -l
186

Comment 4 Og Maciel 2013-08-16 21:39:32 UTC
[root@cloud-qe-10 candlepin-0.8.20]# grep msgid -nriI po/* | grep ' id ' | wc -l
220

Comment 5 Og Maciel 2013-08-16 21:44:19 UTC
This BZ doesn't tell QE anything about the fix. Could we get more details here please?

Comment 6 William Poteat 2013-08-19 12:46:31 UTC
The only way to confirm the fix is to check the code as listed in the bz.

Comment 8 Og Maciel 2013-08-20 14:57:08 UTC
VERIFIED:

* apr-util-ldap-1.3.9-3.el6_0.1.x86_64
* candlepin-0.8.20-1.el6sam.noarch
* candlepin-scl-1-5.el6_4.noarch
* candlepin-scl-quartz-2.1.5-5.el6_4.noarch
* candlepin-scl-rhino-1.7R3-1.el6_4.noarch
* candlepin-scl-runtime-1-5.el6_4.noarch
* candlepin-selinux-0.8.20-1.el6sam.noarch
* candlepin-tomcat6-0.8.20-1.el6sam.noarch
* elasticsearch-0.19.9-8.el6sat.noarch
* katello-candlepin-cert-key-pair-1.0-1.noarch
* katello-certs-tools-1.4.2-2.el6sat.noarch
* katello-cli-1.4.3-7.el6sat.noarch
* katello-cli-common-1.4.3-7.el6sat.noarch
* katello-common-1.4.3-8.el6sam_splice.noarch
* katello-configure-1.4.4-2.el6sat.noarch
* katello-glue-candlepin-1.4.3-8.el6sam_splice.noarch
* katello-glue-elasticsearch-1.4.3-8.el6sam_splice.noarch
* katello-headpin-1.4.3-8.el6sam_splice.noarch
* katello-headpin-all-1.4.3-8.el6sam_splice.noarch
* katello-selinux-1.4.4-2.el6sat.noarch
* openldap-2.4.23-31.el6.x86_64
* python-ldap-2.3.10-1.el6.x86_64
* ruby193-rubygem-ldap_fluff-0.2.2-1.el6sat.noarch
* ruby193-rubygem-net-ldap-0.3.1-2.el6sat.noarch
* signo-0.0.20-1.el6sat.noarch
* signo-katello-0.0.20-1.el6sat.noarch
* thumbslug-0.0.32-1.el6sam.noarch
* thumbslug-selinux-0.0.32-1.el6sam.noarch

Comment 10 errata-xmlrpc 2013-10-01 10:53:11 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-2013-1390.html