Project

General

Profile

Actions

Bug #13778

closed

Libvirt cloud-init provisioning fails

Added by Daniel Lobato Garcia almost 9 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Normal
Category:
Compute resources - libvirt
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When you try to boot a VM with libvirt and cloud-init provisioning, libvirt will make a initial .iso file to be provided during the VM booting process.
This .iso file is created wherever the main volume for the VM is created (storage-pool-path/cloud-init-data.iso).

Fog-libvirt sets iso_dir for all VMs to '/var/lib/libvirt/images' as the default location to fetch the cloud-init .iso.
Foreman will try to use this directory when creating the VM as the location for cloud-init.
However, that may not be right if the storage-pool is not the default one. In my case, I run my libvirt VMs from an external hard-drive, so Foreman needs to understand the iso_dir will be the external hard-drive storage pool, not the default /var/lib/libvirt/images.

Fix is simple, just set iso_dir during the VM creation process.

Actions #1

Updated by The Foreman Bot almost 9 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Daniel Lobato Garcia
  • Pull request https://github.com/theforeman/foreman/pull/3205 added
Actions #2

Updated by Daniel Lobato Garcia over 8 years ago

Closed in favor of a fix in fog-libvirt that's more appropriate - https://github.com/fog/fog-libvirt/pull/20

Actions #3

Updated by Dominic Cleal over 8 years ago

  • Status changed from Ready For Testing to Rejected

Closing this ticket, we'll track it in fog-libvirt only.

Actions

Also available in: Atom PDF