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

More tests for zfs-ng SMAPIv3 driver #214

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft

Commits on Apr 4, 2024

  1. lib/vdi: add shapshot and clone operations

    Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
    ydirson committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    e7326c7 View commit details
    Browse the repository at this point in the history
  2. zfs-vol: add simple tests for cloning a VDI (xfail) and a VDI snapshot

    Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
    ydirson committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    25aafa1 View commit details
    Browse the repository at this point in the history
  3. zfs-vol: create tests for VDI destroy as we want it for the public proto

    Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
    ydirson committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    31a72ab View commit details
    Browse the repository at this point in the history
  4. WIP zfs-vol: add basics setup for testing snapshot/clone chains

    * this only tests clones of snapshots, as cloning without explicit snap
      is not supported yet
    
    FIXME:
    * vdi_and_snaps_chain is nothing specific to ZFS, should be moved to
      somewhere generic
    ydirson committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    c69a328 View commit details
    Browse the repository at this point in the history
  5. zfs-vol: test destroying each VDI in the chain independently from the…

    … others
    
    Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
    ydirson committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    2fa842a View commit details
    Browse the repository at this point in the history
  6. zfs-vol: test destroying the chain in all remaining orders supported …

    …by proto
    
    Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
    ydirson committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    6c216c3 View commit details
    Browse the repository at this point in the history
  7. WIP zfs-vol: add a test for destroying base of a snap with 2 clones

    No failure should happen, but this can be used to check in the logs that
    we only perform the single required "zfs promote" and not one per clone.
    
    FIXME: automate this check
    ydirson committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    1fb6d07 View commit details
    Browse the repository at this point in the history
  8. zfs-vol: test chain of VDI clones and their destuction (xfail)

    Cloning a VDI without a snapshot is not implemented yet.
    
    Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
    ydirson committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    46077e9 View commit details
    Browse the repository at this point in the history
  9. zfs-vol: now implements "extra clones to unlock promotion"

    ... with side effect that some extra clones will now prevent destruction
    of some snapshots
    
    Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
    ydirson committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    4c7c21e View commit details
    Browse the repository at this point in the history
  10. zfs-vol: vm-snapshot testing

    Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
    ydirson committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    2415229 View commit details
    Browse the repository at this point in the history
  11. zfs-vol: test chain of VDI clones and their destuction (xfail)

    Cloning a VDI without a snapshot is just not implemented yet.
    
    Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
    ydirson committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    dd75e38 View commit details
    Browse the repository at this point in the history
  12. zfs-vol: add a test for VDI resize

    Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
    ydirson committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    cd35610 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2024

  1. WIP test_create_and_destroy_sr: make sure SR is destroyed if VM.creat…

    …e fails
    
    TODO: all other SR
    ydirson committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    b1bc1f8 View commit details
    Browse the repository at this point in the history