Bug #22131
closed"undefined method `persisted?' for nil:NilClass" when creating a RHEV host
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1498447
Description of problem:
Sometimes, when creating a new RHEV host through a dialog, after clicking submit and long waiting (probably related to some timeout), the error message is shown:
"Oops, we're sorry but something went wrong undefined method `persisted?' for nil:NilClass"
With the attached traceback.
Version-Release number of selected component (if applicable):
Reproduced on Sat6.3 snap 18.
How reproducible:
Sometimes, probably after timeout
Steps to Reproduce:
1. Hosts -> Create Host
2. Fill in the form, using RHEV computing resource as "Deploy on"
3. Submit
Actual results:
Error, traceback, operation fails
Expected results:
New host created
Updated by Ori Rabin about 7 years ago
- Status changed from New to Assigned
- Assignee set to Ori Rabin
- Target version set to 113
I was not able to reproduce but from the stacktrace it looks like the problem is here:
/usr/share/foreman/app/helpers/compute_resources_vms_helper.rb:220:in `new_vm?'
Updated by The Foreman Bot about 7 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/5147 added
Updated by Timo Goebel about 7 years ago
- Translation missing: en.field_release set to 296
Updated by Ori Rabin about 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset e2f7f37eb342c4851b86c48f1fa81b2516be6c4e.