Bug 1662108 - subscription-manager-cockpit: No message display when register server with Activation Key and wrong username or password
Summary: subscription-manager-cockpit: No message display when register server with Ac...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: 8.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: 8.0
Assignee: candlepin-bugs
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks: 1711205
TreeView+ depends on / blocked
 
Reported: 2018-12-26 08:42 UTC by yanpliu
Modified: 2019-12-01 15:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1711205 (view as bug list)
Environment:
Last Closed:
Type: Bug
Target Upstream Version:


Attachments (Terms of Use)
register_with_correctactivationKey_wrongusername_password.png (119.00 KB, image/png)
2018-12-26 08:46 UTC, yanpliu
no flags Details
register_success.png (107.40 KB, image/png)
2018-12-26 08:46 UTC, yanpliu
no flags Details

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


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