Bug #4015

Cannot provisiong oVirt/RHEV VM from template with finish script

Added by Jimmi Dyson almost 4 years ago. Updated over 3 years ago.

Status:Closed
Priority:Normal
Assigned To:Jimmi Dyson
Category:Compute resources - oVirt
Target version:Sprint 20
Difficulty: Bugzilla link:
Found in release: Pull request:
Story points-
Velocity based estimate-
Release1.5.0Release relationshipAuto

Description

Provisioning a VM on oVirt/RHEV via a template requires a finish template to be run over SSH in order to configure the provisioned VM. In order for Foreman to attempt to run the finish template over SSH, the compute resource needs to provide an :image capability.

From app/models/concerns/orchestration/ssh_provision.rb:

def ssh_provision?
compute_attributes.present? && capabilities.include?(:image)
end

However, ovirt doesn't (app/models/compute_resources/foreman/model/ovirt.rb):

def capabilities
[:build]
end

This prevents us from building VMs in RHEV from a RHEV template, something we would much prefer to do over kickstarting every time.


Related issues

Related to Foreman - Feature #4422: Implement available_images for oVirt to populate new imag... Closed 02/24/2014

Associated revisions

Revision 99527500
Added by Jimmi Dyson over 3 years ago

fixes #4015 - support oVirt using templates like images

History

#1 Updated by Dominic Cleal almost 4 years ago

  • Status changed from New to Ready For Testing
  • Assigned To set to Jimmi Dyson
  • Target version set to Sprint 19

#2 Updated by Dmitri Dolguikh almost 4 years ago

  • Target version changed from Sprint 19 to Sprint 20

#3 Updated by Dominic Cleal over 3 years ago

  • Release set to 1.5.0

#4 Updated by Anonymous over 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#5 Updated by Dominic Cleal over 3 years ago

  • Related to Feature #4422: Implement available_images for oVirt to populate new image form added

Also available in: Atom PDF