Project

General

Profile

Bug #27343

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

Added by Kavita Gaikwad 3 months ago. Updated 3 months ago.

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

Related issues

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

Associated revisions

Revision b4a216c9 (diff)
Added by Kavita Gaikwad 3 months ago

Fixes #27343 - consider value not display name of compute_resource (#432)

History

#1 Updated by Kavita Gaikwad 3 months ago

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

#2 Updated by Kavita Gaikwad 3 months 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.

#3 Updated by The Foreman Bot 3 months ago

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

#4 Updated by The Foreman Bot 3 months ago

  • Fixed in Releases hammer-cli-foreman-0.18.0 added

#5 Updated by Kavita Gaikwad 3 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF