Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions components/understack-diagnostics/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
# understack-diagnostics

NGINX that accepts diagnostic files uploaded by BMCs over HTTP PUT onto its own
NGINX that accepts diagnostic files uploaded by BMCs via the gateway onto its own
volume, and serves them to NodeDash with basic auth. Each kind of file gets its
own top-level directory; Dell SupportAssist collections use `supportassist`.

| Port | Use | Access |
|---|---|---|
| 8080 | `PUT /diagnostics/<kind>/<node-uuid>/<file>` | internal gateway only, no credentials |
| 8080 | `PUT /diagnostics/<kind>/<node-uuid>/<file>` | gateway only, no credentials |
| 8081 | `GET /archives/<kind>/<node-uuid>/` | HTTPS only, basic auth |

Values: `storageClassName` and `storageSize`. Requires the Secret
`diagnostics-download-auth` (key `htpasswd`) in the namespace.

TLS terminates at Envoy. Uploads use the diagnostics hostname, which each
iDRAC must resolve, with certificate verification enabled. The supplied gateway
listeners and routes require that hostname. Provision destination trust using
the [SupportAssist HTTPS trust procedure](../../docs/operator-guide/supportassist-client-trust.md).

Setup steps, routes and operations are in
[docs/deploy-guide/components/diagnostics.md](../../docs/deploy-guide/components/diagnostics.md).
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ data:
client_body_temp_path /data/.tmp;

