Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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.
Bug 2038388 - Activation key issue with custom products on RHEL 6
Summary: Activation key issue with custom products on RHEL 6
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Candlepin
Version: 6.10.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: 6.11.0
Assignee: satellite6-bugs
QA Contact: Lai
URL:
Whiteboard:
Depends On: 1972059 2061787 2061788
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-07 19:07 UTC by Jessica Richards
Modified: 2023-02-21 01:12 UTC (History)
14 users (show)

Fixed In Version: candlepin-4.0.17-1, candlepin-4.1.12-1, candlepin-4.2.1-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2061787 2061788 (view as bug list)
Environment:
Last Closed: 2022-07-05 14:31:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker ENT-3977 0 None None None 2022-03-08 14:43:37 UTC
Red Hat Product Errata RHSA-2022:5498 0 None None None 2022-07-05 14:32:10 UTC

Description Jessica Richards 2022-01-07 19:07:14 UTC
Description of problem:

When registering a RHEL 6 host to a satellite 6.10 server using an activation key that has subscriptions manually enabled for custom repositories, registration fails with this error message:

Problem creating unit ConsumerDTO [uuid: a184c846-67d8-4e6c-8181-04194aa6a7dd, name: fqdn.com, owner id: null]


How reproducible:

100%


Steps to Reproduce:
1.  create an activation key
2.  edit the activation key, click on the subscriptions tab and add subscriptions for one or more custom products
3.  attempt to register a RHEL 6 host using that activation key

Actual results:

Problem creating unit ConsumerDTO [uuid: a184c846-67d8-4e6c-8181-04194aa6a7dd, name: fqdn.com, owner id: null]


Expected results:

successful registration


Additional info:

- the problem doesn't arise if subscriptions for custom products are removed from the activation key

- the problem doesn't arise when registering RHEL 7 hosts

- the problem doesn't arise if simple content access is enabled, although my customer doesn't want to enable SCA

Comment 6 Paul Dudley 2022-05-13 15:08:51 UTC
A few more notes regarding this;

Added an example of a customer hitting this issue in rhel 7.6 and older (including rhel 6 els). They could not reproduce on systems with newer sub-man versions. For this customer, the activation key also had custom and RH product attached. Also for this customer, removing all settings of a SLA, both at the org level and activation key level, also removed this error. We could easily reproduce by adding a SLA (service level) back to the key. However, so far unable to reproduce myself in-house. Logs for the error at the time seen here:
~~~
2022-05-04 01:16:53,032 [thread=http-bio-127.0.0.1-23443-exec-5] [req=02f04ee1-0782-4599-9cde-cb213f98c28b, org=, csid=6d01de11-0440-49a3-af33-6702f559db78] INFO  org.candlepin.common.filter.LoggingFilter - Request: verb=POST, uri=/candlepin/environments/30-16/consumers/?activation_keys=f0d4e0fa-23e6-4b43-b586-f0aea94c4a82
2022-05-04 01:16:56,149 [thread=http-bio-127.0.0.1-23443-exec-5] [req=02f04ee1-0782-4599-9cde-cb213f98c28b, org=, csid=6d01de11-0440-49a3-af33-6702f559db78] INFO  org.candlepin.service.impl.DefaultEntitlementCertServiceAdapter - Generating entitlement cert for pool: Pool [id: 8aeb034a70635f2a017175c592030301, type: NORMAL, product: 974454914143, productName: Custom, quantity: -1] quantity: 1 entitlement id: 9ba9144b250143b58d21648bb7bb603c
2022-05-04 01:16:56,149 [thread=http-bio-127.0.0.1-23443-exec-5] [req=02f04ee1-0782-4599-9cde-cb213f98c28b, org=, csid=6d01de11-0440-49a3-af33-6702f559db78] INFO  org.candlepin.service.impl.DefaultEntitlementCertServiceAdapter - Creating X509 cert for product: Product [uuid: 8aeb034a808a8f9501808a9aaf360017, id: 974454914143, name: Custom]
2022-05-04 01:16:56,173 [thread=http-bio-127.0.0.1-23443-exec-5] [req=02f04ee1-0782-4599-9cde-cb213f98c28b, org=, csid=6d01de11-0440-49a3-af33-6702f559db78] ERROR org.candlepin.resource.ConsumerResource - Problem creating unit:
java.lang.NullPointerException: null
        at java.base/java.lang.String$CaseInsensitiveComparator.compare(String.java:1224)
        at java.base/java.lang.String$CaseInsensitiveComparator.compare(String.java:1218)
...
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.base/java.lang.Thread.run(Thread.java:829)
2022-05-04 01:16:56,175 [thread=http-bio-127.0.0.1-23443-exec-5] [req=02f04ee1-0782-4599-9cde-cb213f98c28b, org=, csid=6d01de11-0440-49a3-af33-6702f559db78] WARN  org.candlepin.audit.EventSinkImpl - Rolling back ActiveMQ transaction.
2022-05-04 01:16:56,176 [thread=http-bio-127.0.0.1-23443-exec-5] [req=02f04ee1-0782-4599-9cde-cb213f98c28b, org=, csid=6d01de11-0440-49a3-af33-6702f559db78] INFO  org.candlepin.common.filter.LoggingFilter - Response: status=400, content-type="application/json", time=3144
~~~

Comment 11 errata-xmlrpc 2022-07-05 14:31:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Satellite 6.11 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:5498

Comment 16 Ian Ballou 2022-10-12 21:58:21 UTC
HOTFIX INSTRUCTIONS FOR SATELLITE 6.10

If you need this hotfix, please content Red Hat support for guidance on obtaining and installing it.


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