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 1190139

Summary: unable to view compute resource information related to docker via cli
Product: Red Hat Satellite Reporter: Kedar Bidarkar <kbidarka>
Component: HammerAssignee: Daniel Lobato Garcia <dlobatog>
Status: CLOSED CURRENTRELEASE QA Contact: Tazim Kolhar <tkolhar>
Severity: high Docs Contact:
Priority: unspecified    
Version: NightlyCC: bbuckingham, bkearney, cwelton, tkolhar
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/9273
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 13:55:57 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:
Bug Depends On:    
Bug Blocks: 1190289    

Description Kedar Bidarkar 2015-02-06 12:39:01 UTC
Description of problem:
unable to view compute resource information related to docker via cli.

Trying to view information related to libvirt compute-resource works fine though.

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

How reproducible:
always

Steps to Reproduce:
1. add a compute-resource of type docker
2. try to fetch info related to it 
3.

Actual results:
[root@yyy yum.repos.d]# hammer -u admin -p changeme compute-resource info --id 1
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:68: warning: already initialized constant DEFAULT_LABEL_INDENT
Error: can't convert nil into Array
[root@yyy yum.repos.d]# hammer -u admin -p changeme compute-resource info --name docker_resource
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:68: warning: already initialized constant DEFAULT_LABEL_INDENT
Error: can't convert nil into Array
[root@yyy yum.repos.d]# hammer -u admin -p changeme compute-resource list --organization-id 1
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:68: warning: already initialized constant DEFAULT_LABEL_INDENT
---|-----------------|---------
ID | NAME            | PROVIDER
---|-----------------|---------
1  | docker_resource | Docker  
---|-----------------|---------


Expected results:
should display the info related to compute-resources

Additional info:

no errors seen in foreman/production.log

Comment 2 Daniel Lobato Garcia 2015-02-06 21:41:56 UTC
Created redmine issue http://projects.theforeman.org/issues/9273 from this bug

Comment 3 Daniel Lobato Garcia 2015-05-13 11:25:58 UTC
As per the redmine comment:

This is already working: 
<pre>
 daniel  localhost  ~  workspace  hammer-cli   master  64  hammer compute-resource info --id 34
Id:          34
Name:        AWS
Provider:    EC2
Url:         eu-west-1
Description:
User:
Created at:  2014/12/03 17:29:21
Updated at:  2014/12/03 17:29:21
Region:

 daniel  localhost  ~  workspace  hammer-cli   master  hammer compute-resource info --id 28
Id:            28
Name:          AsusDocker
Provider:      Docker
Url:           unix:///var/run/docker.sock
Description:
User:          elobato
Locations:
    513
Organizations:
    Lobacorp
Created at:    2014/09/23 10:37:41
Updated at:    2015/04/12 14:33:33
</pre>

Comment 6 Tazim Kolhar 2015-05-19 07:28:59 UTC
VERIFIED:
# rpm -qa | grep foreman
foreman-1.7.2.21-1.el7sat.noarch
ruby193-rubygem-foreman_discovery-2.0.0.13-1.el7sat.noarch
foreman-libvirt-1.7.2.21-1.el7sat.noarch
ruby193-rubygem-foreman_gutterball-0.0.1.9-1.el7sat.noarch
foreman-postgresql-1.7.2.21-1.el7sat.noarch
ruby193-rubygem-foreman_bootdisk-4.0.2.13-1.el7sat.noarch
dell-pem710-01.rhts.eng.bos.redhat.com-foreman-proxy-client-1.0-1.noarch
foreman-ovirt-1.7.2.21-1.el7sat.noarch
rubygem-hammer_cli_foreman-0.1.4.11-1.el7sat.noarch
foreman-selinux-1.7.2.13-1.el7sat.noarch
foreman-gce-1.7.2.21-1.el7sat.noarch
ruby193-rubygem-foreman-redhat_access-0.1.0-1.el7sat.noarch
ruby193-rubygem-foreman-tasks-0.6.12.5-1.el7sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3.4-1.el7sat.noarch
rubygem-hammer_cli_foreman_docker-0.0.3.6-1.el7sat.noarch
ruby193-rubygem-foreman_docker-1.2.0.12-1.el7sat.noarch
ruby193-rubygem-foreman_hooks-0.3.7-2.el7sat.noarch
rubygem-hammer_cli_foreman_bootdisk-0.1.2.7-1.el7sat.noarch
foreman-proxy-1.7.2.4-1.el7sat.noarch
dell-pem710-01.rhts.eng.bos.redhat.com-foreman-client-1.0-1.noarch
dell-pem710-01.rhts.eng.bos.redhat.com-foreman-proxy-1.0-2.noarch
foreman-vmware-1.7.2.21-1.el7sat.noarch
rubygem-hammer_cli_foreman_discovery-0.0.1.10-1.el7sat.noarch
foreman-compute-1.7.2.21-1.el7sat.noarch
foreman-debug-1.7.2.21-1.el7sat.noarch



steps:
# hammer compute-resource list 
[Foreman] Username: admin
[Foreman] Password for admin: 
---|--------------------|---------
ID | NAME               | PROVIDER
---|--------------------|---------
1  | libvirt            | Libvirt 
2  | test_comp_resource | Docker  
---|--------------------|---------

# hammer -u admin -p changeme compute-resource info --id 2
Id:            2
Name:          test_comp_resource
Provider:      Docker
Url:           https://docker.example.com:4243
Description:   
User:          test
Organizations: 
    Default Organization
Created at:    2015/05/19 07:26:31
Updated at:    2015/05/19 07:26:31

Comment 7 Bryan Kearney 2015-08-11 13:19:35 UTC
This bug is slated to be released with Satellite 6.1.

Comment 8 Bryan Kearney 2015-08-12 13:55:57 UTC
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.