Skip to content

CP-54441 Adapt interface ordering in xe-reset-networking #6544

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

Open
wants to merge 2 commits into
base: feature/host-network-device-ordering
Choose a base branch
from

Conversation

changlei-li
Copy link
Contributor

If interface-rename script doesn't exist, networkd will

  • handle the interfaces sorting
  • write inventory when first boot

So, when interface-rename doesn't exist, xe-reset-networking should:

  • NOT call interface-rename script
  • Delete MANAGEMENT_INTERFACE value in inventory.

BTW, the current bridge name conversion method rely on hardcode 'eth' which is correct only when interface-rename script exists.

If interface-rename script doesn't exist, networkd will
- handle the interfaces sorting
- write inventory when first boot

So, when interface-rename doesn't exist, xe-reset-networking
should:
- NOT call interface-rename script
- Delete MANAGEMENT_INTERFACE value in inventory.

BTW, the current bridge name conversion method rely on hardcode
'eth' which is correct only when interface-rename script exists.

Signed-off-by: Changlei Li <changlei.li@cloud.com>
@changlei-li
Copy link
Contributor Author

@changlei-li changlei-li requested a review from minglumlu June 20, 2025 02:00
@changlei-li changlei-li force-pushed the private/changleli/CP-54441 branch from 8b27ba1 to 8fff11c Compare June 20, 2025 10:40
On XS 8, `service xapi stop` redirect to `systemctl`.
On XS 9, `service` is not supported.
So use `systemctl` to stop xapi service.

Signed-off-by: Changlei Li <changlei.li@cloud.com>
@changlei-li changlei-li force-pushed the private/changleli/CP-54441 branch from 8fff11c to 33e349f Compare June 20, 2025 10:49
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.

1 participant