Bug 1812847

Summary: Openshift Installer fails to create openstack blockstorage volume
Product: OpenShift Container Platform Reporter: Abhishek <aabhishe>
Component: InstallerAssignee: Martin André <maandre>
Installer sub component: OpenShift on OpenStack QA Contact: David Sanz <dsanzmor>
Status: CLOSED NOTABUG Docs Contact:
Severity: high    
Priority: unspecified CC: adahiya, m.andre
Version: 4.3.zFlags: aabhishe: needinfo-
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-31 08:11:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Abhishek 2020-03-12 10:41:51 UTC
Description of problem: Installer fails to create infrastructure with the customized rootVolume param in the install-config.yaml

~~~
      rootVolume:
        size: 50
        type: performance
~~~ 


Version-Release number of selected component (if applicable):
openshift installer 4.3

Steps to Reproduce:

# ./openshift-install create cluster --dir=install
INFO Obtaining RHCOS image file from 'https://releases-art-rhcos.svc.ci.openshift.org/art/storage/releases/rhcos-4.3/43.81.202001142154.0/x86_64/rhcos-43.81.202001142154.0-openstack.x86_64.qcow2.gz?sha256=504b9008adf89bb3d05b75d393e057c6d66ba6c92cf631ca4445d99bbf7e2a57'
INFO Consuming Install Config from target directory
INFO Creating infrastructure resources...
ERROR
ERROR Error: Error creating openstack_blockstorage_volume_v3: Resource not found
ERROR
ERROR   on ../tmp/openshift-install-349457563/masters/main.tf line 30, in resource "openstack_blockstorage_volume_v3" "master_volume":
ERROR   30: resource "openstack_blockstorage_volume_v3" "master_volume" {
ERROR
ERROR
ERROR
ERROR Error: Error creating openstack_blockstorage_volume_v3: Resource not found
ERROR
ERROR   on ../tmp/openshift-install-349457563/masters/main.tf line 30, in resource "openstack_blockstorage_volume_v3" "master_volume":
ERROR   30: resource "openstack_blockstorage_volume_v3" "master_volume" {
ERROR
ERROR
ERROR
ERROR Error: Error creating openstack_blockstorage_volume_v3: Resource not found
ERROR
ERROR   on ../tmp/openshift-install-349457563/masters/main.tf line 30, in resource "openstack_blockstorage_volume_v3" "master_volume":
ERROR   30: resource "openstack_blockstorage_volume_v3" "master_volume" {
ERROR
ERROR
FATAL failed to fetch Cluster: failed to generate asset "Cluster": failed to create cluster: failed to apply using Terraform

Comment 3 Martin André 2020-03-12 15:08:11 UTC
The type needs to map to a valid volume type in your environment. Run the following command to check what types are available to you:

  openstack volume type list

Let us know if it fixes your issue.