Project

General

Profile

Actions

Bug #27343

closed

Remove inconsistency for GCE provider on hammer side to fix compute-profile

Added by Kavita Gaikwad almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Related issues 1 (0 open1 closed)

Related to Hammer CLI - Tracker #27163: Implement CLI endpoints for GCE Compute ResourceResolvedKavita Gaikwad

Actions
Actions #1

Updated by Kavita Gaikwad almost 5 years ago

  • Related to Tracker #27163: Implement CLI endpoints for GCE Compute Resource added
Actions #2

Updated by Kavita Gaikwad almost 5 years ago

Facing error for compute-profile commands:

pry(#<HammerCLIForeman::ComputeAttribute::Create>)> compute_resource_name
=> "google"
[2] pry(#<HammerCLIForeman::ComputeAttribute::Create>)> ::HammerCLIForeman.compute_resources
=> {"ec2"=>#<HammerCLIForeman::ComputeResources::EC2:0x0000000002f34218>,
"gce"=>#<HammerCLIForeman::ComputeResources::GCE:0x0000000002f546a8>,
"libvirt"=>#<HammerCLIForeman::ComputeResources::Libvirt:0x0000000002f2d918>,
"openstack"=>#<HammerCLIForeman::ComputeResources::OpenStack:0x0000000002f16470>,
"ovirt"=>#<HammerCLIForeman::ComputeResources::Ovirt:0x0000000002efd380>,
"rackspace"=>#<HammerCLIForeman::ComputeResources::Rackspace:0x0000000002eeabe0>,
"vmware"=>#<HammerCLIForeman::ComputeResources::VMware:0x0000000002c86a48>}
[3] pry(#<HammerCLIForeman::ComputeAttribute::Create>)>
[DEBUG 2019-07-18T13:51:49 Exception] Using exception handler HammerCLIForeman::ExceptionHandler#handle_general_exception
[ERROR 2019-07-18T13:51:49 Exception] Error: undefined method `interfaces_attrs_name' for nil:NilClass
Could not set the compute profile attributes:
Error: undefined method `interfaces_attrs_name' for nil:NilClass
[ERROR 2019-07-18T13:51:49 Exception]

NoMethodError (undefined method `interfaces_attrs_name' for nil:NilClass):

If you see above output, you will find some inconsistency while using GCE compute resource. Need to fix this asap.

Actions #3

Updated by The Foreman Bot almost 5 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Kavita Gaikwad
  • Pull request https://github.com/theforeman/hammer-cli-foreman/pull/432 added
Actions #4

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases hammer-cli-foreman-0.18.0 added
Actions #5

Updated by Kavita Gaikwad over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF