Skip to content

Add admin status to nic port#655

Draft
iljarotar wants to merge 10 commits into
masterfrom
fix-downports-bug
Draft

Add admin status to nic port#655
iljarotar wants to merge 10 commits into
masterfrom
fix-downports-bug

Conversation

@iljarotar

@iljarotar iljarotar commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Description

The double-role of the Actual field of a switch port causes a bug in the metal-core that sometimes results in ports being set to DOWN by metal-core (metal-stack/metal-core#196).

A cleaner solution would include adding a table for the switch status and remove all status fields from the switch table. Then the reports coming from metal-core will only be reflected in the switch status table while the switch table would only hold the desired state of a switch. Once metal-core is migrated to v2API, we should work on this cleaner solution. For now, this quick solution is okay, I think.

TODO

  • Allow setting port status on ports that don't have a machine connection. Otherwise, this PR would make it impossible to add new machines on ports that were previously down.

@iljarotar iljarotar requested a review from a team as a code owner June 26, 2026 11:37
@iljarotar iljarotar requested a review from mwennrich June 26, 2026 11:37
@metal-robot metal-robot Bot added the area: control-plane Affects the metal-stack control-plane area. label Jun 26, 2026
@iljarotar iljarotar marked this pull request as draft June 30, 2026 10:53
@iljarotar iljarotar marked this pull request as ready for review July 3, 2026 14:52
@iljarotar iljarotar marked this pull request as draft July 3, 2026 14:53
@iljarotar iljarotar moved this to In Progress in Development Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: control-plane Affects the metal-stack control-plane area.

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant