Skip to content

STOR-1334: update storage operator to read featuregates from API#376

Merged
openshift-merge-robot merged 3 commits intoopenshift:masterfrom
jsafrane:rework-feature-gates
Jun 14, 2023
Merged

STOR-1334: update storage operator to read featuregates from API#376
openshift-merge-robot merged 3 commits intoopenshift:masterfrom
jsafrane:rework-feature-gates

Conversation

@jsafrane
Copy link
Contributor

A second attempt after #368. Now read the feature gates from API both in standalone cluster and in hypershift - it has correct featuregate.status.

@openshift/storage

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label May 30, 2023
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented May 30, 2023

@jsafrane: This pull request references STOR-1334 which is a valid jira issue.

Details

In response to this:

A second attempt after #368. Now read the feature gates from API both in standalone cluster and in hypershift - it has correct featuregate.status.

@openshift/storage

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 bertinatto and gnufied May 30, 2023 14:12
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 30, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jsafrane

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 30, 2023
@jsafrane
Copy link
Contributor Author

/retest

@jsafrane
Copy link
Contributor Author

/test hypershift-aws-e2e-external

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 30, 2023

@jsafrane: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-ovn-vsphere 122bfb3 link false /test e2e-ovn-vsphere

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

klog.Errorf("timed out waiting for FeatureGate detection")
return fmt.Errorf("timed out waiting for FeatureGate detection")
}
featureGates, err := featureGateAccessor.CurrentFeatureGates()
Copy link
Member

Choose a reason for hiding this comment

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

I feel like CurrentFeatureGates should block until it has done syncing the loop. Is 1 minute reasonable time btw?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The select above is the blocking sync to get feature gates.

With exit() after 1 minute, kubelet will start exp. backoff restarting the Pod, so I think it's good enough. A cluster without FeatureGate is not a very healthy one.

Copy link
Member

Choose a reason for hiding this comment

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

@deads2k what do you think about call to CurrentFeatures blocking . I think that this code leaks internal details of featuregateAccess object. We can clean this up in a follow up, if we all agree to it.

@gnufied
Copy link
Member

gnufied commented Jun 5, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 5, 2023
@jsafrane
Copy link
Contributor Author

jsafrane commented Jun 7, 2023

/label px-approved
/label docs-approved

@openshift-ci openshift-ci bot added px-approved Signifies that Product Support has signed off on this PR docs-approved Signifies that Docs has signed off on this PR labels Jun 7, 2023
@duanwei33
Copy link

I built standalone and hypershift hosted cluster to verify:
In standalone cluster, after enabling the TechPreviewNoUpgrade, CSIDriverSharedResource is installed successfully shortly.
In hypershift hosted cluster, storage CO is healthy, I was trying to enable the TechPreviewNoUpgrade, but seems the CVO doesn't work well and CSIDriverSharedResource is not enabled actually from FeatureGate.status.featureGates as below:

spec:
  featureSet: TechPreviewNoUpgrade
status:
  featureGates:
  - disabled:
    - name: AdmissionWebhookMatchConditions
    - name: AzureWorkloadIdentity
    - name: BuildCSIVolumes
    - name: CSIDriverSharedResource
    - name: DynamicResourceAllocation
    - name: EventedPLEG
    - name: ExternalCloudProvider
    - name: ExternalCloudProviderAzure
    - name: ExternalCloudProviderGCP
    - name: GCPLabelsTags
    - name: GatewayAPI
    - name: InsightsConfigAPI
    - name: MachineAPIProviderOpenStack
    - name: MatchLabelKeysInPodTopologySpread
    - name: MaxUnavailableStatefulSet
    - name: NodeSwap
    - name: PDBUnhealthyPodEvictionPolicy
    - name: PrivateHostedZoneAWS
    - name: RetroactiveDefaultStorageClass
    - name: SigstoreImageVerification
    enabled:
    - name: AlibabaPlatform
    - name: OpenShiftPodSecurityAdmission

Looks like not storage issue, will take further check on this.

@duanwei33
Copy link

My bad, the featuregate need to be set in management cluster hostedcluster.spec.configuration, and CSIDriverSharedResource is installed successfully in the hosted cluster after the setting. So PR looks good based on the test above from QE side.

@duanwei33
Copy link

/label qe-approved

@openshift-ci openshift-ci bot added the qe-approved Signifies that QE has signed off on this PR label Jun 9, 2023
@deepsm007
Copy link

/label jira/valid-bug

@openshift-ci openshift-ci bot added the jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. label Jun 14, 2023
@openshift-merge-robot openshift-merge-robot merged commit a224805 into openshift:master Jun 14, 2023
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. docs-approved Signifies that Docs has signed off on this PR jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. px-approved Signifies that Product Support has signed off on this PR qe-approved Signifies that QE has signed off on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

Comments