Bug 1711205

Summary: subscription-manager-cockpit: No message display when register server with Activation Key and wrong username or password
Product: Red Hat Enterprise Linux 7 Reporter: qianzhan
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED WONTFIX QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: low Docs Contact:
Priority: low    
Version: 7.7CC: candlepin-bugs, csnyder, khowell, qianzhan, rhsm-qe, yanpliu
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1662108 Environment:
Last Closed: 2019-09-19 15:53:51 UTC Type: ---
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: 1662108    
Bug Blocks:    

Description qianzhan 2019-05-17 08:17:31 UTC
+++ This bug was initially created as a clone of Bug #1662108 +++

Description of problem:
subscription-manager-cockpit: No message display when register server with Activation Key and wrong username or password.

Version-Release number of selected component (if applicable):
subscription-manager-1.23.8-11.el8
subscription-manager-rhsm-certificates-1.23.8-11.el8
subscription-manager-cockpit-1.23.8-11.el8
python3-subscription-manager-rhsm-1.23.8-11.el8
dnf-plugin-subscription-manager-1.23.8-11.el8
katello-3.7.0-8.el7sat.noarch
tfm-rubygem-katello-3.7.0.42-2.el7sat.noarch
candlepin-2.4.8-1.el7.noarch

How reproducible:


Steps to Reproduce:

1.Register RHEL-8.0-20181218.0-BaseOS-aarch64 against satellite6.4 by cockpit
Use wrong username and password
valid Activation Key and Organization, and then click "register"
Please reference pic register_with_correctactivationKey_wrongusername_password.png

host has registered the server successfully without any alert message.
register_success.png

Error message should display for "Error: Activation keys do not require user credentials."

2. unregister server
# subscription-manager  unregister
This system is currently not registered.


3.Register RHEL-8.0-20181218.0-BaseOS-aarch64 against satellite6.4 using command:
# subscription-manager register --username=admin --password=admin --activationkey=rhsm --org=Default_Organization
Error: Activation keys do not require user credentials.

# subscription-manager register  --activationkey=rhsm --org=Default_Organization
The system has been registered with ID: 02473022-1547-44c8-939c-c70a409dd7a7
The registered system name is: qualcomm-amberwing-rep-09.khw3.lab.eng.bos.redhat.com
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for ARM 64 High Touch Beta
Status:       Subscribed



Actual results:
step1: No message display when register server with Activation Key and wrong username or password

Expected results:
Step1: Error message should display when register server with Activation Key and wrong username or password, such as "Error: Activation keys do not require user credentials."

Additional info:

==================================
Bug 1662108 can be reproduced on RHEL-7.7-20190514.2 against Satellite6.6-snapshot2.0. So clone Bug 1662108:

subscription-manager-1.24.6-1.el7.x86_64
subscription-manager-cockpit-1.24.6-1.el7.noarch
tfm-rubygem-katello-3.12.0.rc1-13.master.el7sat.noarch
katello-3.12.0-0.5.master.el7sat.noarch
candlepin-2.6.5-1.el7sat.noarch

Comment 2 Chris Snyder 2019-09-19 15:53:51 UTC
Due to the current lifecycle phase of RHEL 7 (Maintenance Support Phase 1), we will only be fixing this issue on RHEL 8.x