Bug 2088434 - [ODF-to-ODF] Misleading logs/status when ocs-consumer re-installed with the same onboarding-ticket which was used previously
Summary: [ODF-to-ODF] Misleading logs/status when ocs-consumer re-installed with the s...
Keywords:
Status: POST
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: ocs-operator
Version: 4.10
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ODF 4.14.0
Assignee: Nitin Goyal
QA Contact: Itzhak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-19 12:49 UTC by Yashvardhan Kukreja
Modified: 2023-08-17 07:02 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github red-hat-storage ocs-operator pull 2131 0 None open provider-server: enhance logging of corner case 2023-08-10 17:14:43 UTC

Description Yashvardhan Kukreja 2022-05-19 12:49:53 UTC
Description of problem:

Upon re-installing an ocs-consumer addon on the same cluster with the same onboarding ticket, the installation fails despite it working when it got installed for the first time.

The storagecluster CR on the consumer cluster gets stuck in "Error" phase.

Digging into YAML output, it turns out that it fails at "Failed to get storageConsumer" which is somewhat of a misleading log.


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


How reproducible:


Steps to Reproduce:
1. Create a cluster
2. Install ocs-consumer addon on it.
3. Uninstall that ocs-consumer addon.
4. (Re)install the ocs-consumer addon on it again with the same onboarding-ticket which was used during the previous installation.
5. Wait for the storagecluster CR on that cluster to enter the "Error" Phase.

Actual results:
StorageCluster CR in the consumer cluster stuck on "Error" phase.
Logs suggesting that it failed to get a storageconsumer.

```
  - lastHeartbeatTime: "2022-05-19T12:37:28Z"
    lastTransitionTime: "2022-05-19T12:36:34Z"
    message: 'Error while reconciling: rpc error: code = Internal desc = Failed to
      get storageConsumer. storageconsumers.ocs.openshift.io "storageconsumer-abcc2916-fc8c-4d89-996b-9bf32ea3e75f"
      not found'
```

Expected results:
StorageCluster CR in the consumer cluster stuck on "Error" phase with the .status denoting that the fault was due to the re-use of onboarding-ticket.


Additional info:


Note You need to log in before you can comment on or make changes to this bug.