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.
"Import attempt completed for owner .." is false positive log - it should be logged after the NPE that occurred sooner.
org.candlepin.controller.CandlepinPoolManager.processPoolUpdates:366:
Event event = poolEvents.get(existingPool.getId())
.setNewEntity(existingPool)
.buildEvent();
poolEvents shouldnt be null since the same command passed in previous iteration of "for (PoolUpdate updatedPool : updatedPools) {" .
existingPool should be null since "if (existingPool.isMarkedForDelete()) {" would already raise the NPE
existingPool.getId() should be not null (see previous "Pool changed: " pool id)
setNewEntity does not seem to be able to return null
So I suspect poolEvents.get(..) returning null (also candlepin reported 410 Gone, that supports it).
(In reply to Pavel Moravec from comment #1)
> So I suspect poolEvents.get(..) returning null (also candlepin reported 410
> Gone, that supports it).
But poolEvents has been filled properly recently:
Map<String, EventBuilder> poolEvents = new HashMap<String, EventBuilder>();
for (Pool existing : existingPools) {
EventBuilder eventBuilder = eventFactory
.getEventBuilder(Target.POOL, Type.MODIFIED)
.setOldEntity(existing);
poolEvents.put(existing.getId(), eventBuilder);
}
..
return processPoolUpdates(poolEvents, updatedPools);
It seems this bug had to be tested with
a) particular manifest and
b) particular state of CP DB (postgresql)
[xyz@abc .ssh]# systemctl stop tomcat
[xyz@abc .ssh]# su - postgres
-bash-4.2$ dropdb candlepin && createdb candlepin
-bash-4.2$ pg_restore -d candlepin /tmp/candlepin_admin.dump
-bash-4.2$ exit
logout
[xyz@abc ~]# systemctl start tomcat
Create an org temorg
Uploaded manifest a) to temporg and manifest got successfully imported.
VERIFIED with Sat6.1.7 compose1
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, 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-2016:0174
"Import attempt completed for owner .." is false positive log - it should be logged after the NPE that occurred sooner. org.candlepin.controller.CandlepinPoolManager.processPoolUpdates:366: Event event = poolEvents.get(existingPool.getId()) .setNewEntity(existingPool) .buildEvent(); poolEvents shouldnt be null since the same command passed in previous iteration of "for (PoolUpdate updatedPool : updatedPools) {" . existingPool should be null since "if (existingPool.isMarkedForDelete()) {" would already raise the NPE existingPool.getId() should be not null (see previous "Pool changed: " pool id) setNewEntity does not seem to be able to return null So I suspect poolEvents.get(..) returning null (also candlepin reported 410 Gone, that supports it).