Bug 1007651

Summary: The system service level agreement preference in GUI is 'Not Set' after reigister and auto-attach in CLI.
Product: Red Hat Enterprise Linux 5 Reporter: qianzhan
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED NOTABUG QA Contact: John Sefler <jsefler>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.10CC: ckozak, gxing, liliu, sgao
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-13 16:41:57 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:
Attachments:
Description Flags
'service level agreement preference in CLI.png'
none
'service level agreement preference in GUI.png'
none
'GUI-auto-attach-SLA-select.png' none

Description qianzhan 2013-09-13 03:52:57 UTC
Description of problem:
The system service level agreement preference in GUI is 'Not Set' after reigister and auto-attach in CLI.

Version-Release number of selected component (if applicable):
subscription-manager-1.8.22-1.el5
subscription-manager-gui-1.8.22-1.el5
python-rhsm-1.8.17-1.el5

How reproducible:
always

Steps to Reproduce:
1. Register to SAM and auto-attach in CLI:
[root@dhcp-65-86 ~]# subscription-manager register --auto-attach
Username: admin
Password: 
The system has been registered with ID: 8a064848-c982-49af-a5a5-21331221704a 
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Desktop
Status:       Subscribed

2. Open GUI and check the system service level agreement preference:
The system service level agreement preference is 'Not Set'. Please see attachment 'service level agreement preference in CLI.png'

3. Repeate step 1 and step 2 in GUI:
The system service level agreement preference is 'Standard'. Please see attachment 'service level agreement preference in GUI.png'

Actual results:
As step 2.

Expected results:
The system service level agreement preference in GUI should display after reigister and auto-attach in CLI.

Additional info:
I tried on stage candlepin, the result is the same as above.

Comment 1 qianzhan 2013-09-13 03:54:09 UTC
Created attachment 797115 [details]
'service level agreement preference in CLI.png'

Comment 2 qianzhan 2013-09-13 03:54:37 UTC
Created attachment 797116 [details]
'service level agreement preference in GUI.png'

Comment 3 Carter Kozak 2013-09-13 16:41:57 UTC
I don't think this is a bug.  You did specify a service level preference when you registered via the GUI, you didn't specify one (via --servicelevel=x) in the command line register.

To avoid setting SLA in the gui, check "manually attach subscriptions" during registration.

Comment 4 qianzhan 2013-09-16 05:30:17 UTC
Firstly, I don't think it is reasonable with the inconsistence between CLI and GUI, because there is always a process of selecting a SLA in GUI no matter with single SLA or multiple SLAs while this not happened in CLI which is incomprehensible. When there is only one available service level for the client, there is a process of selecting service level in GUI but no such process in CLI (as above steps). Also, when there are multiple available service levels for the client, the process of selecting SLA is in GUI but not in CLI:

1. Please see attachment 'GUI-auto-attach-SLA-select.png' for the process of selecting SLA from multiple SLAs in GUI.
2. The following are steps of auto-attach with multiple available service levels in CLI:
(1)
[root@unused-65-238 ~]# subscription-manager attach --auto
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status:       Subscribed

(2)
[root@unused-65-238 ~]# subscription-manager list --consumed | grep 'Service Level'
Service Level:     Standard

(3)
[root@unused-65-238 ~]# subscription-manager service-level
Service level preference not set

Secondly, with step 2.(2) and step 2.(3). The client has consumed subscription with service level 'Standard' but 'subscription-manager service-level' command has not display the current service level supporting the client and I think this is a question.

Comment 5 qianzhan 2013-09-16 05:32:27 UTC
Created attachment 798103 [details]
'GUI-auto-attach-SLA-select.png'

Comment 6 Red Hat Bugzilla 2023-09-14 01:50:34 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days