"undefined method `persisted?' for nil:NilClass" when creating a RHEV host
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.
Sometimes, probably after timeout
Steps to Reproduce:
1. Hosts -> Create Host
2. Fill in the form, using RHEV computing resource as "Deploy on"
Error, traceback, operation fails
New host created