Bug 1295572 - Error thrown in CLI/API when trying to enable repos
Summary: Error thrown in CLI/API when trying to enable repos
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: Unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
high vote
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: Katello QA List
URL:
Whiteboard:
: 1293569 1295649 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-04 22:08 UTC by Corey Welton
Modified: 2019-06-13 21:25 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-21 13:31:50 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Corey Welton 2016-01-04 22:08:35 UTC
Description of problem:

(Discovered by automation suite)

An error gets thrown when trying to enable repos.  This is seen in the API and CLI.




Version-Release number of selected component (if applicable):
6.1.6 Compose #2

How reproducible:


Steps to Reproduce:
1.  LANG=en_US.UTF-8  hammer -v -u admin -p changeme --output=csv repository-set enable --product="Red Hat Enterprise Linux Server" --basearch="x86_64" --releasever="6Server" --name="Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs)" --organization-id="6"


Actual results:

[ERROR 2016-01-04 16:13:41 Exception] undefined method `valid_substitutions?' for #<Katello::Util::CdnVarSubstitutor:0x0000000f045178>
Could not enable repository:
  undefined method `valid_substitutions?' for #<Katello::Util::CdnVarSubstitutor:0x0000000f045178>
[ERROR 2016-01-04 16:13:41 Exception] 

RestClient::InternalServerError (500 Internal Server Error):
    /usr/share/gems/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!'
    /usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in `process_result'
    /usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in `block in transmit'
    /usr/share/ruby/net/http.rb:852:in `start'
    /usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in `transmit'
    /usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
    /usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
    /usr/share/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb:76:in `put'
    /usr/share/gems/gems/apipie-bindings-0.0.11/lib/apipie_bindings/api.rb:279:in `call_client'
    /usr/share/gems/gems/apipie-bindings-0.0.11/lib/apipie_bindings/api.rb:210:in `http_call'
    /usr/share/gems/gems/apipie-bindings-0.0.11/lib/apipie_bindings/api.rb:160:in `call'
    /usr/share/gems/gems/apipie-bindings-0.0.11/lib/apipie_bindings/resource.rb:14:in `call'
    /usr/share/gems/gems/hammer_cli-0.1.4.13/lib/hammer_cli/apipie/command.rb:43:in `send_request'
    /usr/share/gems/gems/hammer_cli_foreman-0.1.4.15/lib/hammer_cli_foreman/commands.rb:185:in `send_request'
    /usr/share/gems/gems/hammer_cli-0.1.4.13/lib/hammer_cli/apipie/command.rb:34:in `execute'
    /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
    /usr/share/gems/gems/hammer_cli-0.1.4.13/lib/hammer_cli/abstract.rb:23:in `run'
    /usr/share/gems/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:in `execute'
    /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
    /usr/share/gems/gems/hammer_cli-0.1.4.13/lib/hammer_cli/abstract.rb:23:in `run'
    /usr/share/gems/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:in `execute'
    /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
    /usr/share/gems/gems/hammer_cli-0.1.4.13/lib/hammer_cli/abstract.rb:23:in `run'
    /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run'
    /usr/share/gems/gems/hammer_cli-0.1.4.13/bin/hammer:108:in `<top (required)>'
    /usr/bin/hammer:23:in `load'
    /usr/bin/hammer:23:in `<main>'

Expected results:
No errors thrown

Additional info:

Similar error for API, as seen via nailgun

2016-01-04 16:11:34 - nailgun.client - WARNING - Received HTTP 500 response: {"displayMessage":"undefined method `valid_substitutions?' for #<Katello::Util::CdnVarSubstitutor:0x0000000e82a790>","errors":["undefined method `valid_substitutions?' for #<Katello::Util::CdnVarSubstitutor:0x0000000e82a790>"]}

Comment 2 Bryan Kearney 2016-01-05 19:49:48 UTC
in compose 3.

Comment 3 Bryan Kearney 2016-01-05 20:13:06 UTC
in compose 3.

Comment 4 Brad Buckingham 2016-01-15 13:57:04 UTC
*** Bug 1293569 has been marked as a duplicate of this bug. ***

Comment 5 Brad Buckingham 2016-01-15 13:57:07 UTC
*** Bug 1295649 has been marked as a duplicate of this bug. ***

Comment 6 Corey Welton 2016-01-18 19:29:28 UTC
Verified in 6.1.6 compose #5

[root@qe-sat6-rhel7 ~]# LANG=en_US.UTF-8  hammer -v -u admin -p changeme --output=csv repository-set enable --product="Red Hat Enterprise Linux Server" --basearch="x86_64" --releasever="6Server" --name="Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs)" --organization-id="1"
Message,Id
Repository enabled,183f35c7-c635-4f36-93fd-6a6353f40b1f

Comment 7 Bryan Kearney 2016-01-21 13:31:50 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/RHBA-2016:0052


Note You need to log in before you can comment on or make changes to this bug.