Bug 1296843

Summary: Couldn't find SmartProxy with id=1 [WHERE "features"."name" IN ('Pulp Node')] while listing lifecyle-env attached to capsule
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: HammerAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED DUPLICATE QA Contact: Sachin Ghai <sghai>
Severity: medium Docs Contact:
Priority: unspecified    
Version: UnspecifiedCC: pmoravec, sauchter
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-14 10:50:09 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 Sachin Ghai 2016-01-08 09:08:08 UTC
Description of problem:

Following error raised on listing the associated life-cycle env to capsule. Please note that this error raised when we list for default capsule.

root@cloud-qe-6 ~]# hammer -u admin capsule content lifecycle-environments --name cloud-qe-6.redhat.com --organization-id 1
[Foreman] Password for admin: 
Couldn't find SmartProxy with id=1 [WHERE "features"."name" IN ('Pulp Node')]


In case of external capsule, cmd works fine:

[root@cloud-qe-6 ~]# hammer -u admin capsule content lifecycle-environments --name cloud-qe-9.redhat.com --organization-id 1
[Foreman] Password for admin: 
---|------|---------------------
ID | NAME | ORGANIZATION        
---|------|---------------------
2  | Dev  | Default Organization
---|------|---------------------


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

Satellite 6.1.6 compose4

rubygem-hammer_cli_import-0.10.20-1.el7sat.noarch
rubygem-hammer_cli_foreman-0.1.4.15-1.el7sat.noarch
rubygem-hammer_cli_katello-0.0.7.20-1.el7sat.noarch
rubygem-hammer_cli_foreman_bootdisk-0.1.2.7-1.el7sat.noarch
rubygem-hammer_cli_foreman_docker-0.0.3.10-1.el7sat.noarch
rubygem-hammer_cli_foreman_discovery-0.0.1.10-1.el7sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3.5-1.el7sat.noarch
rubygem-hammer_cli-0.1.4.13-1.el7sat.noarch

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:
ERROR 2016-01-08 03:54:40 Exception] Couldn't find SmartProxy with id=1 [WHERE "features"."name" IN ('Pulp Node')]
Couldn't find SmartProxy with id=1 [WHERE "features"."name" IN ('Pulp Node')]
[ERROR 2016-01-08 03:54:40 Exception] 


Expected results:
user should get list of associated env to selected life-cycle env

Additional info:

[ERROR 2016-01-08 03:54:40 Exception] Couldn't find SmartProxy with id=1 [WHERE "features"."name" IN ('Pulp Node')]
Couldn't find SmartProxy with id=1 [WHERE "features"."name" IN ('Pulp Node')]
[ERROR 2016-01-08 03:54:40 Exception] 

RestClient::ResourceNotFound (404 Resource Not Found):
    /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:51:in `get'
    /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_foreman-0.1.4.15/lib/hammer_cli_foreman/commands.rb:271:in `send_request'
    /usr/share/gems/gems/hammer_cli_foreman-0.1.4.15/lib/hammer_cli_foreman/commands.rb:291: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/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>'


[root@cloud-qe-6 ~]#

Comment 3 Pavel Moravec 2016-03-14 10:50:09 UTC

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