Project

General

Profile

Actions

Bug #7699

closed

compute resource info Error: can't convert nil into Array

Added by Bryan Kearney over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Foreman commands (obsolete)
Target version:
-
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1129262
Description of problem:

cannot get Ovirt, GCE, Openstack compute-resource info

(# hammer -p changeme compute-resource create --name rhev-cr2 --provider Ovirt --url https://localhost --user user --password testing)

  1. hammer -v compute-resource info --name rhev-cr2

[ERROR 2014-08-12 08:15:02 Exception] Error: can't convert nil into Array
Error: can't convert nil into Array
[ERROR 2014-08-12 08:15:02 Exception]

TypeError (can't convert nil into Array):
/usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.1.1/lib/hammer_cli_foreman/compute_resource.rb:52:in `concat'
/usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.1.1/lib/hammer_cli_foreman/compute_resource.rb:52:in `print_data'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/lib/hammer_cli/./apipie/command.rb:34:in `execute'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/lib/hammer_cli/./apipie/../abstract.rb:22:in `run'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:in `execute'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/lib/hammer_cli/./apipie/../abstract.rb:22:in `run'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:in `execute'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/lib/hammer_cli/./apipie/../abstract.rb:22:in `run'
/usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run'
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.1/bin/hammer:102
/usr/bin/hammer:19:in `load'
/usr/bin/hammer:19

Version-Release number of selected component (if applicable):
Satellite-6.0.4-RHEL-6-20140806.0


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #9827: compute resource info in API v2 does not send provider typeClosedTomáš Strachota03/19/2015Actions
Actions #1

Updated by Dominic Cleal over 9 years ago

  • Status changed from New to Resolved

Appears to work fine.

Actions #2

Updated by Tomáš Strachota about 9 years ago

  • Category set to Foreman commands (obsolete)
  • Status changed from Resolved to Assigned
  • Assignee set to Tomáš Strachota

I reproduced the issue. It happens only with some provider types. Reopening.

Actions #3

Updated by The Foreman Bot about 9 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli-foreman/pull/172 added
  • Pull request deleted ()
Actions #4

Updated by Tomáš Strachota about 9 years ago

  • Related to Bug #9827: compute resource info in API v2 does not send provider type added
Actions #5

Updated by Anonymous about 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF