Project

General

Profile

Actions

Bug #23431

closed

clone_vm No :volumes key in args

Added by Sébastien Bernard over 6 years ago. Updated over 6 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Compute resources - VMware
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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

production.log production.log 23.9 KB Sébastien Bernard, 04/27/2018 04:31 PM

Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Bug #23335: Cannot create VM in a vCenter. NoMethodError.ClosedTimo GoebelActions
Actions #1

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.

Actions #2

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.

Actions #3

Updated by Sébastien Bernard over 6 years ago

  • Priority changed from High to Normal
Actions #4

Updated by Anonymous over 6 years ago

  • Is duplicate of Bug #23335: Cannot create VM in a vCenter. NoMethodError. added
Actions

Also available in: Atom PDF