-
Notifications
You must be signed in to change notification settings - Fork 253
Improvement/CLDSRV-825 drop ceph support #6097
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
base: development/9.3
Are you sure you want to change the base?
Changes from all commits
6ac4e10
ccb9542
a79a3c6
692fb51
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -387,10 +387,7 @@ function locationConstraintAssert(locationConstraints) { | |
| assert(locationConstraints[l].isCold === true); | ||
| } | ||
|
|
||
| if (process.env.CI_CEPH === 'true') { | ||
| // eslint-disable-next-line no-param-reassign | ||
| locationConstraints[l].details.https = false; | ||
| } else if (details.https !== undefined) { | ||
| if (details.https !== undefined) { | ||
| assert(typeof details.https === 'boolean', 'bad config: ' + | ||
| 'locationConstraints[region].details https must be a boolean'); | ||
| } else { | ||
|
|
@@ -401,9 +398,6 @@ function locationConstraintAssert(locationConstraints) { | |
| if (details.pathStyle !== undefined) { | ||
| assert(typeof details.pathStyle === 'boolean', 'bad config: ' + | ||
| 'locationConstraints[region].pathStyle must be a boolean'); | ||
| } else if (process.env.CI_CEPH === 'true') { | ||
| // eslint-disable-next-line no-param-reassign | ||
| locationConstraints[l].details.pathStyle = true; | ||
| } else { | ||
| // eslint-disable-next-line no-param-reassign | ||
| locationConstraints[l].details.pathStyle = false; | ||
|
|
@@ -1880,7 +1874,12 @@ class Config extends EventEmitter { | |
|
|
||
| if (config.capabilities) { | ||
| if (config.capabilities.locationTypes) { | ||
| this.supportedLocationTypes = new Set(config.capabilities.locationTypes); | ||
| // Ceph RadosGW is no longer supported; exclude from reported location types | ||
| const cephRadosGw = 'location-ceph-radosgw-s3-v1'; | ||
| const types = Array.from(config.capabilities.locationTypes); | ||
| this.supportedLocationTypes = new Set( | ||
| types.filter(t => t !== cephRadosGw) | ||
| ); | ||
| } | ||
| this.capabilities = config.capabilities; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. config.capabilities is stored as-is (unfiltered) while this.supportedLocationTypes is filtered to exclude location-ceph-radosgw-s3-v1. If any downstream code reads this.capabilities.locationTypes directly instead of this.supportedLocationTypes, the Ceph entry would still be visible. Currently reportHandler.js uses supportedLocationTypes so this works, but for consistency consider filtering config.capabilities.locationTypes before storing, or adding a note that this.capabilities is the raw config. |
||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,7 +44,6 @@ function getCapabilities(cfg = config) { | |
| locationTypeS3Custom: true, | ||
| locationTypeSproxyd: true, | ||
| locationTypeNFS: true, | ||
| locationTypeCephRadosGW: true, | ||
| locationTypeHyperdriveV2: true, | ||
| locationTypeLocal: true, | ||
| preferredReadLocation: true, | ||
|
|
@@ -53,7 +52,6 @@ function getCapabilities(cfg = config) { | |
| secureChannelOptimizedPath: true, | ||
| s3cIngestLocation: true, | ||
| nfsIngestLocation: false, | ||
| cephIngestLocation: false, | ||
| awsIngestLocation: false, | ||
benzekrimaha marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }; | ||
|
|
||
|
|
@@ -72,11 +70,13 @@ function getCapabilities(cfg = config) { | |
| caps.locationTypeDigitalOcean &&= cfg.supportedLocationTypes.has('location-do-spaces-v1'); | ||
| caps.locationTypeSproxyd &&= cfg.supportedLocationTypes.has('location-scality-sproxyd-v1'); | ||
| caps.locationTypeNFS &&= cfg.supportedLocationTypes.has('location-nfs-mount-v1'); | ||
| caps.locationTypeCephRadosGW &&= cfg.supportedLocationTypes.has('location-ceph-radosgw-s3-v1'); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is used to ensure consistency, Cloudserver does not have the "source of truth" : it comes from the ZenkoVersion CR (through ZKOP)
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure to understand your point @francoisferrand |
||
| caps.locationTypeHyperdriveV2 &&= cfg.supportedLocationTypes.has('location-scality-hdclient-v2'); | ||
| caps.locationTypeLocal &&= cfg.supportedLocationTypes.has('location-file-v1'); | ||
| } | ||
|
|
||
| // Ceph RadosGW is no longer supported; never report it | ||
| caps.locationTypeCephRadosGW = false; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line adds |
||
|
|
||
| return caps; | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.