Bug 1360771
| Summary: | Dashboard gives undefined method `label' for nil:NilClass | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Sean O'Keeffe <sokeeffe> |
| Component: | Dashboard | Assignee: | Justin Sherrill <jsherril> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.2.0 | CC: | bbuckingham, bkearney, jsherril, mmccune, paul.seymour, rudneibertol, sthirugn, xdmoon |
| Target Milestone: | Unspecified | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-08-16 21:51:27 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
Sean O'Keeffe
2016-07-27 12:44:25 UTC
You can delete a tasks using, maybe replacing the label. # foreman-rake console ForemanTasks::Task.where(:state => :stopped).where(:label => "Actions::Katello::Repository::Sync").destroy_all Upstream bug assigned to jsherril OK hitting this myself and raised a dupe BZ#1364768 as my search-foo was not great. Now how to resolve it ? *** Bug 1364768 has been marked as a duplicate of this bug. *** I managed to fix this (or workaround it at least) by applying this:- https://github.com/Katello/katello/pull/6028 Cleared sessions & katello-service restart I've same error, and decided updating file /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.68/app/models/katello/content_view_history.rb
line ~45
-def humanized_action
- case self.task.label
- when "Actions::Katello::ContentViewVersion::Export"
- _("Exported version")
- when "Actions::Katello::ContentView::Publish"
- _("Published new version")
- when "Actions::Katello::ContentView::Promote"
- _("Promoted to %{environment}") % { :environment => self.environment.name }
- when "Actions::Katello::ContentView::Remove"
- _("Deleted from %{environment}") % { :environment => self.environment.name }
- end
-end
+def humanized_action
+ case self.task.try(:label)
+ when "Actions::Katello::ContentViewVersion::Export"
+ _("Exported version")
+ when "Actions::Katello::ContentView::Publish"
+ _("Published new version")
+ when "Actions::Katello::ContentView::Promote"
+ _("Promoted to %{environment}") % { :environment => self.environment.try(:name) || _('Unknown') }
+ when "Actions::Katello::ContentView::Remove"
+ _("Deleted from %{environment}") % { :environment => self.environment.try(:name) || _('Unknown')}
+ else
+ _("Unknown Action")
+ end
+end
Clear all tasks in DynFlow, database and pulp.
Restart all services.
*** This bug has been marked as a duplicate of bug 1361793 *** |