Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear XDE underlay when destroying virtual hardware #5602

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

FelixMcFelix
Copy link
Contributor

@FelixMcFelix FelixMcFelix commented Apr 23, 2024

OPTE now prevents itself from being unloaded if its underlay state is set. Currently, underlay setup is performed only once, and it seems to be the case that XDE can be unloaded in some scenarios (e.g., a4x2 setup).

However, a consequence is that removing the driver requires an extra operation to explicitly clear the underlay state. This PR adds this operation to the cargo xtask virtual-hardware destroy command.

This is ready for review, but we want to merge after:

Closes #5314.

OPTE now prevents itself from being unloaded if its underlay state is
set. Currently, underlay setup is performed only once, and it seems to be
the case that XDE can be unloaded in some scenarios (e.g., `a4x2`
setup).

However, a consequence is that removing the driver requires an extra
operation to explicitly clear the underlay state. This PR adds this
operation to the `cargo xtask virtual-hardware destroy` command.

This is currently blocked on opte#485 being approved/merged.

Closes #5314.
@FelixMcFelix FelixMcFelix marked this pull request as ready for review April 26, 2024 23:27
@FelixMcFelix FelixMcFelix marked this pull request as draft April 26, 2024 23:28
FelixMcFelix added a commit to oxidecomputer/maghemite that referenced this pull request May 21, 2024
@FelixMcFelix FelixMcFelix requested a review from smklein May 21, 2024 11:34
@FelixMcFelix FelixMcFelix marked this pull request as ready for review May 21, 2024 11:34
Copy link
Collaborator

@smklein smklein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, also looks like the helios deployment job failure is related to those OPTE targets not being ready yet

FelixMcFelix added a commit to oxidecomputer/maghemite that referenced this pull request May 23, 2024
* Bump OPTE to API version 0.31

This is needed to support oxidecomputer/omicron#5602.

* Update OPTE (again).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nexus zone failed to come up due to uninitialized underlay that appears to have been initialized?
2 participants