Bug 1861192

Summary: Lifecycle Environment does not prompt for selecting Organization
Product: Red Hat Satellite Reporter: Anand Agrawal <aagrawal>
Component: Lifecycle EnvironmentsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Lai <ltran>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.8.0   
Target Milestone: Unspecified   
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: 2020-08-03 13:07:32 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 Anand Agrawal 2020-07-28 03:26:45 UTC
Description of problem:
Lifecycle Environment should not load in Any Organization, rather it should ask for selecting Organization.

It throws below error in Production.log

2020-07-28T08:45:58 [E|app|a1631d2f] Katello::HttpErrors::NotFound: Couldn't find organization ''
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.0.rc4.1/app/controllers/katello/api/v2/api_controller.rb:161:in `find_optional_organization'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:428:in `block in make_lambda'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:181:in `block (2 levels) in halting_and_conditional'
/opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.1/lib/abstract_controller/callbacks.rb:34:in `block (2 levels) in <module:Callbacks>'


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


How reproducible:
Always

Steps to Reproduce:
1. Create lifecycle environment 'LC-1' in Organization 1
2. Create lifecycle environment 'LC-2' in Organization 2
3. Now select the Organization from the top bar as 'Any Organization'

Actual results:
It shows blank page with no lifecycle and fails with above error in log

Expected results:
It should ask to select the Organization

Additional info:

Comment 1 Brad Buckingham 2020-08-03 13:07:32 UTC

*** This bug has been marked as a duplicate of bug 1861970 ***