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 1770431

Summary: Uncaught ReferenceError: foreman_url is not defined on selecting life cycle env while creating/editing hostgroup
Product: Red Hat Satellite Reporter: Nikhil Kathole <nkathole>
Component: Host GroupAssignee: Kavita <kgaikwad>
Status: CLOSED ERRATA QA Contact: Nikhil Kathole <nkathole>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.7.0CC: egolov, inecas, jpathan, kgaikwad, swadeley
Target Milestone: 6.7.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.14.0-0.4.rc2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-14 13:26:24 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 Nikhil Kathole 2019-11-09 04:45:01 UTC
Description of problem:

Uncaught ReferenceError: foreman_url is not defined on selecting life cycle env while creating/editing hostgroup

host_and_hostgroup_edit-13d1143eed639f1a0b11a5e5c2ff1b9dceb6a23bd614a733fffbe6b181550b64.js:1 Uncaught ReferenceError: foreman_url is not defined
    at Object.KT.hosts.fetchContentViews (host_and_hostgroup_edit-13d1143eed639f1a0b11a5e5c2ff1b9dceb6a23bd614a733fffbe6b181550b64.js:1)
    at HTMLSelectElement.KT.hosts.environmentChanged (host_and_hostgroup_edit-13d1143eed639f1a0b11a5e5c2ff1b9dceb6a23bd614a733fffbe6b181550b64.js:1)
    at HTMLSelectElement.dispatch (jquery.js:4737)
    at HTMLSelectElement.v.handle (jquery.js:4549)
    at Object.trigger (jquery.js:7807)
    at HTMLSelectElement.<anonymous> (jquery.js:7875)
    at Function.each (jquery.js:365)
    at m.fn.init.each (jquery.js:137)
    at m.fn.init.trigger (jquery.js:7874)
    at r.triggerChange (select2.js:1168)
KT.hosts.fetchContentViews @ host_and_hostgroup_edit-13d1143eed639f1a0b11a5e5c2ff1b9dceb6a23bd614a733fffbe6b181550b64.js:1
KT.hosts.environmentChanged @ host_and_hostgroup_edit-13d1143eed639f1a0b11a5e5c2ff1b9dceb6a23bd614a733fffbe6b181550b64.js:1
dispatch @ jquery.js:4737
v.handle @ jquery.js:4549
trigger @ jquery.js:7807
(anonymous) @ jquery.js:7875
each @ jquery.js:365
each @ jquery.js:137
trigger @ jquery.js:7874
triggerChange @ select2.js:1168
onSelect @ select2.js:2465
selectHighlighted @ select2.js:1870
(anonymous) @ select2.js:807
(anonymous) @ select2.js:681
dispatch @ jquery.js:4737
v.handle @ jquery.js:4549

Version-Release number of selected component (if applicable):
Satellite 6.7 snap 1

How reproducible:
always

Steps to Reproduce:
1. Navigate to create new hostgroup
2. select life cycle environment
3. See browser console error

Actual results:

Uncaught ReferenceError: foreman_url is not defined on selecting life cycle env while creating/editing hostgroup


Expected results:

Able to create hostgroup successfully with attached lifecycle env and content view.

Additional info:

Comment 4 Nikhil Kathole 2019-11-11 12:06:03 UTC
*** Bug 1770798 has been marked as a duplicate of this bug. ***

Comment 5 Kavita 2019-11-11 12:29:52 UTC
Created redmine issue https://projects.theforeman.org/issues/28236 from this bug

Comment 6 Bryan Kearney 2019-11-11 13:00:49 UTC
Upstream bug assigned to kgaikwad

Comment 7 Bryan Kearney 2019-11-11 13:00:51 UTC
Upstream bug assigned to kgaikwad

Comment 8 Bryan Kearney 2019-11-20 19:00:59 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28236 has been resolved.

Comment 9 Nikhil Kathole 2019-12-02 14:11:26 UTC
VERIFIED

Version tested:
Satellite 6.7 snap 4

No error on selecting life cycle env while creating/editing hostgroup

Comment 12 errata-xmlrpc 2020-04-14 13:26:24 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/RHSA-2020:1454