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.

Bug 1587971

Summary: NoMethodError: undefined method `caller_execution_plan_id' for #<CreateRssNotifications:...>
Product: Red Hat Satellite Reporter: Lukáš Hellebrandt <lhellebr>
Component: Tasks PluginAssignee: Ivan Necas <inecas>
Status: CLOSED ERRATA QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.4CC: aruzicka, inecas, pcreech, rdrazny
Target Milestone: 6.4.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman-tasks-0.13.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-16 19:25:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
foreman-tail.log none

Description Lukáš Hellebrandt 2018-06-06 11:34:30 UTC
Created attachment 1448292 [details]
foreman-tail.log

Description of problem:
This happens with multiple actions but I hit it while importing a manifest which broke manifest import/delete/refresh even for future attempts (manifest wasn't imported and a not very helpful WebUI error message [1] was shown). Traceback attached.

[1] Error importing manifest. Validation failed: Locations expecting locations used by hosts or inherited (check mismatches report)., Domains expecting domains used by hosts or inherited (check mismatches report)., Subnets expecting subnets used by hosts or inherited (check mismatches report)., Compute resources expecting compute resources used by hosts or inherited (check mismatches report).

Version-Release number of selected component (if applicable):
Sat 6.4 snap 6

How reproducible:
Random

Steps to Reproduce:
For me, importing a manifest was enough; however, on another instance it didn't happen

Actual results:
Traceback, action failed

Expected results:
No traceback, action successful

Additional info:
The traceback isn't limited to manifest import; however, it always seems related to the RSS feed

Comment 1 Lukáš Hellebrandt 2018-06-06 11:36:43 UTC
This is redmine issue https://projects.theforeman.org/issues/23439

Comment 2 Radovan Drazny 2018-06-06 11:55:43 UTC
I don't think it is related exclusively to the RSS feed, but to notifications in general. I didn't encounter the issue while importing a manifest as described in the initial report, but got number of "undefined method `caller_execution_plan_id'" in logs, all related to notifications.

# grep -R "caller_execution_plan_id" .
./production.log-20180606:NoMethodError: undefined method `caller_execution_plan_id' for #<CreateRssNotifications:0x000000000b69fce8>
./production.log-20180606:NoMethodError: undefined method `caller_execution_plan_id' for #<CreateRssNotifications:0x000000000b1b5110>
./production.log-20180606:NoMethodError: undefined method `caller_execution_plan_id' for #<CreatePulpDiskSpaceNotifications:0x0000000008939b00>
./production.log-20180606:NoMethodError: undefined method `caller_execution_plan_id' for #<CreatePulpDiskSpaceNotifications:0x000000000902a310>
./production.log-20180606:NoMethodError: undefined method `caller_execution_plan_id' for #<SendExpireSoonNotifications:0x00000000082a1888>
./production.log-20180606:NoMethodError: undefined method `caller_execution_plan_id' for #<SendExpireSoonNotifications:0x000000000961c7c8>
./production.log-20180606:NoMethodError: undefined method `caller_execution_plan_id' for #<CreatePulpDiskSpaceNotifications:0x0000000009b4bfa0>
./production.log-20180606:NoMethodError: undefined method `caller_execution_plan_id' for #<SendExpireSoonNotifications:0x000000000a11ab70>
./production.log-20180606:NoMethodError: undefined method `caller_execution_plan_id' for #<CreateRssNotifications:0x000000000cf56a20>
./production.log-20180606:NoMethodError: undefined method `caller_execution_plan_id' for #<CreateRssNotifications:0x000000000dca5ca8>
./production.log-20180606:NoMethodError: undefined method `caller_execution_plan_id' for #<CreateRssNotifications:0x000000000d70abb8>
./production.log-20180606:NoMethodError: undefined method `caller_execution_plan_id' for #<CreateRssNotifications:0x000000000b718ff8>
./production.log-20180606:NoMethodError: undefined method `caller_execution_plan_id' for #<CreatePulpDiskSpaceNotifications:0x000000000d875b88>
./production.log-20180606:NoMethodError: undefined method `caller_execution_plan_id' for #<CreatePulpDiskSpaceNotifications:0x000000000b8395e0>
./production.log-20180606:NoMethodError: undefined method `caller_execution_plan_id' for #<SendExpireSoonNotifications:0x000000000bbcf740>
./production.log-20180606:NoMethodError: undefined method `caller_execution_plan_id' for #<SendExpireSoonNotifications:0x000000000b76e098>
./production.log-20180606:NoMethodError: undefined method `caller_execution_plan_id' for #<SendExpireSoonNotifications:0x000000000b3fd468>
./production.log-20180606:NoMethodError: undefined method `caller_execution_plan_id' for #<CreatePulpDiskSpaceNotifications:0x0000000008a677c0>
./production.log-20180606:NoMethodError: undefined method `caller_execution_plan_id' for #<CreateRssNotifications:0x00000000092600f8>
./production.log-20180606:NoMethodError: undefined method `caller_execution_plan_id' for #<CreateRssNotifications:0x00000000094ac2f8>

Comment 4 Satellite Program 2018-06-11 14:24:14 UTC
Upstream bug assigned to inecas

Comment 5 Satellite Program 2018-06-11 14:24:17 UTC
Upstream bug assigned to inecas

Comment 10 Lukáš Hellebrandt 2018-09-11 16:19:19 UTC
I am not aware of any deterministic reproducer. I tried importing a manifest => OK. I checked multiple my machines with different composes => OK. I checked automation logs => OK. The change is present in package and the package is present in the compose => OK.

=> Verified with Sat 6.4 snap 20.

Comment 11 Bryan Kearney 2018-10-16 19:25:13 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, 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-2018:2927