-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
User guide: troubleshooting: describe the issue with forced deletion
This PR starts a troubleshooting FAQ for BMO. The first two entries concern stuck cleaning and conflict after a forced deletion. Signed-off-by: Dmitry Tantsur <[email protected]>
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Troubleshooting FAQ | ||
|
||
## Host is stuck in cleaning, how do I delete it? | ||
|
||
First and foremost, avoid using forced deletion, otherwise you'll have [a | ||
conflict](#mac-address-conflict-on-registration). If you don't care about disks | ||
being [cleaned](automated_cleaning.md), you can edit the BareMetalHost resource | ||
and disable cleaning: | ||
|
||
```yaml | ||
spec: | ||
automatedCleaningMode: disabled | ||
``` | ||
Alternatively, you can wait for 3 cleaning retries to finish. After that, the | ||
host will be deleted. If you do care about cleaning, you need to figure out why | ||
it does not finish. | ||
## MAC address conflict on registration | ||
If you force deletion of a host after registration, BareMetal Operator will not | ||
be able to delete the corresponding record from Ironic. If you try to enroll | ||
the same host again, you will see the following error: | ||
```text | ||
Normal RegistrationError 4m36s metal3-baremetal-controller MAC address 11:22:33:44:55:66 conflicts with existing node namespace~name | ||
``` | ||
|
||
Currently, the only way to get rid of this error is to re-create the Ironic's | ||
internal database. If your deployment uses SQLite (the default), it is enough | ||
to restart the pod with Ironic. If you use MariaDB, you need to restart its | ||
pod, clearing any persistent volumes. |