Skip to content

Conversation

@SanjalKatiyar
Copy link
Contributor

@SanjalKatiyar SanjalKatiyar commented Oct 29, 2021

This PR incorporates a correction to #10117 which got missed when patch #10117 was sent.

Correction: For MCG only system, CEPH_FLAG was getting set as undefined instead of false.

@openshift-ci openshift-ci bot added bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Oct 29, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 29, 2021

@SanjalKatiyar: This pull request references Bugzilla bug 2006060, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.10.0) matches configured target release for branch (4.10.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

No GitHub users were found matching the public email listed for the QA contact in Bugzilla (musoni@redhat.com), skipping review request.

Details

In response to this:

Bug 2006060: Redirect to object dashboard for MCG only

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 29, 2021

@SanjalKatiyar: This pull request references Bugzilla bug 2006060, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.10.0) matches configured target release for branch (4.10.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

No GitHub users were found matching the public email listed for the QA contact in Bugzilla (musoni@redhat.com), skipping review request.

Details

In response to this:

Bug 2006060: Redirect to object dashboard for MCG only

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

1 similar comment
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 29, 2021

@SanjalKatiyar: This pull request references Bugzilla bug 2006060, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.10.0) matches configured target release for branch (4.10.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

No GitHub users were found matching the public email listed for the QA contact in Bugzilla (musoni@redhat.com), skipping review request.

Details

In response to this:

Bug 2006060: Redirect to object dashboard for MCG only

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci bot requested review from cloudbehl and shyRozen October 29, 2021 13:46
@openshift-ci openshift-ci bot added the component/ceph Related to ceph-storage-plugin label Oct 29, 2021
Copy link

@afreen23 afreen23 left a comment

Choose a reason for hiding this comment

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

When creating mcg standalone, add these flags.

@@ -173,6 +173,7 @@ export const detectComponents: FeatureDetector = async (dispatch) => {
const noobaaSystems = await k8sList(NooBaaSystemModel, { ns: CEPH_STORAGE_NAMESPACE });
if (noobaaSystems?.length > 0) {
dispatch(setFlag(MCG_FLAG, true));
if (!cephFound) dispatch(setFlag(CEPH_FLAG, false));
Copy link

Choose a reason for hiding this comment

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

This flag should also be dispatched when clicking creation of a mcg standalone storage system/

Copy link
Contributor Author

@SanjalKatiyar SanjalKatiyar Nov 2, 2021

Choose a reason for hiding this comment

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

It will be set as false here only (for mcg standalone or any other deployment), as soon as noobaaSystem is found and no cephSystem is found. Is there some condition or some place missing where it will not be set ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added it in footer file, let me know if I should remove it from here or not ?

@@ -29,7 +29,8 @@ const ODFSystemDashboard: React.FC<ODFSystemDashboardPageProps> = ({
const isObjectServiceAvailable = useFlag(MCG_FLAG);
const isCephAvailable = useFlag(CEPH_FLAG);
const { systemName } = rest.match.params;
const dashboardTab = isCephAvailable === false && isObjectServiceAvailable ? OBJECT : BLOCK_FILE;
const dashboardTab =
!!isCephAvailable === false && isObjectServiceAvailable ? OBJECT : BLOCK_FILE;
Copy link

Choose a reason for hiding this comment

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

I think the fix your BZ would be suffice by this ?
undefined is a falsy value.

Suggested change
!!isCephAvailable === false && isObjectServiceAvailable ? OBJECT : BLOCK_FILE;
!isCephAvailable && isObjectServiceAvailable ? OBJECT : BLOCK_FILE;

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 3, 2021

@SanjalKatiyar: An error was encountered querying GitHub for users with public email (musoni@redhat.com) for bug 2006060 on the Bugzilla server at https://bugzilla.redhat.com. No known errors were detected, please see the full error message for details.

Full error message. non-200 OK status code: 403 Forbidden body: "{\n \"documentation_url\": \"https://docs.github.com/en/free-pro-team@latest/rest/overview/resources-in-the-rest-api#secondary-rate-limits\",\n \"message\": \"You have exceeded a secondary rate limit. Please wait a few minutes before you try again.\"\n}\n"

Please contact an administrator to resolve this issue, then request a bug refresh with /bugzilla refresh.

Details

In response to this:

Bug 2006060: Redirect to object dashboard for MCG only

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link

@afreen23 afreen23 left a comment

Choose a reason for hiding this comment

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

/lgtm

The second commit ef9afe7 is just clean up.
The fix is in actual first commit bbe9b77

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 3, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: afreen23, SanjalKatiyar

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

The pull request process is described here

Details 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

@openshift-ci openshift-ci bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Nov 3, 2021
@openshift-merge-robot openshift-merge-robot merged commit 0140984 into openshift:master Nov 3, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 3, 2021

@SanjalKatiyar: All pull requests linked via external trackers have merged:

Bugzilla bug 2006060 has been moved to the MODIFIED state.

Details

In response to this:

Bug 2006060: Redirect to object dashboard for MCG only

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. component/ceph Related to ceph-storage-plugin lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants