Bug 769559

Summary: Subscribe system ignores "facts -> cpu.cpu_socket(s)"
Product: Red Hat Satellite Reporter: Garik Khachikyan <gkhachik>
Component: WebUIAssignee: Bryan Kearney <bkearney>
Status: CLOSED ERRATA QA Contact: Garik Khachikyan <gkhachik>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.1CC: achan, asettle, dmacpher, mkoci, tkolhar, tomckay
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
A multi-socketed system registering to System Engine was shown as compliant even if the system did not comply with the socket requirement. All systems are now properly scanned and tagged as compliant or non-compliant based on the system sockets versus the number of subscriptions it consumes.
Story Points: ---
Clone Of:
: 786461 (view as bug list) Environment:
Last Closed: 2012-12-04 19:41:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 786461    
Bug Blocks:    

Description Garik Khachikyan 2011-12-21 10:42:59 UTC
Description of problem:
Assuming situation when the product have only 1 available subscription and there is a system with 2 cpu sockets there (cpu.cpu_socket(s): 2) - Katello allows subscribing the system with that 1 subscription available.

rhsm register refuses the subscription with: 
---
Not enough entitlements in pools (1), required: 2, available: 1

Version-Release number of selected component (if applicable):
katello-0.1.148-1.git.0.0b9ff7d.el6.noarch

How reproducible:
always

Steps to Reproduce:
1.find a rhel6 server with cpu.cpu_socket(s): 2
2.make manifest import (or consume the existing entitlements) to make avail. only 1 entitlement.
3.register the system
4. subscribe through Katello UI
  
Actual results:
goes fine and gets subscribed with quantity=1

Expected results:
error: not enough entitlements avail.

Additional info:

Comment 1 Garik Khachikyan 2011-12-21 10:43:24 UTC
inspired from: https://fedorahosted.org/katello/wiki/ActivationKeysDesign

Comment 5 Tom McKay 2012-05-23 17:43:26 UTC
*** Bug 821703 has been marked as a duplicate of this bug. ***

Comment 6 Tom McKay 2012-07-10 16:02:35 UTC
Fix believed to be in candlepin already. Marking as ON_DEV for QE to test.

Comment 7 Tom McKay 2012-09-10 12:23:40 UTC
*** Bug 822105 has been marked as a duplicate of this bug. ***

Comment 9 Garik Khachikyan 2012-09-18 10:05:46 UTC
# VERIFIED

Looks fixed. Scenario is : 
- make subscription "Red Hat Enterprise Linux Server, Self-support (1-2 sockets) (Up to 1 guest)" with available count: 1
- prepare a system with cpu_socket(s) = 4 (to consume 2 subscriptions)
- do rhsm register --autosubscribe

System gets registered and subscribed with a "yellow" status in CFSE UI.

further subscriptions of any other consumers is not allowed.

checked against:
---
python-qpid-0.7.946106-1.el6.noarch
candlepin-cert-consumer-brno-cfse.usersys.redhat.com-1.0-1.noarch
qpid-cpp-client-0.14-16.el6.x86_64
candlepin-0.7.8-1.el6cf.noarch
katello-glue-pulp-1.1.12-7.el6cf.noarch
qpid-cpp-server-ssl-0.14-16.el6.x86_64
katello-candlepin-cert-key-pair-1.0-1.noarch
mod_wsgi-3.3-3.pulp.el6.x86_64
python-isodate-0.4.4-4.pulp.el6.noarch
katello-cli-common-1.1.8-1.git.2.a0908e7.el6.noarch
katello-cli-1.1.8-1.git.2.a0908e7.el6.noarch
qpid-cpp-client-ssl-0.14-16.el6.x86_64
python-oauth2-1.5.170-2.pulp.el6.noarch
pulp-common-1.1.12-1.el6cf.noarch
pulp-selinux-server-1.1.12-1.el6cf.noarch
m2crypto-0.21.1.pulp-7.el6.x86_64
candlepin-selinux-0.7.8-1.el6cf.noarch
katello-common-1.1.12-7.el6cf.noarch
katello-glue-candlepin-1.1.12-7.el6cf.noarch
katello-1.1.12-7.el6cf.noarch
katello-all-1.1.12-7.el6cf.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-certs-tools-1.1.8-1.el6cf.noarch
katello-repos-1.1.2-1.el6.noarch
katello-agent-1.1.2-1.el6.noarch
katello-configure-1.1.9-3.el6cf.noarch
qpid-cpp-server-0.14-16.el6.x86_64
pulp-1.1.12-1.el6cf.noarch
katello-selinux-1.1.1-1.el6cf.noarch
candlepin-tomcat6-0.7.8-1.el6cf.noarch
katello-qpid-client-key-pair-1.0-1.noarch

Comment 11 errata-xmlrpc 2012-12-04 19:41:39 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/RHSA-2012-1543.html

Comment 12 Mike McCune 2013-08-16 18:17:41 UTC
getting rid of 6.0.0 version since that doesn't exist