Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
DescriptionJessica 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
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
~~~
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