-
Notifications
You must be signed in to change notification settings - Fork 185
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
deprecate the allowRemoteStorageConsumer spec from storageCluster #3019
base: main
Are you sure you want to change the base?
deprecate the allowRemoteStorageConsumer spec from storageCluster #3019
Conversation
Skipping CI for Draft Pull Request. |
2f49263
to
01d4434
Compare
/hold for testing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
were these removed code paths in this file guarding against X from happening or ensuring that X happens? if it's the latter where is the replacement?
as an example
- if it's not provider mode do X
- if it's provider mode do X
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code paths that are removed in this profile were ensuring that mirroring of cephblockpool is established for DR. The replacement for that Mirroring controller, that handles mirroring of blockpools as well as radosnamespace.
There would need to be adjustments in MCO op as well such that they follow the new method of setting up RDR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There would need to be adjustments in MCO
- Ack, this what I was looking for, thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better not to move this code, let the implicit rns & default svg continue to be created in this reconcile itself as the same code will anyways need to run even at storageconsumer controller if moved after a check.
in consumer controller we just perform the check to create or not to create an svg. let's try to move the pieces as less as possible until it goes against final design/outcome, like in storage classes it's a must but not for svg.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why, shouldnt we need to have storageconsumer as the source of truth for the SVG and RNS? we should not be creating it in multiple classes
if sc.Spec.AllowRemoteStorageConsumers { | ||
util.AddAnnotation(nb, "MulticloudObjectGatewayProviderMode", "true") | ||
} | ||
util.AddAnnotation(nb, "MulticloudObjectGatewayProviderMode", "true") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does any change to this needs a touch in Noobaa? Let's note such instances directly on corresponding Jira for posterity.
can you get more info on this? is removing this check makes MCG behave differently than internal mode, which we don't want.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding this annotation sets the "RESTRICT_RESOURCE_DELETION" env variable in noobaa. This ensures that the bucket can be deleted only by the owner of the bucket and not by any other noobaa account.
cc: @ezio-auditore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How would that affect users who deletes buckets using S3? or using the new s3 bowser experience?
if r.AvailableCrds[VirtualMachineCrdName] { | ||
ret = append(ret, newCephBlockPoolVirtualizationStorageClassConfiguration(initData)) | ||
} | ||
//TODO: will be removed when we start handling kubevirt class through provider-client communication |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as mentioned above, pls add these notes to corresponding Jira as well, preferably as a single comment (after PR merge)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack, I will add these to jira
01d4434
to
e1d602d
Compare
/test ocs-operator-bundle-e2e-aws |
deprecate allowremotestorageconsumer flag from the storagecluster spec Signed-off-by: Rewant Soni <[email protected]>
Signed-off-by: Rewant Soni <[email protected]>
000a473
to
6a5c83d
Compare
/test ocs-operator-bundle-e2e-aws |
@@ -18,29 +18,6 @@ import ( | |||
|
|||
type ocsCephBlockPools struct{} | |||
|
|||
// ensures that peer cluster secret exists and adds it to CephBlockPool | |||
func (o *ocsCephBlockPools) addPeerSecretsToCephBlockPool(r *StorageClusterReconciler, storageCluster *ocsv1.StorageCluster, poolName, poolNamespace string) *cephv1.MirroringPeerSpec { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit is having 3 different changes? can we move specific changes to a commit (with details) so that it helps in reviewing and captures the history on why its changed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why, shouldnt we need to have storageconsumer as the source of truth for the SVG and RNS? we should not be creating it in multiple classes
@@ -56,15 +56,19 @@ func newCephFilesystemGroupSnapshotClassConfiguration(instance *ocsv1.StorageClu | |||
return GroupSnapshotClassConfiguration{ | |||
groupSnapshotClass: newVolumeGroupSnapshotClass(instance, cephfsGroupSnapshotter), | |||
reconcileStrategy: ReconcileStrategy(instance.Spec.ManagedResources.CephFilesystems.ReconcileStrategy), | |||
disable: instance.Spec.AllowRemoteStorageConsumers, | |||
//TODO: This resource will be managed by the provider-client flow, replacing it with same field used to disable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
open a jira task for the specific TODO so that we dont miss it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a jira already present and Malay is working on it: #3037
@@ -186,6 +186,20 @@ func (t *DeployManager) generateClusterObjects(ocsCatalogImage string, subscript | |||
} | |||
ocsSubscription.SetGroupVersionKind(schema.GroupVersionKind{Group: v1alpha1.SchemeGroupVersion.Group, Kind: "Subscription", Version: v1alpha1.SchemeGroupVersion.Version}) | |||
|
|||
ocsClientSubscription := v1alpha1.Subscription{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please add a comment for this change?
if sc.Spec.AllowRemoteStorageConsumers { | ||
util.AddAnnotation(nb, "MulticloudObjectGatewayProviderMode", "true") | ||
} | ||
util.AddAnnotation(nb, "MulticloudObjectGatewayProviderMode", "true") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How would that affect users who deletes buckets using S3? or using the new s3 bowser experience?
6a5c83d
to
e151088
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: rewantsoni The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Rewant Soni <[email protected]>
Remove the deployment mode annotation ref from cephblockpool reconcile since mirroring will be handled by the mirroring controller Signed-off-by: Rewant Soni <[email protected]>
e151088
to
6f8d16f
Compare
Signed-off-by: Rewant Soni <[email protected]>
6f8d16f
to
551fa90
Compare
/test ocs-operator-bundle-e2e-aws |
551fa90
to
b908cc2
Compare
Signed-off-by: Rewant Soni <[email protected]>
b908cc2
to
2581fae
Compare
@rewantsoni: The following test failed, say
Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
The PR does the following:
allowRemoteStorageConsumer
from storageCluster APIallowRemoteStorageConsumer
and the annotationocs.openshift.io/deployment-mode
ocs.openshift.io/deployment-mode
annotation)