Project

General

Profile

Actions

Bug #9273

closed

unable to view compute resource information related to docker via cli

Added by Daniel Lobato Garcia about 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1190139
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

Actions #1

Updated by Daniel Lobato Garcia about 9 years ago

  • Assignee deleted (Daniel Lobato Garcia)
Actions #2

Updated by Daniel Lobato Garcia almost 9 years ago

  • Status changed from New to Closed

This is already working:

 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

Actions

Also available in: Atom PDF