Project

General

Profile

Actions

Bug #36336

open

oVirt managed storage block not shown

Added by Simon Skog about 1 year ago. Updated about 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Compute resources - oVirt
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

I am using a Managed storage block as a storage domain in Ovirt.
When i create a host through foreman and going to choose storage my managed storage block is not available.

If i try to create a VM using a template i have placed on the managed block domain i get following error.
Failed to create a compute DEV-OVIRT (oVirt) instance lamar-kimoto.hackernet.se: undefined method `id' for #<OvirtSDK4::List:0x00007f795dba1250>

Actions #1

Updated by Simon Skog about 1 year ago

Simon Skog wrote:

I am using a Managed storage block as a storage domain in Ovirt.
When i create a host through foreman and going to choose storage my managed storage block is not available.

If i try to create a VM using a template i have placed on the managed block domain i get following error.
Failed to create a compute DEV-OVIRT (oVirt) instance lamar-kimoto.hackernet.se: undefined method `id' for #<OvirtSDK4::List:0x00007f795dba1250>

Done some investigation
oVirt API response for a managed block storage does not have a type set like my other storage types e.g NFS.
And from what i could find in foreman code it seems you are expecting role to be set to data or volume. https://github.com/theforeman/foreman/blob/develop/app/models/compute_resources/foreman/model/ovirt.rb#L236

Maybe this issue is not related to foreman after all.

Actions

Also available in: Atom PDF