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 1191348

Summary: Deleting an environment raises 500 ISE with NameError: undefined local variable or method `finalize' for #<Actions::Katello::Environment::Destroy:0x0000000f652c28>
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: WebUIAssignee: Katello Bug Bin <katello-bugs>
WebUI sub component: Katello QA Contact: Katello QA List <katello-qa-list>
Status: CLOSED NOTABUG Docs Contact:
Severity: high    
Priority: high CC: bkearney, sthirugn
Version: 6.0.8Keywords: Regression
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-11 19:30:14 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
UI and firebug raises 500 ISE with: NameError: undefined local variable or method `finalize' for #<Actions::Katello::Environment::Destroy:0x0000000f652c28> none

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