Bug 905922 - [RFE] Allow users a way to disable package reporting from the client even if the server supports it
Summary: [RFE] Allow users a way to disable package reporting from the client even if ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.10
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: 5.10
Assignee: candlepin-bugs
QA Contact: IDM QE LIST
URL:
Whiteboard:
: 922839 (view as bug list)
Depends On:
Blocks: rhsm-rhel510 902544 rhsm-2013 922839
TreeView+ depends on / blocked
 
Reported: 2013-01-30 13:30 UTC by Bryan Kearney
Modified: 2013-09-30 22:55 UTC (History)
3 users (show)

Fixed In Version: 1.8.2
Doc Type: Release Note
Doc Text:
Subscription Manager can now be configured to not upload package profile data by setting the report_package_profile = 1 setting in the /etc/rhsm/rhsm.conf file.
Clone Of:
: 922839 (view as bug list)
Environment:
Last Closed: 2013-09-30 22:55:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
The before and after images are the same as i dont see any changes (90.03 KB, image/png)
2013-05-02 14:14 UTC, Sharath Dwaral
no flags Details
screenhots of Katello showing package_profile reported based on rhsm.report_package_profile set to 0 or 1 (149.21 KB, image/png)
2013-07-02 20:39 UTC, John Sefler
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1332 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2013-09-30 22:49:24 UTC

Description Bryan Kearney 2013-01-30 13:30:22 UTC
Provide a configuration driven way to disable package reporting. This should override the default behaviour of reporting if the upstream server supports accepting the data.

Comment 1 Bryan Kearney 2013-01-30 13:30:58 UTC
commit e8ba669b297ac1af71e1ffd082c31ad5667916b9
Author: Bryan Kearney <bkearney>
Date:   Fri Jan 25 16:56:38 2013 -0500

    Give users the ability to disable package reporting
    
    This is done via a new setting in the rhsm.conf file. If the setting
    
    report_package_profile = 1
    
    is changed to zero then the package profile will not be sent up.
    This setting has no impact if the backend service does not suppot
    package uploads.

Comment 2 Bryan Kearney 2013-02-08 17:18:49 UTC
Fixed in the 1.8.2 version of subscription-manager or python-rhsm

Comment 3 Sharath Dwaral 2013-05-02 14:14:28 UTC
Created attachment 742720 [details]
The before and after images are the same as i dont see any changes

# rpm -qa | egrep "subscription-manager|python-rhsm"
subscription-manager-migration-1.8.6-1.git.27.f8647f0.el5
subscription-manager-1.8.6-1.git.27.f8647f0.el5
subscription-manager-migration-data-1.11.2.7-1.git.0.1dfd00e.el5
subscription-manager-gui-1.8.6-1.git.27.f8647f0.el5
subscription-manager-firstboot-1.8.6-1.git.27.f8647f0.el5
python-rhsm-1.8.9-1.git.7.214419e.el5

Steps:

cat /etc/rhsm/rhsm.conf | grep report_package_profile  -A1  -B3

# If set to zero, the client will not report the package profile to
# the subscription management service.
report_package_profile = 1

# subscription-manager register --org=ACME_Corporation --environment=DEV
Username: admin
Password: 
The system has been registered with ID: 8b98640e-536a-43a0-bfd8-966f86a09d19

Packages displayed (refer attachment)

Remove System from Katello Server

# subscription-manager unregister
Consumer 8b98640e-536a-43a0-bfd8-966f86a09d19 has been deleted

# subscription-manager clean
All local data removed

# edit /etc/rhsm/rhsm.conf -> report_package_profile = 0

cat /etc/rhsm/rhsm.conf | grep report_package_profile  -A1  -B3

# If set to zero, the client will not report the package profile to
# the subscription management service.
report_package_profile = 0

# service rhsmcertd restart
Stopping rhsmcertd...                                      [  OK  ]
Starting rhsmcertd...                                      [  OK  ]

# subscription-manager register --org=ACME_Corporation --environment=DEV
Username: admin
Password: 
The system has been registered with ID: 0334f979-afe1-4923-a7da-64d6e723db41 

Packages are still displayed (refer attachment)

QE_FAIL  Moving to bug to NEW

Comment 4 Bryan Kearney 2013-05-07 17:04:10 UTC
Need to treat the value as an int, not a string.

https://github.com/candlepin/subscription-manager/pull/585

Comment 5 Bryan Kearney 2013-05-07 18:44:39 UTC
*** Bug 922839 has been marked as a duplicate of this bug. ***

Comment 6 Bryan Kearney 2013-05-08 15:11:46 UTC
commit cc0074ebb0be4c7022571632082c5c8296373b3e
Author: Bryan Kearney <bkearney>
Date:   Tue May 7 13:02:53 2013 -0400

    905922: use get_int instead of get in order to consume the value as a booolean

Comment 7 Bryan Kearney 2013-06-05 12:18:44 UTC
delivered in the latest errata.

Comment 8 John Sefler 2013-07-02 20:37:17 UTC
Verifying with Versions...

[root@jsefler-5 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 1.4.2-1.git.765.078bebf.el6-Katello
subscription-manager: 1.8.11-1.el5
python-rhsm: 1.8.12-1.el5


VERIFYING report_package_profile = 1

[root@jsefler-5 ~]# grep report_package_profile /etc/rhsm/rhsm.conf
report_package_profile = 1
[root@jsefler-5 ~]# subscription-manager register --username admin --org SimpleOrg --env DEV
Password: 
The system has been registered with ID: cadbf1ac-8146-4d2e-8ab5-95028a5fda05 
[root@jsefler-5 ~]# 

See attached screenshot showing system in Katello with report_package_profile = 1



VERIFYING report_package_profile = 0

[root@jsefler-5 ~]# subscription-manager unregister
System has been unregistered.
[root@jsefler-5 ~]# subscription-manager config --rhsm.report_package_profile=0
[root@jsefler-5 ~]# grep report_package_profile /etc/rhsm/rhsm.conf
report_package_profile = 0
[root@jsefler-5 ~]# subscription-manager register --username admin --org SimpleOrg --env DEV
Password: 
The system has been registered with ID: f14bb190-e634-41ca-897f-b66c78d1d04a 
[root@jsefler-5 ~]# 

See attached screenshot showing system in Katello with report_package_profile = 0

Comment 9 John Sefler 2013-07-02 20:39:43 UTC
Created attachment 767957 [details]
screenhots of Katello showing package_profile reported based on rhsm.report_package_profile set to 0 or 1

Comment 11 errata-xmlrpc 2013-09-30 22:55: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/RHBA-2013-1332.html


Note You need to log in before you can comment on or make changes to this bug.