Project

General

Profile

Bug #30552

Hammer: undefined method `[]' for nil:NilClass

Added by Shira Maximov 8 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Compute resources - VMware
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1752914

Description of problem:
When creating a VMWare host through Hammer, I get an undefined method error. It is entirely possible that I'm doing something wrong but the error doesn't help me much. No traceback, foreman-tail attached.

Version-Release number of selected component (if applicable):
Reproduced on Sat 6.6 snap 20.

How reproducible:
Deterministic

Steps to Reproduce:
1.Run hammer host create command. I ran:
  1. hammer host create --compute-resource testvmware --lifecycle-environment Library --content-view "Default Organization View" --content-source "$(hostname)" --architecture x86_64 --location "Default Location" --organization "Default Organization" --name "lhellebr-hammer-thick-thick" --domain-id 1 --subnet-id 1 --root-password secretpassword --image vmware-image1 --operatingsystem "RedHat 7.7" --provision-method image --interface "compute_type=VirtualE1000,compute_network=dvportgroup-647,domain-id=1,subnet-id=1"

Actual results:
Could not create the host:
Failed to create a compute testvmware (VMware) instance lhellebr-hammer-thick-thick.lab.eng.bos.redhat.com: undefined method `[]' for nil:NilClass

Expected results:
Host created successfully or some useful error.

Associated revisions

Revision 62ac9fed (diff)
Added by yifat makias 5 months ago

Fixes #30552 - Fix vmware vm cloning when volumes are not present

History

#1 Updated by yifat makias 8 months ago

  • Assignee set to yifat makias
  • Status changed from New to Assigned

#2 Updated by The Foreman Bot 8 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/7942 added

#3 Updated by The Foreman Bot 5 months ago

  • Fixed in Releases 2.4.0 added

#4 Updated by yifat makias 5 months ago

  • Status changed from Ready For Testing to Closed

#5 Updated by Tomer Brisker 5 months ago

  • Fixed in Releases 2.3.0 added
  • Fixed in Releases deleted (2.4.0)

Also available in: Atom PDF