Bug 1113014
Summary: | 500 ISE on creating a new host: Operation FAILED: can't convert nil into String | |||
---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Sachin Ghai <sghai> | |
Component: | WebUI | Assignee: | Dmitri Dolguikh <ddolguik> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Sachin Ghai <sghai> | |
Severity: | high | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 6.0.3 | CC: | dcleal, jmontleo, jsherril, sghai | |
Target Milestone: | Unspecified | Keywords: | Triaged | |
Target Release: | Unused | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
URL: | http://projects.theforeman.org/issues/6398 | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1113292 (view as bug list) | Environment: | ||
Last Closed: | 2014-07-02 14:04:54 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1113292 | |||
Attachments: |
Description
Sachin Ghai
2014-06-25 09:31:13 UTC
Created attachment 912000 [details]
Logs from production.log
Created attachment 912001 [details]
foreman-debug logs
Please edit ~foreman/config/environments/production.rb and uncomment "config.log_level = :debug", run "service foreman restart" and retry to get a stack trace in the logs. 1. What type of compute resource are you provisioning onto? 2. If you visit the host page again, does it load correctly with power state? i.e. is the bug only after initial provisioning Looks like this issue is related to bz #1113012. As I stated in steps to reproduce, first I selected the hostgroup and then unselected. So looks like it was not unselected actually with empty row. I tried again with new host creation and without touching hostgroup dropdown. This time provisioning kicked off. I'll share the requested info in comment3 in few minutes. (In reply to Dominic Cleal from comment #3) > Please edit ~foreman/config/environments/production.rb and uncomment > "config.log_level = :debug", run "service foreman restart" and retry to get > a stack trace in the logs. > Please see attachment for traceback. > 1. What type of compute resource are you provisioning onto? Libvirt > 2. If you visit the host page again, does it load correctly with power > state? i.e. is the bug only after initial provisioning On loading, All hosts page and selecting the failed VM, the state still shows "Loading Power state.." However, I can define a New Host Created attachment 912018 [details]
requested stack trace from production.log after enabling debug logs
Could you provide the log including host creation? This is only a partial bit. Is the VM actually running? I suspect it wasn't created. I tried to check via virt-manager and it wasn't created. However UI shows its entry under "All hosts" with "Loading Power state..". I'll try to re-create this issue and share the logs with host creation. I can recreate the issue with following steps. - Go to New Host page (Make sure one hostgroup already created) - select hostgroup from drop down - fill all details in form, I choose 'libvirt' compute resource - de-select the selected hostgroup - submit form Going to attach complete logs with host_create in next comment. Created attachment 912035 [details]
Logs from production.log with host create
There are a couple of odd things in both the latest log file and particularly the foreman-debug archive. Are you getting an error when submitting the host, and then retrying? The foreman-debug archive indicates a host creation that first fails with: "Fetch TFTP boot files for shost.katellolabs.org task failed with the following error: invalid medium for RedHat 6.5" And then a second attempt, which probably due to a bug in the form, is without the attributes required to create a new VM (I'd guess the "Virtual Machine" tab isn't visible when the form reloads). (As a note to myself, validation of medium applicability to an OS should happen earlier too.) (In reply to Dominic Cleal from comment #13) > There are a couple of odd things in both the latest log file and > particularly the foreman-debug archive. Are you getting an error when > submitting the host, and then retrying? > Yes, initially when I deselected the hostgroup and submitted the form, I got following error. Since the Medium text box does not populated on UI when we select hostgroup, So when we unselect it, UI doesn't populate medium text box, it appears only on form submation and after below error. Fetch TFTP boot files for shost1.katellolabs.org task failed with the following error: invalid medium for RedHat 6.5 > The foreman-debug archive indicates a host creation that first fails with: > > "Fetch TFTP boot files for shost.katellolabs.org task failed with the > following error: invalid medium for RedHat 6.5" > Correct.. > And then a second attempt, which probably due to a bug in the form, is > without the attributes required to create a new VM (I'd guess the "Virtual > Machine" tab isn't visible when the form reloads). > > (As a note to myself, validation of medium applicability to an OS should > happen earlier too.) Created redmine issue http://projects.theforeman.org/issues/6379 from this bug Thanks for all of the logs and detail, that was a big help. Note that the associated redmine is a tracker for two separate issues that are relevant here. Upstream bug assigned to ddolguik Verified with sat6 beta snap 11 compose2. Could not reproduce the reported issue and can provision the host successfully. This was delivered with 6.0.3, which is the Satellite 6 Beta. |