Skip to content

Commit cdb5fbd

Browse files
committed
Add openstackassistant docs
1 parent 3d33171 commit cdb5fbd

1 file changed

Lines changed: 135 additions & 0 deletions

File tree

‎docs/openstackassistant.md‎

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
# Testing OpenStackAssistant with OpenStack Lightspeed
2+
3+
This guide deploys OpenStack Lightspeed and an OpenStack Assistant instance so
4+
you can run Goose inside the cluster and try its OpenStack and OpenShift MCP
5+
tools.
6+
7+
> [!IMPORTANT]
8+
> Before starting, you need a working RHOSO deployment. The MCP tools in this
9+
> guide expect resources from the deployed OpenStack control plane and are not
10+
> available without RHOSO.
11+
12+
## 1. Deploy the OpenStack Lightspeed operator
13+
14+
From the lightspeed-operator repository, deploy the operator using the adjacent
15+
`install_yamls` checkout:
16+
17+
```bash
18+
(cd ../install_yamls && make openstack_lightspeed)
19+
```
20+
21+
## 2. Create the Nemotron credentials and OpenStackLightspeed instance
22+
23+
Create the API token Secret in the `openstack-lightspeed` namespace. Replace
24+
the redacted value locally with the token for your endpoint; do not commit the
25+
real token or add it to this document.
26+
27+
```yaml
28+
apiVersion: v1
29+
kind: Secret
30+
metadata:
31+
name: nemotron-super-120b-bf16-ga-secret
32+
namespace: openstack-lightspeed
33+
type: Opaque
34+
stringData:
35+
apitoken: REDACTED
36+
```
37+
38+
The endpoint uses Red Hat's internal CA. Create the `redhat-internal-ca`
39+
ConfigMap in `openstack-lightspeed` with the approved CA bundle in PEM format.
40+
Keep the CA certificate material in your local secure configuration; do not
41+
put it in this guide or commit it.
42+
43+
Then create the `OpenStackLightspeed` resource. The API token and CA contents
44+
are intentionally omitted here. The `rhoso_mcps` feature flag enables the
45+
read-only RHOSO MCP server.
46+
47+
```yaml
48+
apiVersion: lightspeed.openstack.org/v1beta1
49+
kind: OpenStackLightspeed
50+
metadata:
51+
name: nemotron-super-120b-bf16-ga
52+
namespace: openstack-lightspeed
53+
spec:
54+
dev:
55+
featureFlags:
56+
- rhoso_mcps
57+
okpChunkFilterQuery: "is_chunk:true"
58+
tlsCACertBundle: redhat-internal-ca
59+
llmEndpoint: <fixme>
60+
llmEndpointType: rhelai_vllm
61+
llmCredentials: nemotron-super-120b-bf16-ga-secret
62+
modelName: 'nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-BF16'
63+
```
64+
65+
Prepare `redhat-internal-ca.yaml` locally from the approved CA bundle and keep
66+
that file out of version control. Apply the Secret, CA ConfigMap, and custom
67+
resource from the lightspeed-operator repository root:
68+
69+
```bash
70+
oc apply -f nemotron-secret.yaml
71+
oc apply -f redhat-internal-ca.yaml
72+
oc apply -f nemotron-openstacklightspeed.yaml
73+
```
74+
75+
## 3. Wait for OpenStack Lightspeed to become ready
76+
77+
Wait for the custom resource to report `Ready`, then check its pods and
78+
conditions for errors before proceeding:
79+
80+
```bash
81+
oc wait -n openstack-lightspeed \
82+
openstacklightspeed/nemotron-super-120b-bf16-ga \
83+
--for=condition=Ready --timeout=20m
84+
oc get -n openstack-lightspeed deployments,pods
85+
oc describe -n openstack-lightspeed \
86+
openstacklightspeed/nemotron-super-120b-bf16-ga
87+
```
88+
89+
Resolve any failing conditions, pod errors, or image pull issues before
90+
creating the assistant.
91+
92+
## 4. Deploy OpenStackAssistant
93+
94+
The `openstack_assistant` target creates the `OpenStackAssistant` custom
95+
resource and its supporting configuration. It expects the RHOSO
96+
`OpenStackClient` resource named `openstackclient` in the `openstack`
97+
namespace. The target checks that the OpenStackClient MCP endpoint is enabled
98+
and enables it through the owning `OpenStackControlPlane` if needed.
99+
100+
```bash
101+
(cd ../install_yamls && make openstack_assistant)
102+
```
103+
104+
Confirm the assistant and its pod are ready before entering the pod:
105+
106+
```bash
107+
oc get -n openstack openstackassistant/openstack-assistant
108+
oc get -n openstack pod/openstack-assistant
109+
```
110+
111+
## 5. Start Goose in the assistant pod
112+
113+
Enter the pod:
114+
115+
```bash
116+
oc rsh -n openstack openstack-assistant
117+
```
118+
119+
Then launch Goose in the pod:
120+
121+
```bash
122+
goose
123+
```
124+
125+
You can use interactive chat directly or run a pre-configured recipe with:
126+
127+
```bash
128+
/cluster-health
129+
```
130+
131+
The assistant can use the read-only OpenStack MCP server running alongside
132+
OpenStackClient in its `mcp-server` sidecar. A Kubernetes NetworkPolicy protects
133+
that MCP connection. The Goose developer extension also provides `oc` tools;
134+
those run under a locked-down service account created by openstack-operator and
135+
are restricted to read-only commands.

0 commit comments

Comments
 (0)