Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
The --name option is ignored when registering with --type=person
Version-Release number of selected component (if applicable):
[root@jsefler-onprem01 ~]# rpm -q subscription-manager
subscription-manager-0.93.2-1.git.91.7f89664.fc14.x86_64
Steps to Reproduce:
[root@jsefler-onprem01 ~]# subscription-manager register --force --password=password --username=testuser1 --type=system --name=SYSTEM
fd69a677-5e0c-4bcb-8ec2-73fb3dc40c6a SYSTEM
[root@jsefler-onprem01 ~]# subscription-manager register --force --password=password --username=testuser1 --type=domain --name=DOMAIN
The system with UUID fd69a677-5e0c-4bcb-8ec2-73fb3dc40c6a has been unregistered
8ea3c836-8426-49ba-8423-87d970b505b5 DOMAIN
[root@jsefler-onprem01 ~]# subscription-manager register --force --password=password --username=testuser1 --type=candlepin --name=CANDLEPIN
The system with UUID 8ea3c836-8426-49ba-8423-87d970b505b5 has been unregistered
aaa53474-ade8-4b21-bc5c-102f6e948258 CANDLEPIN
[root@jsefler-onprem01 ~]# subscription-manager register --force --password=password --username=testuser1 --type=person --name=PERSON
The system with UUID aaa53474-ade8-4b21-bc5c-102f6e948258 has been unregistered
5849f32b-44a2-4f8b-ab2d-4f310e7b7459 testuser1
^^^^^^^^^
REGISTERING WITH --name works with all types except --type=person
[root@jsefler-onprem01 ~]# curl -k -u admin:admin -X GET https://jsefler-f12-candlepin.usersys.redhat.com:8443/candlepin/consumers/5849f32b-44a2-4f8b-ab2d-4f310e7b7459 2>/dev/null | grep \"name\"
"name" : "testuser1",
THE REST API ALSO SHOWS THE NAME AS 'testuser1' WHEN IT SHOULD BE 'PERSON'
Since the register --name option is ignored by design when registering with --type=person, can we get some user feedback in stdout stating something like this:
The name option value will be ignored when registering as type person.
Note this feedback would only be seen if the cli register options included both --name and --type=person.
Moving back to ASSIGNED
The cli tool is more for machines. It is a nice to have for personal subscription. I would like to avoid unique business logic such as this in the cli. So, I will politely say "WONTFIX"
:)
Description of problem: The --name option is ignored when registering with --type=person Version-Release number of selected component (if applicable): [root@jsefler-onprem01 ~]# rpm -q subscription-manager subscription-manager-0.93.2-1.git.91.7f89664.fc14.x86_64 Steps to Reproduce: [root@jsefler-onprem01 ~]# subscription-manager register --force --password=password --username=testuser1 --type=system --name=SYSTEM fd69a677-5e0c-4bcb-8ec2-73fb3dc40c6a SYSTEM [root@jsefler-onprem01 ~]# subscription-manager register --force --password=password --username=testuser1 --type=domain --name=DOMAIN The system with UUID fd69a677-5e0c-4bcb-8ec2-73fb3dc40c6a has been unregistered 8ea3c836-8426-49ba-8423-87d970b505b5 DOMAIN [root@jsefler-onprem01 ~]# subscription-manager register --force --password=password --username=testuser1 --type=candlepin --name=CANDLEPIN The system with UUID 8ea3c836-8426-49ba-8423-87d970b505b5 has been unregistered aaa53474-ade8-4b21-bc5c-102f6e948258 CANDLEPIN [root@jsefler-onprem01 ~]# subscription-manager register --force --password=password --username=testuser1 --type=person --name=PERSON The system with UUID aaa53474-ade8-4b21-bc5c-102f6e948258 has been unregistered 5849f32b-44a2-4f8b-ab2d-4f310e7b7459 testuser1 ^^^^^^^^^ REGISTERING WITH --name works with all types except --type=person [root@jsefler-onprem01 ~]# curl -k -u admin:admin -X GET https://jsefler-f12-candlepin.usersys.redhat.com:8443/candlepin/consumers/5849f32b-44a2-4f8b-ab2d-4f310e7b7459 2>/dev/null | grep \"name\" "name" : "testuser1", THE REST API ALSO SHOWS THE NAME AS 'testuser1' WHEN IT SHOULD BE 'PERSON'