Skip to content

Commit 0fae3e0

Browse files
committed
Add openstackassistant docs
1 parent 3d33171 commit 0fae3e0

2 files changed

Lines changed: 146 additions & 0 deletions

File tree

‎docs/index.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@ configuration
3434
development
3535
troubleshooting
3636
usage
37+
openstackassistant
3738
:::

‎docs/openstackassistant.md‎

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
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+
OpenStack Lightspeed provides the inference API Goose uses. OpenStackAssistant
8+
provides the Goose runtime and its tool configuration; it is reconciled by the
9+
OpenStack Operator. The MCP server used by Goose in this guide comes from
10+
OpenStackClient. OpenStack Lightspeed has a separate optional MCP sidecar, which
11+
this guide does not enable.
12+
13+
> [!IMPORTANT]
14+
> Before starting, you need a working RHOSO deployment. The MCP tools in this
15+
> guide expect resources from the deployed OpenStack control plane and are not
16+
> available without RHOSO.
17+
18+
## 1. Deploy the OpenStack Lightspeed operator
19+
20+
From the lightspeed-operator repository, deploy the operator using the adjacent
21+
`install_yamls` checkout:
22+
23+
```bash
24+
(cd ../install_yamls && make openstack_lightspeed)
25+
```
26+
27+
## 2. Create the LLM credentials and OpenStackLightspeed instance
28+
29+
Create the API token Secret in the `openstack-lightspeed` namespace. Replace
30+
`REDACTED` locally with the API token for your LLM provider before applying;
31+
do not commit the real token or add it to this document.
32+
33+
```yaml
34+
apiVersion: v1
35+
kind: Secret
36+
metadata:
37+
name: openstack-lightspeed-apitoken
38+
namespace: openstack-lightspeed
39+
type: Opaque
40+
stringData:
41+
apitoken: REDACTED
42+
```
43+
44+
Save this as `openstack-lightspeed-apitoken.yaml`.
45+
46+
Set `llmEndpoint`, `llmEndpointType`, and `modelName` below to values for your
47+
LLM provider. Use the provider's API URL, including `/v1` when required. If the
48+
endpoint uses a private or self-signed certificate that the cluster does not
49+
trust, create the `llm-endpoint-ca` ConfigMap in `openstack-lightspeed` with its
50+
CA bundle in PEM format. Otherwise, omit `tlsCACertBundle` and skip applying
51+
that ConfigMap.
52+
53+
Then create the `OpenStackLightspeed` resource. The API token and CA contents
54+
are intentionally omitted here. The endpoint URL must be reachable from the
55+
`openstack-lightspeed` namespace.
56+
57+
```yaml
58+
apiVersion: lightspeed.openstack.org/v1beta1
59+
kind: OpenStackLightspeed
60+
metadata:
61+
name: openstack-lightspeed
62+
namespace: openstack-lightspeed
63+
spec:
64+
tlsCACertBundle: llm-endpoint-ca
65+
llmEndpoint: https://<llm-provider-host>:<port>/v1
66+
llmEndpointType: <provider-type>
67+
llmCredentials: openstack-lightspeed-apitoken
68+
modelName: <model-name>
69+
```
70+
71+
Save this as `openstacklightspeed.yaml`.
72+
73+
Prepare `llm-endpoint-ca.yaml` locally from your provider's CA bundle if one is
74+
needed, and keep credentials and certificate material out of version control.
75+
Apply the Secret and custom resource from the lightspeed-operator repository
76+
root. Apply the CA ConfigMap only when needed, and omit `tlsCACertBundle` from
77+
the resource when it is not used:
78+
79+
```bash
80+
oc apply -f openstack-lightspeed-apitoken.yaml
81+
oc apply -f llm-endpoint-ca.yaml # only for a private or self-signed endpoint certificate
82+
oc apply -f openstacklightspeed.yaml
83+
```
84+
85+
## 3. Wait for OpenStack Lightspeed to become ready
86+
87+
Wait for the custom resource to report `Ready`, then check its pods and
88+
conditions for errors before proceeding:
89+
90+
```bash
91+
oc wait -n openstack-lightspeed \
92+
openstacklightspeed/openstack-lightspeed \
93+
--for=condition=Ready --timeout=20m
94+
oc get -n openstack-lightspeed deployments,pods
95+
oc describe -n openstack-lightspeed \
96+
openstacklightspeed/openstack-lightspeed
97+
```
98+
99+
Resolve any failing conditions, pod errors, or image pull issues before
100+
creating the assistant.
101+
102+
## 4. Deploy OpenStackAssistant
103+
104+
The `openstack_assistant` target creates the `OpenStackAssistant` custom
105+
resource and its supporting configuration. It expects the RHOSO
106+
`OpenStackClient` resource named `openstackclient` in the `openstack`
107+
namespace. The target checks that the OpenStackClient MCP endpoint is enabled
108+
and enables it through the owning `OpenStackControlPlane` if needed.
109+
110+
```bash
111+
(cd ../install_yamls && make openstack_assistant)
112+
```
113+
114+
Confirm the assistant and its pod are ready before entering the pod:
115+
116+
```bash
117+
oc get -n openstack openstackassistant/openstack-assistant
118+
oc get -n openstack pod/openstack-assistant
119+
```
120+
121+
## 5. Start Goose in the assistant pod
122+
123+
Enter the pod:
124+
125+
```bash
126+
oc rsh -n openstack openstack-assistant
127+
```
128+
129+
Then launch Goose in the pod:
130+
131+
```bash
132+
goose
133+
```
134+
135+
You can use interactive chat directly or run a pre-configured recipe with:
136+
137+
```bash
138+
/cluster-health
139+
```
140+
141+
The assistant can use the read-only OpenStack MCP server running alongside
142+
OpenStackClient in its `mcp-server` sidecar. A Kubernetes NetworkPolicy protects
143+
that MCP connection. The Goose developer extension also provides `oc` tools;
144+
those run under a locked-down service account created by openstack-operator and
145+
are restricted to read-only commands.

0 commit comments

Comments
 (0)