Bug 1662108

Summary: subscription-manager-cockpit: No message display when register server with Activation Key and wrong username or password
Product: Red Hat Enterprise Linux 8 Reporter: yanpliu <yanpliu>
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: 8.0CC: khowell, qianzhan
Target Milestone: rcKeywords: Triaged
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1711205 (view as bug list) Environment:
Last Closed: 2021-02-01 07:31:27 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:
Bug Depends On:    
Bug Blocks: 1711205    
Attachments:
Description Flags
register_with_correctactivationKey_wrongusername_password.png
none
register_success.png none

Description yanpliu 2018-12-26 08:42:42 UTC
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:

Comment 1 yanpliu 2018-12-26 08:46:02 UTC
Created attachment 1516772 [details]
register_with_correctactivationKey_wrongusername_password.png

Comment 2 yanpliu 2018-12-26 08:46:27 UTC
Created attachment 1516773 [details]
register_success.png

Comment 5 RHEL Program Management 2021-02-01 07:31:27 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.