-
Notifications
You must be signed in to change notification settings - Fork 1.9k
OSDOCS-5006 & 5007:Automigration for Azure File and Vsphere #55830
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * storage/container_storage_interface/persistent-storage-csi-migration.adoc | ||
|
|
||
| :_content-type: CONCEPT | ||
| [id="persistent-storage-csi-migration-sc-implications_{context}"] | ||
| = Storage class implications | ||
|
|
||
| For new {product-title} 4.13, and later, installations, the default storage class is the CSI storage class. All volumes provisioned using this storage class are CSI persistent volumes (PVs). | ||
|
lpettyjo marked this conversation as resolved.
lpettyjo marked this conversation as resolved.
|
||
|
|
||
| For clusters upgraded from 4.12, and earlier, to 4.13, and later, the CSI storage class is created, and is set as the default if no default storage class was set prior to the upgrade. In the very unlikely case that there is a storage class with the same name, the existing storage class remains unchanged. Any existing in-tree storage classes remain, and might be necessary for certain features, such as volume expansion to work for existing in-tree PVs. While storage class referencing to the in-tree storage plugin will continue working, we recommend that you switch the default storage class to the CSI storage class. | ||
|
lpettyjo marked this conversation as resolved.
lpettyjo marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * storage/container_storage_interface/persistent-storage-csi-migration.adoc | ||
|
|
||
| :_content-type: CONCEPT | ||
| [id="persistent-storage-csi-migration-sc-vsphere_{context}"] | ||
| = vSphere automatic migration | ||
|
|
||
| === New installations of {product-title} | ||
| For new installations of {product-title} 4.13, or later, automatic migration is enabled by default. | ||
|
lpettyjo marked this conversation as resolved.
|
||
|
|
||
| === Upgrading {product-title} | ||
| When upgrading from {product-title} 4.12, or earlier, to 4.13, automatic CSI migration for vSphere only occurs if you opt in. | ||
|
|
||
| [IMPORTANT] | ||
| ==== | ||
| Carefully review the following consequences before opting in to migration: | ||
|
|
||
| * link:https://access.redhat.com/node/7011683[There are known issues that can occur that can cause the migration to fail]. | ||
|
|
||
| * Enabling migration cannot be undone. | ||
|
|
||
| * Migration can take awhile to complete depending on how many nodes are on the cluster. | ||
|
lpettyjo marked this conversation as resolved.
|
||
|
|
||
| * Migration is a disruptive process. The Machine Config Operator (MCO) has to update kubelet, which means degrading each node as it rolls out the new MachineConfig to each machine. | ||
| ==== | ||
|
|
||
| ==== Using the web console to opt in to automatic CSI migration | ||
|
|
||
| ===== Prerequisites | ||
|
lpettyjo marked this conversation as resolved.
|
||
|
|
||
| * Access to the {product-title} web console. | ||
|
|
||
| * Access to the cluster with cluster-admin privileges. | ||
|
|
||
| ===== Procedure | ||
|
|
||
| To opt in to automatic CSI migration for vSphere: | ||
|
|
||
| . Log in to the web console. | ||
|
|
||
| . Click *Administration* -> *CustomResourceDefinitions*. | ||
|
|
||
| . On the *CustomResourceDefinitions* page, type "Storage" to find the `Storage` custom resource (CR). | ||
|
|
||
| . Click the *Storage* CR. | ||
|
|
||
| . On the *storages.operator.openshift.io* page, click the *Instances* tab. | ||
|
|
||
| . Click the name of the desired instance, and then click the *YAML* tab. | ||
|
|
||
| . Set the `spec.vsphereStorageDriver` parameter to `CSIWithMigrationDriver`, as shown in the following example: | ||
| + | ||
|
lpettyjo marked this conversation as resolved.
|
||
| [source, yaml] | ||
| ---- | ||
| .... | ||
| spec: | ||
| logLevel: Normal | ||
| managementState: Managed | ||
| operatorLogLevel: Normal | ||
| vsphereStorageDriver: CSIWithMigrationDriver <1> | ||
| ... | ||
| ---- | ||
| <1> `spec.vsphereStorageDriver` parameter set to `CSIWithMigrationDriver` | ||
|
lpettyjo marked this conversation as resolved.
|
||
|
|
||
| . Click *Save*. | ||
|
|
||
| ==== Using the CLI to opt in to automatic CSI migration | ||
|
|
||
| ===== Prerequisites | ||
|
lpettyjo marked this conversation as resolved.
|
||
|
|
||
| * Access to the cluster with cluster-admin privileges. | ||
|
|
||
| ===== Procedure | ||
|
|
||
| To opt in to automatic CSI migration for vSphere, run the following command: | ||
|
|
||
| [source, cli] | ||
| ---- | ||
| oc patch storage cluster --type=merge -p '{"spec":{"vsphereStorageDriver":"CSIWithMigrationDriver"}}' | ||
| ---- | ||
|
|
||
| [NOTE] | ||
| ==== | ||
| You can determine when migration is complete by verifying that the `VSphereMigrationControllerAvailable` condition is set to "true" in the `Storage` object. | ||
| ==== | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.