Skip to content

OneForm sync does not clean removed drivers #7591

@vickmp

Description

@vickmp

Description
When OneForm performs a driver sync using the oneform sync command, removed drivers are not properly cleaned up. Resources and symbolic links created by OneForm (e.g., for IPAM and elastic scripts) remain in the system even after the driver is deleted, which leads to errors during the synchronization of host remotes folder.

To Reproduce

  1. Add any driver to OneForm.
  2. Run oneform sync to create the required resources and symbolic links.
  3. Manually remove the driver.
  4. Run oneform sync again.
  5. The driver is unregistered from OneForm, but the symbolic links are not cleaned up.

Expected behavior
All resources and symbolic links associated with removed drivers should be fully cleaned up during oneform sync.

Details

  • Affected Component: OneForm
  • Hypervisor: KVM
  • Version: 7.2

Additional context
Currently, the only workaround is to manually remove broken symbolic links using:

find /var/lib/one/remotes -xtype l -print -delete

Progress Status

  • Code committed
  • Testing - QA
  • Documentation (Release notes - resolved issues, compatibility, known issues)

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions