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 1296843 - Couldn't find SmartProxy with id=1 [WHERE "features"."name" IN ('Pulp Node')] while listing lifecyle-env attached to capsule
Summary: Couldn't find SmartProxy with id=1 [WHERE "features"."name" IN ('Pulp Node')]...
Keywords:
Status: CLOSED DUPLICATE of bug 1164233
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: Unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: Sachin Ghai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-08 09:08 UTC by Sachin Ghai
Modified: 2017-02-23 19:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-14 10:50:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


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