Actions
Bug #30552
closedHammer: undefined method `[]' for nil:NilClass
Status:
Closed
Priority:
Normal
Assignee:
Category:
Compute resources - VMware
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
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
1.Run hammer host create command. I ran:
- 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.
Updated by yifat makias over 4 years ago
- Status changed from New to Assigned
- Assignee set to yifat makias
Updated by The Foreman Bot over 4 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/7942 added
Updated by yifat makias about 4 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|62ac9fedfa1169c9ee113dea934babab97e97ba1.
Updated by Tomer Brisker about 4 years ago
- Fixed in Releases 2.3.0 added
- Fixed in Releases deleted (
2.4.0)
Actions