# Uploads: PUT /diagnostics/<kind>/<node-uuid>/<file> -> /data/<kind>/...
# Only the internal gateway route targets this listener. It has no
# Only the gateway upload route targets this listener. It has no
# credentials: anything that can reach it can upload or overwrite.
server {
listen 8080;
Expand Down
6 changes: 3 additions & 3 deletions containers/ironic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ RUN apt-get update && \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

# renovate: name=openstack/ironic repo=https://github.com/rackerlabs/ironic.git branch=understack/2026.2
ARG IRONIC_GIT_REF=92c228dd439db107dc42c618b249a401c19a1b2a
ARG IRONIC_GIT_REF=984fe68bfdf1999a2e6e45e10a0c359bb2ac8021
ADD --keep-git-dir=true https://github.com/rackerlabs/ironic.git#${IRONIC_GIT_REF} /src/ironic
RUN git -C /src/ironic fetch --unshallow --tags

# renovate: name=openstack/sushy repo=https://github.com/rackerlabs/sushy.git branch=understack/2026.2
ARG SUSHY_GIT_REF=3da92dc4026f2110377b83f4960140bf1abbd730
ADD --keep-git-dir=true https://github.com/openstack/sushy.git#${SUSHY_GIT_REF} /src/sushy
ARG SUSHY_GIT_REF=0b85f54ce3d64282893e89778bfec59e1d90ef49
ADD --keep-git-dir=true https://github.com/rackerlabs/sushy.git#${SUSHY_GIT_REF} /src/sushy
RUN git -C /src/sushy fetch --unshallow --tags && \
sed -i '/sushy==.*/d' /upper-constraints.txt

Expand Down
45 changes: 33 additions & 12 deletions docs/deploy-guide/components/diagnostics.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ deploy_overrides:
---
# diagnostics

Receives diagnostic files that BMCs upload over HTTP and lets NodeDash read
Receives diagnostic files that BMCs upload through Envoy and lets NodeDash read
them back. Each kind of file has its own top-level directory, named in the URL.
Dell SupportAssist collections use `supportassist`. A new kind needs no chart
change: the client uploads under a new name.

```text
iDRAC --PUT /diagnostics/<kind>/<node-uuid>/<file>--> internal gateway :80
iDRAC --HTTPS PUT /diagnostics/<kind>/<node-uuid>/<file>--> gateway :443
--> Service diagnostics :8080 --> /data/<kind>/<node-uuid>/<file>

NodeDash --GET https://diagnostics.<site>/archives/<kind>/<node-uuid>/ (basic auth)
Expand Down Expand Up @@ -54,8 +54,9 @@ Set these up for each site:
the Secret `diagnostics-download-auth` with one key, `htpasswd`, holding
an NGINX password file. The pod does not start without it.
2. **Upload route.** In `$CLUSTER_NAME/envoy-configs/`, add an HTTPRoute on
the internal gateway that sends `PUT /diagnostics/` to Service
`diagnostics` port `8080`. Allow long requests (15 minutes on iad3-dev).
the diagnostics HTTPS listener that sends `PUT /diagnostics/` to Service
`diagnostics` port `8080`. TLS terminates at Envoy. Allow long requests
(15 minutes).

```yaml
apiVersion: gateway.networking.k8s.io/v1
Expand All @@ -65,8 +66,11 @@ Set these up for each site:
namespace: understack-diagnostics
spec:
parentRefs:
- name: internal-gateway
- name: external-gateway
namespace: envoy-gateway
sectionName: diagnostics
hostnames:
- diagnostics.<site>.undercloud.rackspace.net
rules:
- matches:
- path: {type: PathPrefix, value: /diagnostics/}
Expand All @@ -76,8 +80,10 @@ Set these up for each site:
timeouts: {request: 15m, backendRequest: 15m}
```

3. **Read hostname.** In `$CLUSTER_NAME/envoy-configs/values.yaml`, add an
`fqdn` entry that publishes Service `diagnostics` port `8081`.
3. **Diagnostics hostname.** In `$CLUSTER_NAME/envoy-configs/values.yaml`,
add an `fqdn` entry that creates the HTTPS listener and publishes Service
`diagnostics` port `8081` for reads. The more specific PUT route above
sends uploads to port `8080` on the same hostname.

```yaml
- fqdn: diagnostics.<site>.undercloud.rackspace.net
Expand All @@ -89,22 +95,37 @@ Set these up for each site:

4. **Ironic share URL (SupportAssist).** In `$CLUSTER_NAME/ironic/values.yaml`,
set `conf.ironic.drac.support_assist_share_url` to
`http://<internal gateway IP>/diagnostics/supportassist/{node_uuid}/`. Use
the IP, not a hostname: many iDRACs have no DNS servers configured.
`https://diagnostics.<site>.undercloud.rackspace.net/diagnostics/supportassist/{node_uuid}/`.
Use the diagnostics certificate hostname. Each iDRAC must resolve that
hostname and reach the gateway on TCP 443.
5. **NodeDash (SupportAssist).** Set `SUPPORT_ASSIST_ARCHIVE_URL` to
`https://diagnostics.<site>.undercloud.rackspace.net/archives/supportassist/`
and give NodeDash the reader username and password.

Optional: `$CLUSTER_NAME/understack-diagnostics/values.yaml` with
`storageClassName` (default `openebs-lvm`) and `storageSize` (default `40Gi`).

### HTTPS trust

Uploads use
`https://diagnostics.<site>.undercloud.rackspace.net/diagnostics/supportassist/{node_uuid}/`
with certificate verification enabled (`IgnoreCertWarning=Off`). Each iDRAC
must resolve the diagnostics hostname, reach the gateway on TCP 443, and trust
its certificate chain. The supplied gateway listeners and routes require the
diagnostics hostname; they do not support IP URLs.

Before changing a site's Ironic share URL, follow the
[SupportAssist HTTPS trust procedure](../../operator-guide/supportassist-client-trust.md)
to provision and verify trust on each target iDRAC.

## Behavior

- **Uploads** need no credentials. A NetworkPolicy lets only the
`envoy-gateway` namespace reach the pods, so anything that can reach the
internal route can upload or overwrite a file of any kind. Never expose that
route externally. Only `PUT` under `/diagnostics/` is accepted. It needs a
`Content-Length`, rejects query strings and allows up to 2 GiB.
upload route can upload or overwrite a file of any kind. HTTPS encrypts
uploads; it does not authenticate the uploader. Only `PUT` under
`/diagnostics/` is accepted. It
needs a `Content-Length`, rejects query strings and allows up to 2 GiB.
- **Reads** need the reader password and allow only GET and HEAD. One
credential reads every file of every kind, so keep it in NodeDash and away
from browsers.
Expand Down
3 changes: 3 additions & 0 deletions docs/operator-guide/diagnostics-archives.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ is full.

![NodeDash SupportAssist tab with the node's archive list](images/diagnostics-archives.png)

For HTTPS uploads, provision the node's destination CA trust using the
[SupportAssist HTTPS trust procedure](supportassist-client-trust.md).

## Setup

```bash
Expand Down
2 changes: 2 additions & 0 deletions docs/operator-guide/hardware.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ individual physical machine. Start with the task you need to perform:
console.
- [Server Firmware Updates](server-firmware-update.md) — update firmware from
the operator side.
- [SupportAssist HTTPS Trust](supportassist-client-trust.md) — provision CA trust
for diagnostic uploads while preserving existing certificates.
- [BMC Password](bmc-password.md) — retrieve the generated password for a
server's management controller.

Expand Down
58 changes: 58 additions & 0 deletions docs/operator-guide/supportassist-client-trust.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# SupportAssist HTTPS trust

SupportAssist uploads use the site's diagnostics hostname with certificate
verification enabled. Provision and verify trust on each target iDRAC before
changing the site's upload URL to HTTPS.
OIDC is independent and uses its provider-specific HTTPS certificate; its
configuration is not an input to SupportAssist provisioning.

## Provisioning a node

Use an Ironic image containing the `management.add_client_trust_certificate`
clean/service step and Sushy's Dell certificate export/import operations. The
step retains every existing outbound trust entry, adds missing certificates,
and verifies readback. It does not modify other certificate types, client
identity certificates/private keys, or OIDC attributes. Collection never
installs certificates.

Export and retain the existing outbound bundle before using a firmware version
that has not been tested for multi-PEM retention. A failed update attempts to
restore the original populated bundle; a reported restoration failure requires
operator recovery before continuing.

Identify the trust root for the diagnostics certificate chain from the site's
Gateway TLS certificate configuration and the issuing CA's chain documentation.
Check that the served leaf certificate matches the diagnostics hostname and
that the Gateway serves the required intermediates. Obtain the root CA's public
PEM from the CA's authenticated distribution endpoint. The example below applies
to a Let's Encrypt chain rooted at ISRG Root X1; use the appropriate root for
the site's actual chain.

With the selected site's OpenStack cloud credentials:

```sh
curl --fail --show-error --location \
https://letsencrypt.org/certs/isrgrootx1.pem -o diagnostics-ca.pem
jq -n --rawfile certificate diagnostics-ca.pem \
'[{"interface":"management","step":"add_client_trust_certificate",
"args":{"certificate":$certificate}}]' > trust-steps.json
openstack baremetal node service --disable-ramdisk \
--service-steps trust-steps.json NODE
```

Use the root CA appropriate for the site's served certificate chain; do not
import the Gateway's leaf certificate or private key. Service steps require an
active node. For a manageable node, use
`openstack baremetal node clean --disable-ramdisk --clean-steps trust-steps.json NODE`.
Wait for the step to finish successfully, then collect through NodeDash and
check the terminal job status and downloaded archive. An untrusted destination
fails the upload; do not disable verification to proceed.

## Certificate updates

Gateway leaf certificates can renew under the same trusted CA without changing
iDRAC trust. Before switching to a chain that requires a different root, add the
new CA with the same explicit step and verify an upload on the installed
firmware. Repeated installation is a no-op, and existing entries are retained
for other outbound HTTPS consumers. OIDC's provider-specific trust is managed
separately. Keep certificate verification and hostname matching enabled.
1 change: 1 addition & 0 deletions properdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ nav:
- operator-guide/flavors.md
- operator-guide/server-firmware-update.md
- operator-guide/diagnostics-archives.md
- operator-guide/supportassist-client-trust.md
- operator-guide/bmc-password.md
- 'Platform Services':
- operator-guide/argocd-helm-chart.md
Expand Down
Loading