oxidecomputer / omicron

Omicron: Oxide control plane
Mozilla Public License 2.0
224 stars 34 forks source link

`tools/destroy_virtual_hardware.sh` is missing some new steps #4245

Open iliana opened 9 months ago

iliana commented 9 months ago

I have an "uninstall the control plane and reinstall it with whatever is in ~/git/omicron" shell script. It is not very good but it reliably keeps me from forgetting a step when I need to set up a control plane. One thing the script does is always run pfexec ./tools/destroy_virtual_hardware.sh after omicron-package uninstall, because external networking does not appear to function for me if I don't destroy and re-create the switch zone. (This is perhaps another issue; should I not need to have to do this?)

Two recent changes have resulted in me making changes to my script that destroy_virtual_hardware.sh doesn't know about:

I think something should be doing this cleanup but I'm not sure what.

iliana commented 9 months ago

related discussion: #4252

jordanhendricks commented 9 months ago

Sorry for the trouble with the swap device. Does your system not use one by default? Sled agent will not configure one unless there isn't one already.

iliana commented 9 months ago

It didn't use one by default until I finally consistently hit memory limitations while compiling tests yesterday. So perhaps I have solved it for myself this way.