Skip to content

Commit 3a06d34

Browse files
Jenny-Anneclaude
andauthored
MCP-OCP-Lightspeed (#894)
* mcp-ocp-lightspeed * ui updates and comments * edits and fixes * planning-lightspeed-assembly * feedback updates * lightspeed updates * coderabbitai fixes * lightspeed variable * namespace variable * feature_mcp_server * external-ai-risk-note * edit * note edit * review updates --------- Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent e1c52fc commit 3a06d34

9 files changed

Lines changed: 276 additions & 2 deletions

documentation/doc-Migrating_your_virtual_machines/assemblies/assembly_troubleshooting-migration.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Troubleshoot migration issues by following diagnostic workflows, resolving commo
1616

1717
include::../modules/proc_troubleshooting-workflow.adoc[leveloffset=+1]
1818

19+
include::../modules/proc_using-lightspeed-troubleshooting.adoc[leveloffset=+1]
20+
1921
include::../modules/ref_common-migration-issues.adoc[leveloffset=+1]
2022

2123
include::../modules/ref_error-messages.adoc[leveloffset=+1]
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * documentation/doc-Planning_your_migration/master.adoc
4+
ifdef::context[:parent-context: {context}]
5+
6+
:_mod-docs-content-type: ASSEMBLY
7+
8+
[id="assembly_lightspeed-integration_{context}"]
9+
10+
= {lightspeed-full} integration with {project-short}
11+
12+
:context: lightspeed-integration
13+
14+
[role="_abstract"]
15+
Get AI-powered troubleshooting assistance for your virtual machine migrations with {lightspeed-full}, which provides plain-language explanations of errors and recommended solutions.
16+
17+
== Prerequisites
18+
19+
* {ocp} 4.15 or later
20+
* {project-short} {project-version} or later
21+
* {lightspeed-full} Operator installed and configured on your cluster
22+
23+
include::../modules/con_using-lightspeed-with-mtv.adoc[leveloffset=+1]
24+
25+
include::../modules/proc_enabling-lightspeed-integration.adoc[leveloffset=+1]
26+
27+
[role="_additional-resources"]
28+
== Additional resources
29+
30+
* link:https://docs.redhat.com/en/documentation/red_hat_openshift_lightspeed[{lightspeed-full} documentation]
31+
32+
ifdef::parent-context[:context: {parent-context}]
33+
ifndef::parent-context[:!context:]

documentation/doc-Planning_your_migration/master.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ include::assemblies/assembly_provider-specific-requirements-for-migration.adoc[l
2020
2121
include::assemblies/assembly_installing-mtv-operator.adoc[leveloffset=+1]
2222
23+
include::assemblies/assembly_lightspeed-integration.adoc[leveloffset=+1]
24+
2325
include::assemblies/assembly_migrating-vms-web-console.adoc[leveloffset=+1]
2426
2527
include::assemblies/assembly_migrating-vms-cli.adoc[leveloffset=+1]

documentation/modules/common-attributes.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
:manager: Manager
3535
:vmw: VMware
3636

37+
// Red Hat OpenShift Lightspeed
38+
:lightspeed-full: Red Hat OpenShift Lightspeed
39+
:lightspeed-short: Lightspeed
40+
:lightspeed-operator: Red Hat OpenShift Lightspeed Operator
41+
3742
// doc metadata
3843
:icons: font
3944
:build: downstream
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * documentation/doc-Planning_your_migration/assemblies/assembly_lightspeed-integration.adoc
4+
5+
:_mod-docs-content-type: CONCEPT
6+
7+
[id="con_using-lightspeed-with-mtv_{context}"]
8+
= About {lightspeed-short} and {project-short}
9+
10+
[role="_abstract"]
11+
Use {lightspeed-full} to quickly diagnose migration issues and get step-by-step guidance without manually parsing logs or searching documentation.
12+
13+
{lightspeed-full} is integrated into the {ocp} web console. It provides intelligent assistance through a natural-language interface where you can ask questions, receive troubleshooting guidance, and get step-by-step instructions.
14+
15+
[NOTE]
16+
====
17+
{lightspeed-full} integration with {project-short} is available as a Technology Preview feature. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process.
18+
====
19+
20+
== {lightspeed-short} use cases
21+
22+
You can ask {lightspeed-short} questions in natural language throughout the migration lifecycle:
23+
24+
Planning and assessment:: Ask questions about migration prerequisites, recommended settings, best practices, and configuration requirements for your specific environment and source platform.
25+
+
26+
For example:
27+
+
28+
* "What are the prerequisites for warm migration from VMware?"
29+
* "What network requirements do I need for migrating VMs?"
30+
* "How do I check network mapping for a failed migration?"
31+
32+
Real-time troubleshooting:: Get plain-language explanations of migration failures, error messages, and stalled migrations without manually parsing logs.
33+
+
34+
For example:
35+
+
36+
* "Why did the migration for VM 'ProdDB-01' fail?"
37+
* "Why is my warm migration stalled?"
38+
* "What does the error 'import retry limit exceeded' mean?"
39+
* "How do I resolve Changed Block Tracking (CBT) snapshot issues?"
40+
41+
Post-migration guidance:: Receive recommendations for validating migrated virtual machines, optimizing resource configurations, and troubleshooting post-migration issues.
42+
+
43+
For example:
44+
+
45+
* "Why are my VMs not working after migration?"
46+
* "How do I verify my migrated VMs are running correctly?"
47+
* "What should I check after migration is complete?"
48+
49+
== Data access and analysis
50+
51+
When you ask {lightspeed-short} a question about {project-short}, {lightspeed-short}:
52+
53+
. Accesses real-time data from your cluster, including migration plan status, custom resources, and logs
54+
. Analyzes the data based on your user credentials and role-based access control (RBAC) permissions
55+
. Provides a conversational response with specific, actionable information
56+
57+
== Privacy and data handling
58+
59+
{lightspeed-short} uses your own user credentials and can only access resources that you have permission to view. {lightspeed-short} accesses cluster metadata, migration resource status, and log data to provide contextual assistance. All data access respects your existing RBAC permissions, and {lightspeed-short} cannot access resources beyond your authorization level.
60+
61+
[IMPORTANT]
62+
====
63+
When you use {lightspeed-short} with an external AI service provider, cluster information, logs, and resource details may be transmitted to that provider. Evaluate whether external AI services align with the security and compliance requirements of your organization.
64+
====
65+
66+
== How the integration works
67+
68+
After you enable the `feature_mcp_server` feature flag in the `ForkliftController` custom resource, the {project-short} Operator configures the integration with {lightspeed-full} by:
69+
70+
* Deploying the {project-short} MCP (Model Context Protocol) server
71+
* Registering the MCP server with {lightspeed-full}
72+
* Configuring the necessary endpoints
73+
74+
This integration enables {lightspeed-short} to access {project-short} resources and provide context-aware assistance for your migrations.
75+
76+
[role="_additional-resources"]
77+
.Additional resources
78+
79+
* xref:proc_enabling-lightspeed-integration_{context}[Enabling the {lightspeed-full} integration]
80+
* link:https://access.redhat.com/support/offerings/techpreview/[Technology Preview Features Support Scope]
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * documentation/doc-Planning_your_migration/assemblies/assembly_lightspeed-integration.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
7+
[id="proc_enabling-lightspeed-integration_{context}"]
8+
= Enabling the {lightspeed-full} integration
9+
10+
[role="_abstract"]
11+
Enable {lightspeed-full} integration to access AI-powered migration assistance and troubleshooting directly from the {ocp} web console.
12+
13+
.Prerequisites
14+
15+
* You are logged in to the {ocp} web console as a user with cluster administrator privileges.
16+
* {lightspeed-full} is installed and configured on the cluster.
17+
+
18+
For information about installing and configuring {lightspeed-full}, see the link:https://docs.redhat.com/en/documentation/red_hat_openshift_lightspeed[{lightspeed-full} documentation].
19+
* The {project-short} Operator is installed.
20+
21+
.Procedure
22+
23+
. In the {ocp} web console, click *Operators* -> *Installed Operators* in the left navigation menu.
24+
25+
. Ensure you are in the correct project. For example, +{namespace}+.
26+
27+
. Click the *{operator-name}* from the list of installed operators.
28+
29+
. Click the *ForkliftController* tab.
30+
31+
. Click your controller instance to view its details.
32+
33+
. Click the *YAML* tab to edit the resource configuration.
34+
35+
. In the `spec:` section, locate or add the `feature_mcp_server` parameter and set its value to `'true'`:
36+
+
37+
[source,yaml]
38+
----
39+
spec:
40+
feature_mcp_server: 'true'
41+
----
42+
+
43+
[NOTE]
44+
====
45+
To disable the feature later, you can change this value to `'false'`.
46+
====
47+
48+
. Click *Save*.
49+
+
50+
The {lightspeed-full} pods restart to load the new Model Context Protocol (MCP) configuration for {project-short}.
51+
52+
. Optional: Monitor the pod restart progress by running the following command:
53+
+
54+
[source,terminal]
55+
----
56+
$ oc get pods -n openshift-lightspeed -w
57+
----
58+
59+
.Verification
60+
61+
. In the {ocp} web console, open the {lightspeed-full} chat assistant:
62+
+
63+
* Click the *{lightspeed-full}* icon in the top global header of the web console, or
64+
* Click the floating *{lightspeed-full}* icon at the bottom right of the screen.
65+
66+
. Type a query related to your {project-short} environment into the chat prompt.
67+
+
68+
For example:
69+
+
70+
----
71+
Can you list my MTV providers from all namespaces?
72+
----
73+
74+
. Press *Enter* or click the send icon.
75+
+
76+
{lightspeed-short} uses its `mtv_read` capabilities to fetch and display your providers directly in the chat window.

documentation/modules/proc_troubleshooting-workflow.adoc

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//
33
// * documentation/doc-Migrating_your_virtual_machines/assemblies/assembly_troubleshooting-migration.adoc
44

5+
56
:_mod-docs-content-type: PROCEDURE
67
[id="proc_troubleshooting-workflow_{context}"]
78
= Troubleshooting workflow
@@ -21,6 +22,14 @@ You can typically find where the error is occurring at this stage. VMs can be mi
2122
* *Warm migration*: VMs are migrated with minimal downtime while remaining powered on during the precopy stage.
2223
* *Cold migration*: VMs are shut down during the entire migration process.
2324

25+
. *Ask {lightspeed-full}* for AI-assisted troubleshooting guidance.
26+
+
27+
If {lightspeed-full} is configured with {project-short}, you can ask questions in natural language to get plain-language explanations of migration failures, recommended solutions, and guidance for resolving common issues.
28+
+
29+
For example: "Why did the migration for VM 'ProdDB-01' fail?"
30+
+
31+
See xref:proc_using-lightspeed-troubleshooting_{context}[Using {lightspeed-full} to troubleshoot migration issues] for detailed instructions.
32+
2433
. *View pod logs* for specific information about pod status within Kubernetes.
2534
+
2635
[NOTE]
@@ -32,7 +41,7 @@ Pod logs are only available after the image conversion stage has started.
3241
.. Under the *Pod* subheading, click *View logs*.
3342
.. Review the logs for error messages or warnings that indicate the cause of the failure.
3443

35-
. *Review forklift controller logs* if the migration progress and pod logs are not helpful.
44+
. *Review forklift controller logs* if the migration progress, AI guidance, and pod logs are not helpful.
3645
+
3746
Forklift controller logs capture {project-first} related events and provide detailed information about the migration process.
3847
+
@@ -41,7 +50,7 @@ Forklift controller logs capture {project-first} related events and provide deta
4150

4251
. *Collect must-gather logs* if previous troubleshooting steps do not resolve the issue.
4352
+
44-
The `must-gather` tool collects comprehensive diagnostic information about your cluster.
53+
The `must-gather` tool collects comprehensive diagnostic information about your cluster and packages it for Red Hat Support analysis.
4554
+
4655
.. Navigate to the directory where you want to store the `must-gather` data:
4756
+
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * documentation/doc-Migrating_your_virtual_machines/assemblies/assembly_troubleshooting-migration.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
7+
[id="proc_using-lightspeed-troubleshooting_{context}"]
8+
= Using {lightspeed-full} to troubleshoot migration issues
9+
10+
[role="_abstract"]
11+
Quickly resolve migration issues by asking {lightspeed-full} questions in natural language instead of manually parsing logs and error messages.
12+
13+
.Prerequisites
14+
15+
* {ocp} 4.15 or later
16+
* {lightspeed-operator} installed and configured on your cluster
17+
+
18+
For information about installing and configuring {lightspeed-full}, see the link:https://docs.redhat.com/en/documentation/red_hat_openshift_lightspeed[{lightspeed-full} documentation].
19+
* {project-short} {project-version} or later
20+
* The {lightspeed-full} integration is enabled in the `ForkliftController` custom resource
21+
+
22+
For more information, see link:{mtv-plan}index#proc_enabling-lightspeed-integration[Enabling the {lightspeed-full} integration] in _Planning your migration_.
23+
* You have access to the {ocp} web console
24+
* You have permission to view {project-short} resources in the cluster
25+
26+
.Procedure
27+
28+
. While viewing your migration plans or resources in the {project-short} user interface, open the {lightspeed-full} chat assistant:
29+
+
30+
* Click the *{lightspeed-full}* icon in the top global header of the web console, or
31+
* Click the floating *{lightspeed-full}* icon at the bottom right of the screen.
32+
+
33+
The chat assistant opens as a slide-out panel.
34+
35+
. Type your question about the migration issue in natural language.
36+
+
37+
For example:
38+
+
39+
* "Why is my network mapping failing for plan 'vmware-prod-vms'?"
40+
* "What is the current status of the warm migration for my database cluster?"
41+
* "How do I fix naming convention violations in my migration plan?"
42+
43+
. Review the response from {lightspeed-short}, which provides:
44+
+
45+
* A plain-language diagnosis of the issue
46+
* Specific error details from the migration logs
47+
* Recommended actions to resolve the problem
48+
49+
. Follow the recommended steps to resolve the issue.
50+
51+
. Optional: Ask follow-up questions for clarification or additional guidance.
52+
53+
.Verification
54+
55+
* Compare the plain-language diagnosis from {lightspeed-short} with the raw error message in the migration logs to understand the root cause.
56+
* Check that the recommended solution addresses your specific migration failure.
57+
58+
[role="_additional-resources"]
59+
.Additional resources
60+
61+
* link:https://docs.redhat.com/en/documentation/red_hat_openshift_lightspeed[{lightspeed-full} documentation]
62+
* link:{mtv-plan}index#con_using-lightspeed-with-mtv[{lightspeed-full} integration with {project-short}]

documentation/upstream-attributes.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
:operator-name: Forklift Operator
2828
:must-gather: quay.io/kubev2v/forklift-must-gather:latest
2929

30+
// Red Hat OpenShift Lightspeed
31+
:lightspeed-full: Red Hat OpenShift Lightspeed
32+
:lightspeed-short: Lightspeed
33+
:lightspeed-operator: Red Hat OpenShift Lightspeed Operator
34+
3035
// Guide titles
3136
:planning-guide-title: Planning your migration
3237
:migrating-guide-title: Migrating your virtual machines

0 commit comments

Comments
 (0)