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 1312505

Summary: export tasks fails with undefined method `show_world'
Product: Red Hat Satellite Reporter: Justin Sherrill <jsherril>
Component: Tasks PluginAssignee: Marek Hulan <mhulan>
Status: CLOSED ERRATA QA Contact: Lukas Pramuk <lpramuk>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, cwelton, inecas, lpramuk, mhulan
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/14629
Whiteboard:
Fixed In Version: rubygem-foreman-tasks-0.7.14.3-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:30:40 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:

Description Justin Sherrill 2016-02-26 22:57:26 UTC
Description of problem:

run foreman-rake foreman_tasks:export_tasks

it will error with:

Gathering last 60 days of tasks.
1/15
2/15
3/15
4/15
rake aborted!
NoMethodError: undefined method `show_world' for #<TaskRender:0x00000009e63cd8>



Version-Release number of selected component (if applicable):
6.2.0

How reproducible:
always

Comment 1 Bryan Kearney 2016-04-13 19:58:45 UTC
Created redmine issue http://projects.theforeman.org/issues/14629 from this bug

Comment 2 Bryan Kearney 2016-04-15 08:11:21 UTC
Upstream bug assigned to mhulan

Comment 5 Lukas Pramuk 2016-04-20 18:20:06 UTC
VERIFIED.

tfm-rubygem-foreman-tasks-0.7.14.3-1.el7sat.noarch

REPRO:
# foreman-rake foreman_tasks:export_tasks
...
Gathering last 60 days of tasks.
1/118
2/118
3/118
4/118
5/118
6/118
7/118
8/118
9/118
10/118
11/118
12/118
13/118
rake aborted!
NoMethodError: undefined method `show_world' for #<TaskRender:0x0000000e089158>
...

vs.

FIX:
# foreman-rake foreman_tasks:export_tasks/opt/theforeman/tfm/root/usr/share/gems/gems/docker-api-1.17.0/lib/docker.rb:103: warning: circular argument reference - connection
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.18/config/routes/overrides.rb:3: warning: already initialized constant Katello::WhitelistConstraint::PATHS
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.18/config/routes/overrides.rb:3: warning: previous definition of PATHS was here
Gathering last 60 days of tasks.
1/118
2/118
3/118
4/118
5/118
6/118
7/118
8/118
9/118
10/118
11/118
12/118
13/118
14/118
15/118
16/118
17/118
18/118
19/118
20/118
21/118
22/118
23/118
24/118
25/118
26/118
27/118
28/118
29/118
30/118
31/118
32/118
33/118
34/118
35/118
36/118
37/118
38/118
39/118
40/118
41/118
42/118
43/118
44/118
45/118
46/118
47/118
48/118
49/118
50/118
51/118
52/118
53/118
54/118
55/118
56/118
57/118
58/118
59/118
60/118
61/118
62/118
63/118
64/118
65/118
66/118
67/118
68/118
69/118
70/118
71/118
72/118
73/118
74/118
75/118
76/118
77/118
78/118
79/118
80/118
81/118
82/118
83/118
84/118
85/118
86/118
87/118
88/118
89/118
90/118
91/118
92/118
93/118
94/118
95/118
96/118
97/118
98/118
99/118
100/118
101/118
102/118
103/118
104/118
105/118
106/118
107/118
108/118
109/118
110/118
111/118
112/118
113/118
114/118
115/118
116/118
117/118
118/118
tar cvzf /tmp/task-export-1461176019.tar.gz /tmp/task-export20160420-11861-wvzfl6 > /dev/null
tar: Removing leading `/' from member names
Created /tmp/task-export-1461176019.tar.gz

Comment 6 Bryan Kearney 2016-07-27 11:30:40 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/RHBA-2016:1501