Bug 1595120
Summary: | `hammer host create ...` fails with "undefined method `name' for nil:NilClass" | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Jan Hutař <jhutar> |
Component: | Compute Resources - libvirt | Assignee: | Ondřej Pražák <oprazak> |
Status: | CLOSED ERRATA | QA Contact: | Stephen Benjamin <stbenjam> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.4 | CC: | inecas, mhulan, oprazak, pcreech, sjagtap, stbenjam |
Target Milestone: | 6.4.0 | Keywords: | Regression, Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-10-16 18:58:19 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jan Hutař
2018-06-26 07:57:00 UTC
I was able to get the error by stopping libvirt. When the compute resource is available/reachable, the host is created. Nevertheless, this is a bug as we should show a better error message. Created redmine issue http://projects.theforeman.org/issues/24125 from this bug Upstream bug assigned to oprazak Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/24125 has been resolved. Verified: satellite-6.4.0-10.beta.el7sat.noarch foreman-1.18.0.1-1.el7sat.noarch I verified this bug by adding a libvirt compute resource to my Satellite instance and then trying to provision a host with libvirtd shutoff. Instead of the error mentioned in comment #0, Satellite correctly informs me of the true error: [root@hp-moonshot-01-c09 ~]# hammer -u admin -p changeme host create --architecture-id="1" --compute-resource-id="1" --domain-id="2" --ip="192.168.121.19" --location-id="2" --mac="94:e3:d9:06:72:48" --medium-id="1" --name="stbenjam$RANDOM" --operatingsystem-id="2" --organization-id="1" --partition-table-id="94" --puppet-proxy-id="1" --root-password="\xea\xae\x8f\xf0\x98\x87\x8a\xe9\xb5\xa8\xd0\x9e\xec\x8b\xa4\xe6\xa9\x88\xe0\xae\x88\xe1\x8b\xb8\xe5\x83\x95\xf0\x97\xbf\xa3\xe7\x87\x93\xf0\x96\xa6\x9e\xeb\xa9\x83\xe7\x88\x8a\xe6\x88\x8f\xe7\x9d\x8d\xea\x85\xa0\xef\xac\x85" --environment-id 1 Could not create the host: ERF42-5864 [Foreman::Exception]: Unable to connect to libvirt due to: Error making a connection to libvirt URI qemu+ssh://stephen.usersys.redhat.com/system: Call to virConnectOpen failed: Cannot recv data: Host key verification failed.: Connection reset by peer. Please make sure your libvirt compute resource is reachable and that you have appropriate access permissions. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:2927 |