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

feat(netbox): don't delete VMs and interfaces that don't have a UUID #7008

Merged
merged 3 commits into from
Sep 8, 2023

Conversation

pdonias
Copy link
Member

@pdonias pdonias commented Aug 30, 2023

See https://xcp-ng.org/forum/topic/7639

Description

In an effort of not deleting or overwriting useful data that has been added manually by the user, this reverts the feature of deleting VMs and interfaces that are not bound to an XO object via their custom field UUID. Such objects:

  • shouldn't exist in normal use cases anyway
  • aren't an issue for the Netbox sync
  • are easy to clean manually

Checklist

  • Commit
    • Title follows commit conventions
    • Reference the relevant issue (Fixes #007, See xoa-support#42, See https://...)
    • If bug fix, add Introduced by
  • Changelog
    • If visible by XOA users, add changelog entry
    • Update "Packages to release" in CHANGELOG.unreleased.md
  • PR
    • If UI changes, add screenshots
    • If not finished or not tested, open as Draft

Copy link
Member

@MathieuRA MathieuRA left a comment

Choose a reason for hiding this comment

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

Changelog entry is not necessary?

See https://xcp-ng.org/forum/topic/7639

In an effort of not deleting or overwriting useful data that has been added
manually by the user, this reverts the feature of deleting VMs and interfaces
that are not bound to an XO object via their custom field UUID.
Such objects:
- shouldn't exist in normal use cases anyway
- aren't an issue for the Netbox sync
- are easy to clean manually
@pdonias
Copy link
Member Author

pdonias commented Sep 8, 2023

I was thinking no at first but actually, it's visible by users so I'm going to add it.

CHANGELOG.unreleased.md Outdated Show resolved Hide resolved
Co-authored-by: Mathieu <70369997+MathieuRA@users.noreply.github.com>
@pdonias pdonias merged commit d992a4c into master Sep 8, 2023
1 check passed
@pdonias pdonias deleted the pierre-netbox-no-cleanup branch September 8, 2023 08:36
ByScripts pushed a commit that referenced this pull request Sep 14, 2023
…7008)

See https://xcp-ng.org/forum/topic/7639

In an effort of not deleting or overwriting useful data that has been added
manually by the user, this reverts the feature of deleting VMs and interfaces
that are not bound to an XO object via their custom field UUID. Such objects:
- shouldn't exist in normal use cases anyway
- aren't an issue for the Netbox sync
- are easy to clean manually
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.

None yet

3 participants