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

Can't Remove PIF #7193

Closed
ajpri opened this issue Nov 19, 2023 · 7 comments · Fixed by #7221
Closed

Can't Remove PIF #7193

ajpri opened this issue Nov 19, 2023 · 7 comments · Fixed by #7221
Assignees
Labels
Milestone

Comments

@ajpri
Copy link

ajpri commented Nov 19, 2023

Describe the bug
When trying to remove a PIF in Xen Orchestra CE 5fe53 of a removed physical adapter, an error message is received "PIF_IS_PHYSICAL()".

To Reproduce

  1. Go to the Network tab of a host.
  2. Click on the red trash can icon of a physical NIC that is no longer physically present.
  3. See error

Expected behavior
For physical PIFs, pif-forget should be used on the backend to remove physical NICs.

Screenshots
If applicable, add screenshots to help explain your problem.
Screenshot from 2023-11-19 07-47-13
image

Environment (please provide the following information):

  • Node: 18.18.2
  • hypervisor: XCP-ng 8.2, fully up to date

Additional context
Conversation at Forums and GitHub Docs Contribution

@olivierlambert
Copy link
Member

Thanks a lot for the report 👍

@olivierlambert olivierlambert added this to the Q4 2023 milestone Nov 19, 2023
@olivierlambert olivierlambert added the Good first issue 👶 Ideal issue for someone starting to work on XO label Nov 19, 2023
@julien-f
Copy link
Member

@olivierlambert So XO should automatically call PIF.forget when PIF.destroy throws PIF_IS_PHYSICAL?

@olivierlambert
Copy link
Member

Ask @Fohdeesha for confirmation

@Fohdeesha
Copy link
Contributor

I think this would be acceptable, yes. If not just calling PIF forget always instead of destroy. They both fully remove the PIF from XAPI as far as I know, Citrix's own documentation seems to call pif forget and not destroy when removing NICs: https://support.citrix.com/article/CTX127161/how-to-replace-a-network-interface-card-in-a-xenserver-host - however maybe we should ask @stormi for confirmation on the difference.

@stormi
Copy link
Collaborator

stormi commented Dec 1, 2023

I have no idea but if needed we can ask someone in the XCP-ng Team to have a look at the code.

@olivierlambert
Copy link
Member

I think that's the right approach. But yeah, let's do it in XO, and make some functional test on the XCP-ng team when the branch is ready to confirm it works as expected 👍

@olivierlambert
Copy link
Member

@julien-f I let you assign the right XO dev on this

pdonias pushed a commit that referenced this issue Dec 18, 2023
Fixes #7193

Calling `pif.destroy` generates PIF_IS_PHYSICAL error when the PIF has been
physically removed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants