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 1191348 - Deleting an environment raises 500 ISE with NameError: undefined local variable or method `finalize' for #<Actions::Katello::Environment::Destroy:0x0000000f652c28>
Summary: Deleting an environment raises 500 ISE with NameError: undefined local varia...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.0.8
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-11 05:50 UTC by Sachin Ghai
Modified: 2015-02-13 16:20 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-11 19:30:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
UI and firebug raises 500 ISE with: NameError: undefined local variable or method `finalize' for #<Actions::Katello::Environment::Destroy:0x0000000f652c28> (66.30 KB, image/png)
2015-02-11 05:50 UTC, Sachin Ghai
no flags Details

Description Sachin Ghai 2015-02-11 05:50:12 UTC
Created attachment 990350 [details]
UI and firebug raises 500 ISE with: NameError: undefined local variable or method `finalize' for #<Actions::Katello::Environment::Destroy:0x0000000f652c28>

Description of problem:
This is the issue with latest errata advisory 19815. we have installed Sat6 (6.0.7) from CDN and updated the box with errata packages. But when I tried to delete LifeCycle environment, I got error following error on webUI:

-
An error occurred removing the environment: Task 295cbd7c-e7b5-4838-8b42-2fcdd2f1bb44: NameError: undefined local variable or method `finalize' for #<Actions::Katello::Environment::Destroy:0x0000000f652c28> 
-

firebug raises:

--
"NetworkError: 500 Internal Server Error - https://ibm-x3550m3-13.lab.eng.brq.redhat.com/katello/api/v2/environments/7?$promise=%7B%7D&$resolved=true&created_at=2015-02-11T05:34:15Z&label=dev&library=false&name=dev&organization=%7B%22name%22:%22Default_Organization%22,%22label%22:%22Default_Organization%22%7D&organization_id=1&permissions=%7B%22view_lifecycle_environments%22:true,%22edit_lifecycle_environments%22:true,%22destroy_lifecycle_environments%22:true,%22promote_or_remove_content_views_to_environments%22:true%7D&prior=%7B%22name%22:%22Library%22,%22id%22:1%7D&updated_at=2015-02-11T05:34:15Z"
--


Version-Release number of selected component (if applicable):
Updated latest install of sat6 from CDN with following packages:

ruby193-rubygem-katello-1.5.0-94.el6sat.noarch.rpm
foreman-1.6.0.53-1.el6sat.noarch.rpm
foreman-postgresql-1.6.0.53-1.el6sat.noarch.rpm
foreman-vmware-1.6.0.53-1.el6sat.noarch.rpm
foreman-gce-1.6.0.53-1.el6sat.noarch.rpm
foreman-libvirt-1.6.0.53-1.el6sat.noarch.rpm
foreman-ovirt-1.6.0.53-1.el6sat.noarch.rpm


How reproducible:
always

Steps to Reproduce:
1. create a lifecycle environment
2. delete it
3.

Actual results:
-
An error occurred removing the environment: Task 295cbd7c-e7b5-4838-8b42-2fcdd2f1bb44: NameError: undefined local variable or method `finalize' for #<Actions::Katello::Environment::Destroy:0x0000000f652c28> 
-

firebug raises:

--
"NetworkError: 500 Internal Server Error - https://ibm-x3550m3-13.lab.eng.brq.redhat.com/katello/api/v2/environments/7?$promise=%7B%7D&$resolved=true&created_at=2015-02-11T05:34:15Z&label=dev&library=false&name=dev&organization=%7B%22name%22:%22Default_Organization%22,%22label%22:%22Default_Organization%22%7D&organization_id=1&permissions=%7B%22view_lifecycle_environments%22:true,%22edit_lifecycle_environments%22:true,%22destroy_lifecycle_environments%22:true,%22promote_or_remove_content_views_to_environments%22:true%7D&prior=%7B%22name%22:%22Library%22,%22id%22:1%7D&updated_at=2015-02-11T05:34:15Z"
--

Expected results:
Life cycle environment should be deleted successfully

Additional info:

Comment 6 Bryan Kearney 2015-02-11 19:30:14 UTC
This was due to not restarting the service. Please run katello-service restart. I will update the errata with the same.

Comment 7 sthirugn@redhat.com 2015-02-13 16:17:32 UTC
Removing 6.0.z flag as per Comment 4 above.

Comment 8 sthirugn@redhat.com 2015-02-13 16:20:29 UTC
(In reply to sthirugn from comment #7)
> Removing 6.0.z flag as per Comment 4 above.

correction: Comment 6


Note You need to log in before you can comment on or make changes to this bug.