Project

General

Profile

Actions

Bug #30552

closed

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

Added by Shira Maximov over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Compute resources - VMware
Target version:
-
Difficulty:
Triaged:
No
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.

Actions #1

Updated by yifat makias over 3 years ago

  • Status changed from New to Assigned
  • Assignee set to yifat makias
Actions #2

Updated by The Foreman Bot over 3 years ago

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

Updated by The Foreman Bot over 3 years ago

  • Fixed in Releases 2.4.0 added
Actions #4

Updated by yifat makias over 3 years ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by Tomer Brisker over 3 years ago

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

Also available in: Atom PDF