Actions
Bug #23431
closedclone_vm No :volumes key in args
Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Compute resources - VMware
Target version:
-
Description
Creation was working OK before upgrading from 1.16.1 to 1.17.
Now every attemps to create a VM yield an exception :
| NoMethodError: undefined method `first' for nil:NilClass | /usr/share/foreman/app/models/compute_resources/foreman/model/vmware.rb:498:in `clone_vm' | /usr/share/foreman/app/models/compute_resources/foreman/model/vmware.rb:443:in `create_vm'
I'm joining an extract from the production log with some name expurged.
Some of the messages are in french but they are not critical for the understanding.
This is a copy of the bug #23418 which was wrongly put in kattelo project.
Files
Updated by Sébastien Bernard over 6 years ago
A quick analysis shows that the args do not contains any attribute named :volumes.
Thus the call to args[:volumes].first[:datastore] breaks.
Updated by Sébastien Bernard over 6 years ago
- Status changed from New to Duplicate
At last, it appears to be another dup of #23335.
Bug is fixed by applying the patch.
Updated by Sébastien Bernard over 6 years ago
- Priority changed from High to Normal
Updated by Anonymous over 6 years ago
- Is duplicate of Bug #23335: Cannot create VM in a vCenter. NoMethodError. added
Actions