Bug 951633 - installed product with comma separated arch attribute fails to go green
Summary: installed product with comma separated arch attribute fails to go green
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Carter Kozak
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel510 rhsm-2013
TreeView+ depends on / blocked
 
Reported: 2013-04-12 16:14 UTC by John Sefler
Modified: 2015-05-14 14:52 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-10-01 13:50:45 UTC
Embargoed:


Attachments (Terms of Use)

Description John Sefler 2013-04-12 16:14:43 UTC
Description of problem:
After implementation of https://bugzilla.redhat.com/show_bug.cgi?id=909467#c2 an installed product with a comma separated arch is not getting parsed correctly when checking for an architecture mismatch.  The new design from bug 909467 is supposed to limit the installed product status to yellow when a mismatched arch is detected.  In the following case, the system has arch "x86_64" and the installed product arch attribute is "x86_64,i686,ia64,ppc,ppc64,s390x,s390" which should be a match and allow the installed product to achieve a fully compliant Subscribed status.



Version-Release number of selected component (if applicable):
[root@jsefler-7 ~]# rpm -q subscription-manager
subscription-manager-1.8.5-1.el7.x86_64
[root@jsefler-f14-candlepin candlepin]# git show-ref | grep master
10bc5f9576fc9168c357db9e7877343a01a48155 refs/heads/master

How reproducible:


Steps to Reproduce:
Using onpremise candlepin with deployed TESTDATA and the following products installed on a system....

[root@jsefler-7 ~]# subscription-manager facts --list | grep cpu_socket
cpu.cpu_socket(s): 1
[root@jsefler-7 ~]# ls /etc/pki/product/
100000000000002.pem  100000000000011.pem
[root@jsefler-7 ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name: Awesome OS for x86_64/i686/ia64/ppc/ppc64/s390x/s390 Bits
Product ID:   100000000000011
Version:      3.11
Arch:         x86_64,i686,ia64,ppc,ppc64,s390x,s390
Status:       Not Subscribed
Starts:       
Ends:         

Product Name: Awesome OS for x86_64 Bits
Product ID:   100000000000002
Version:      3.11
Arch:         x86_64
Status:       Not Subscribed
Starts:       
Ends:         

[root@jsefler-7 ~]# subscription-manager register --username=testuser1 --password=password --org=admin --autosubscribe --serverurl=jsefler-f14-candlepin.usersys.redhat.com:8443/candlepin
The system has been registered with id: 9e1734b0-0112-4682-988d-1a1e0ba0f9fb 
Installed Product Current Status:
Product Name: Awesome OS for x86_64/i686/ia64/ppc/ppc64/s390x/s390 Bits
Status:       Partially Subscribed

Product Name: Awesome OS for x86_64 Bits
Status:       Subscribed

[root@jsefler-7 ~]# 



Expected results:
The Status of the "Awesome OS for x86_64/i686/ia64/ppc/ppc64/s390x/s390 Bits" should be fully "Subscribed".  It appears that the products arch value of "x86_64,i686,ia64,ppc,ppc64,s390x,s390" is failing to match the arch check for compliance against the system's value of "x86_64".

Comment 1 Carter Kozak 2013-04-15 13:17:23 UTC
commit e1d7928eb7f14fa604cc4e114ae810a32f043794
Author: Carter Kozak <ckozak>
Date:   Fri Apr 12 09:47:11 2013 -0400

    Hard code product attribute separator into rules.js

commit 95cf5dc22ccb41d929a3ab787c8be31b1d8233e5
Author: Carter Kozak <ckozak>
Date:   Wed Apr 10 11:00:07 2013 -0400

    fix parsing of entitlements with multiple architectures

Comment 2 Rehana 2013-04-17 04:42:17 UTC
Verified on 

[root@localhost ~]# rpm -qa subscription*
subscription-manager-migration-1.8.5-1.git.31.709e459.el7.x86_64
subscription-manager-1.8.5-1.git.31.709e459.el7.x86_64
subscription-manager-gui-1.8.5-1.git.31.709e459.el7.x86_64
subscription-manager-firstboot-1.8.5-1.git.31.709e459.el7.x86_64
subscription-manager-migration-data-1.13.0.0-1.git.3.fb64211.el7.noarch

[root@rehana-candlepin candlepin]# git show-ref | grep master
5af7b92139a1476cb8e4fbaaa5f71c23e0122e1c refs/heads/master

[root@localhost pki]#  subscription-manager facts --list | grep cpu_socket
cpu.cpu_socket(s): 1

[root@localhost ~]# subscription-manager register --autosubscribe
Username: admin
Password: 
Organization: admin
The system has been registered with id: bb76a7cd-7758-4e5a-88b0-f955aee64f38 
Installed Product Current Status:
Product Name: Awesome OS for S390 Bits
Status:       Not Subscribed

Product Name: Awesome OS Developer Bits
Status:       Not Subscribed

Product Name: Awesome OS Developer Basic
Status:       Not Subscribed

Product Name: Awesome OS for x86_64/i686/ia64/ppc/ppc64/s390x/s390 Bits
Status:       Subscribed

Product Name: Virt Only Awesome OS for i386 Bits
Status:       Not Subscribed

Product Name: Awesome OS for x86 Bits
Status:       Not Subscribed

Product Name: Multiplier Product Bits
Status:       Not Subscribed

Product Name: Awesome OS Workstation Bits
Status:       Subscribed

Observed that the product "Awesome OS for x86_64/i686/ia64/ppc/ppc64/s390x/s390 Bits" is now getting fully "Subscribed".

Hence moving this bug to "Verified"


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