Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no need to run gather_odf_client script on non-provider setup #197

Closed
wants to merge 1 commit into from

Conversation

OdedViner
Copy link
Contributor

No description provided.

@yati1998
Copy link
Member

@OdedViner did you verify your image in both provider and non-provider clusters?

@OdedViner
Copy link
Contributor Author

@OdedViner did you verify your image in both provider and non-provider clusters?

podman build -t quay.io/oviner/ocs-must-gather:provider_mode_1 -f Dockerfile .
podman push quay.io/oviner/ocs-must-gather:provider_mode_1


Running on provider cluster:
$ oc adm must-gather --image=quay.io/oviner/ocs-must-gather:provider_mode_1 > provider_cluster.log
$ cat provider_cluster.log | grep "it is provider"
[must-gather-zvrqm] POD 2024-09-19T08:44:47.880752513Z it is provider cluster


Running on "regular cluster":
$ oc adm must-gather --image=quay.io/oviner/ocs-must-gather:provider_mode_1 > non_provider_cluster.log
$ cat non_provider_cluster.log | grep "it is not"
[must-gather-xj2dw] POD 2024-09-19T09:02:59.573594086Z it is not provider cluster

Copy link
Contributor

openshift-ci bot commented Sep 19, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: OdedViner, yati1998

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@black-dragon74
Copy link
Member

/hold

@black-dragon74
Copy link
Member

black-dragon74 commented Sep 19, 2024

What if the current cluster is a consumer (client)? Is that accounted for as well?

@yati1998
Copy link
Member

What if the current cluster is a consumer? Is that accounted for as well?

if I am not wrong yes, by provider he means: provider-consumer cluster.
cc @OdedViner

@@ -21,8 +21,15 @@ procids+=($!)
gather_dr_resources &
procids+=($!)

gather_odf_client &
procids+=($!)
storagecluster_remote=$(oc get storagecluster --all-namespaces -o yaml | grep -i 'allowRemoteStorageConsumers')
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Storagecluster CRD won't be present in client cluster on a provider-client(provider mode) setup.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@OdedViner please re-verify the check and paste the logs collected.
According to the check you mentioned, odf_client script will not run even if it is a client cluster.

@black-dragon74
Copy link
Member

Please do all the custom checks in sub gather scripts. The gather script is an entrypoint and should not contain extraneous checks. I would move it to gather_odf_client

Also, do we need this change @yati1998 ?

@yati1998
Copy link
Member

Please do all the custom checks in sub gather scripts. The gather script is an entrypoint and should not contain extraneous checks. I would move it to gather_odf_client

Also, do we need this change @yati1998 ?

No we dont,
Once @OdedViner verify his again, we can close this PR

Copy link
Contributor

openshift-ci bot commented Sep 22, 2024

New changes are detected. LGTM label has been removed.

@black-dragon74
Copy link
Member

Closing this as it is not needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants