Skip to content

Commit

Permalink
Merge pull request #295 from Nordix/lentzi90/inspection
Browse files Browse the repository at this point in the history
Add section about inspection
  • Loading branch information
metal3-io-bot authored Nov 4, 2022
2 parents 14c6b6c + 7438c9e commit 6916f3f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/user-guide/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- [Detached annotation](bmo/detached_annotation.md)
- [Status annotation](bmo/status_annotation.md)
- [External Inspection](bmo/external_inspection.md)
- [Inspect annotation]()
- [Inspect annotation](bmo/inspect_annotation.md)
- [Reboot annotation](bmo/reboot_annotation.md)
- [Ironic in Metal3](ironic/introduction.md)
- [Install Ironic](ironic/ironic_installation.md)
Expand Down
39 changes: 39 additions & 0 deletions docs/user-guide/src/bmo/inspect_annotation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Inspect annotation

The inspect annotation can be used to request the baremetal operator to (re-)inspect a `Ready` BareMetalHost.
This is useful in case there were hardware changes for example.
Note that it is only possible to do this when BareMetalHost is in `Ready` state.
If an inspection request is made while BareMetalHost is any other state than Ready, the request will be ignored.

To request a new inspection, simply annotating the host with `inspect.metal3.io` is enough.
Once inspection is requested, you should see the BMH in inspecting state until inspection is completed, and by the end of inspection the `inspect.metal3.io` annotation will be removed automatically.

Here is an example:

```yaml
apiVersion: metal3.io/v1alpha1
kind: BareMetalHost
metadata:
name: example
annotations:
# The inspect annotation with no value
inspect.metal3.io: ""
spec:
online: true
bootMACAddress: 00:8a:b6:8e:ac:b8
bootMode: legacy
bmc:
address: ipmi://192.168.111.1:6230
credentialsName: example-bmc-secret
...
```

Why is this needed?

- For re-inspecting BareMetalHosts after hardware changes.

Caveats:

- It is only possible to inspect a BareMetalHost when it is in `Ready` state.

Note: For other use cases, like disabling inspection or providing externally gathered inspection data, see [external inspection](./external_inspection.md).

0 comments on commit 6916f3f

Please sign in to comment.