Bug 2003729

Summary: [UI][External mode] Two storage system and storage cluster got created from UI
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Jilju Joy <jijoy>
Component: management-consoleAssignee: afrahman
Status: CLOSED DUPLICATE QA Contact: Elad <ebenahar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.9CC: jefbrown, madam, nthomas, ocs-bugs, odf-bz-bot
Target Milestone: ---Keywords: Regression, TestBlocker
Target Release: ---   
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-09-15 07:18:11 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
Screen recording none

Description Jilju Joy 2021-09-13 14:19:50 UTC
Created attachment 1822800 [details]
Screen recording

Description of problem (please be detailed as possible and provide log
snippests):
When trying to create a external mode storage system from UI, two storage system and two storage cluster got created.

$ oc get storagecluster
NAME                          AGE     PHASE   EXTERNAL   CREATED AT             VERSION
ocs-external-storagecluster   7m32s   Ready   true       2021-09-13T14:03:54Z   4.9.0
ocs-storagecluster            7m32s   Error              2021-09-13T14:03:54Z   


$ oc get storagesystem
NAME                                        STORAGE-SYSTEM-KIND                  STORAGE-SYSTEM-NAME
ocs-external-storagecluster-storagesystem   storagecluster.ocs.openshift.io/v1   ocs-external-storagecluster
ocs-storagecluster-storagesystem            storagecluster.ocs.openshift.io/v1   ocs-storagecluster



Version of all relevant components (if applicable):
$ oc get csv
NAME                            DISPLAY                       VERSION        REPLACES   PHASE
noobaa-operator.v4.9.0-132.ci   NooBaa Operator               4.9.0-132.ci              Succeeded
ocs-operator.v4.9.0-132.ci      OpenShift Container Storage   4.9.0-132.ci              Succeeded
odf-operator.v4.9.0-132.ci      OpenShift Data Foundation     4.9.0-132.ci              Succeeded


$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.9.0-0.nightly-2021-09-10-170926   True        False         94m     Cluster version is 4.9.0-0.nightly-2021-09-10-170926

Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?
Yes, two storage cluster and two storage system got created.

Is there any workaround available to the best of your knowledge?
No

Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?
1

Can this issue reproducible?
Reporting the first occurrence.

Can this issue reproduce from the UI?
Yes, storage system creation was done from UI

If this is a regression, please provide more details to justify this:


Steps to Reproduce:
1. Create an external mode storage system by selecting "
Connect an external storage platform" and Ceph storage.


Actual results:
Two storage system got created instead of one. Two storage cluster was also created.

Expected results:
Only one storage system and storage cluster should be created.

Additional info:

Comment 2 Jilju Joy 2021-09-13 14:22:08 UTC
Adding regression keyword because external mode cluster creation from UI was working in 4.8

Comment 3 Jilju Joy 2021-09-13 14:27:29 UTC
Due to the bug #2003711, the script ceph-external-cluster-details-exporter.py was created from CLI using the command given in https://bugzilla.redhat.com/show_bug.cgi?id=1939497#c10