Skip to content

M3-US4 - Disk from snapshot to VM #166

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

Merged
merged 16 commits into from
Mar 21, 2023
Merged

M3-US4 - Disk from snapshot to VM #166

merged 16 commits into from
Mar 21, 2023

Conversation

anazobec
Copy link
Collaborator

@anazobec anazobec commented Mar 13, 2023

Add vm_snapshot modules:

  • module_utils/vm_snapshot
  • modules/vm_snapshot_info and integration tests for this one

@anazobec anazobec requested a review from justinc1 March 13, 2023 12:37
@anazobec anazobec self-assigned this Mar 13, 2023
Copy link
Collaborator

@justinc1 justinc1 left a comment

Choose a reason for hiding this comment

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

small changes. Thank you.

Copy link
Collaborator

@justinc1 justinc1 left a comment

Choose a reason for hiding this comment

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

I think filtering does not work the way it should.

Without setting up dedicated VMs and snapshot will be hard to write integration tests. I think that should be the first step.

Copy link
Collaborator

@justinc1 justinc1 left a comment

Choose a reason for hiding this comment

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

We will make test infra (the 2 VMs and their snapshots) more complex later.

How to refactor filter_snapshots_by_params - if code works correctly, we can refactor it later. Nice code can wait.

https://github.com/ScaleComputing/HyperCoreAnsibleCollection/actions/runs/4477382452/jobs/7868844884 - test failed, need to be fixed.

File examples/attach_snapshot_disk_to_vm.yml - maybe we keep it in separate branch, because it has some comments inside. We cannot commit it (yet).

@anazobec anazobec force-pushed the disk-from-snapshot-to-vm branch from 553a193 to f83a706 Compare March 21, 2023 10:28
Copy link
Collaborator

@justinc1 justinc1 left a comment

Choose a reason for hiding this comment

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

I run integ test manually against 10.5.11.50, it passed.

@justinc1 justinc1 merged commit a168712 into main Mar 21, 2023
@justinc1 justinc1 deleted the disk-from-snapshot-to-vm branch March 21, 2023 14:23
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.

2 participants