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 1295649

Summary: Failed to enable repo on WebUI as "undefined method `valid_substitutions` in katello"
Product: Red Hat Satellite Reporter: Liushihui <shihliu>
Component: WebUIAssignee: Katello Bug Bin <katello-bugs>
WebUI sub component: Katello QA Contact: Katello QA List <katello-qa-list>
Status: CLOSED DUPLICATE Docs Contact:
Severity: high    
Priority: unspecified CC: bbuckingham, cwelton, gxing, hsun, sgao, shihliu
Version: 6.1.0Keywords: Triaged
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-15 13:57:07 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
manifest.zip
none
attachment1
none
attachment2 none

Description Liushihui 2016-01-05 05:48:56 UTC
Created attachment 1111710 [details]
manifest.zip

Description of problem:
In satellite webUI, When enabling a repository set, it will show error info as the following, failed to enable any repo:
"There was an error attempting to enable or disable this repository:
undefined method `valid_substitutions?' for #<Katello::Util::CdnVarSubstitutor:0x0000000f8069e8>"

Version-Release number of selected component (if applicable):
Satellite-6.1.0-RHEL-7-20151218.0
katello-2.2.0.16-1.el7sat.noarch
foreman-1.7.2.50-1.el7sat.noarch
candlepin-0.9.49.9-1.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1. Open satellite webUI,import the manifest in attachment
2. Go to Content--> Red Hat Repositories-->RPM, extend any Product, enable any repository

Actual results:
1. It will show error info, please see the screenshot1 in attachment.
"There was an error attempting to enable or disable this repository:
undefined method `valid_substitutions?' for #<Katello::Util::CdnVarSubstitutor:0x0000000f8069e8>"
2. As failed to enable repo, click on the "see the related failed task.", It will show "Enable" task is failed.please see the screenshot2 in attachment.
 
Expected results:
Success to enable any repo in satellite webUI

Additional info:

Comment 1 Liushihui 2016-01-05 05:50:13 UTC
Created attachment 1111711 [details]
attachment1 [details]

Comment 2 Liushihui 2016-01-05 05:51:11 UTC
Created attachment 1111712 [details]
attachment2 [details]

Comment 4 Brad Buckingham 2016-01-15 13:57:07 UTC

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