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:
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 ***