Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1931543

Summary: [lso] Info box titled "Missing storage class" shown even when such LSO storage class already exists
Product: OpenShift Container Platform Reporter: Martin Bukatovic <mbukatov>
Component: Console Storage PluginAssignee: Pranshu Srivastava <prasriva>
Status: CLOSED DUPLICATE QA Contact: Raz Tamir <ratamir>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.7CC: afrahman, aos-bugs, nthomas
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-24 09:19:33 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:
Attachments:
Description Flags
screenshot #1: Create Storage Cluster view, during "Storage and Nodes" step, with info box warning about missing storage class while storage class storage class form shows that such sc exists none

Description Martin Bukatovic 2021-02-22 16:28:50 UTC
Description of problem
======================

In some cases, info box titled "Missing storage class" is shown during "Create
Storage Cluster" wizard even when the storage class exists.

Version-Release number of selected component
============================================

OCP 4.7.0-0.nightly-2021-02-18-110409
LSO 4.7.0-202102130115.p0
OCS 4.7.0-254.ci

How reproducible
================

2/3 (I'm not sure what causes this exactly)

Steps to Reproduce
==================

1. Install OCP cluster on vsphere platform, with each worker node having
   2 local storage block devices attached (to be used later via LSO)
2. Install LSO and OCS operators
3. Via OCP Console, start "Create Storage Cluster" flow, and select "Internal -
   Attached Devices" mode.
4. Configure Local Volume Set during "Create Storage Class" step
5. During next "Storage and Nodes" step, check info boxes presented on the
   screen and try to select lso storage class created in the previous step.

Actual results
==============

Info box with tile "Missing storage class" is shown, with the following text:

> The storage cluster needs to use a storage class to consume the local
> storage. In order to create one you need to discover the available disks and
> create a storage class using the filters to select the disks you wish to use

The problem is that such storage class has been just created, and can be
selected in the form below without any problem.

This misleading info box will then remain active even during final step, just
before submitting the create storage cluster request.

Expected results
================

Info box with tile "Missing storage class" is not shown when the storage class
already exists.

Additional info
===============

When I cancel the process (so that no storage cluster is created) and start it
again, 1st and 2nd step ("Create storage class") will be skipped, I will arrive
at 3rd step "Storage and Nodes" and the info box there will have different
title "Info alert:Internal - Attached devices" which doesn't convey misleading
info anymore.

Info box with tile "Missing storage class" is also during 2nd step "Create
storage class", where it makes sense to be shown every time because this step
is skipped when lso storage class is already created.

When I checked OCP Console screenshots from my stretch cluster testing, I
noticed that some screenshots has the misleading info box about missing storage
class, while others has info box about LSO without misleading warning.

Comment 1 Martin Bukatovic 2021-02-22 16:35:44 UTC
Created attachment 1758638 [details]
screenshot #1: Create Storage Cluster view, during "Storage and Nodes" step, with info box warning about missing storage class while storage class storage class form shows that such sc exists