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

Vmware migration test matrix #62

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

DaanHoogland
Copy link
Member

Description

internal as it is not even draft yet. but opening to be able to discuss and extend

todo

  • define input matrix
  • slim preparations
  • define validations
  • ...

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Screenshots (if appropriate):

How Has This Been Tested?

@borisstoyanov
Copy link
Member

@DaanHoogland is this in final state now? I wonder if we can pick this up now

@DaanHoogland
Copy link
Member Author

@borisstoyanov @vladimirpetrov this is a frame for the tests that can be used and has to be expanded to include all tests. It is a starting point not a finished product.

@DaanHoogland
Copy link
Member Author

@vladimirpetrov can you add comments and code ?

Comment on lines +20 to +21
from marvin.lib.base import ServiceOffering, Configurations, VirtualMachine, Account, Volume, DiskOffering, StoragePool, \
Role
Copy link
Member Author

Choose a reason for hiding this comment

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

I think there is a more need line for a multiline import in python (/me googling ...)

Suggested change
from marvin.lib.base import ServiceOffering, Configurations, VirtualMachine, Account, Volume, DiskOffering, StoragePool, \
Role
from marvin.lib.base import (ServiceOffering,
Configurations,
VirtualMachine,
Account,
Volume,
DiskOffering,
StoragePool,
Role)

print(">>> Current source datastore is the desired one - no need for setup")

# Migrate our volume to the target datastore
Copy link
Member Author

Choose a reason for hiding this comment

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

same here, please extract to a method

voldata = volume.list(self.apiclient, id=volume.id)

# Move our volume to the source datastore
Copy link
Member Author

Choose a reason for hiding this comment

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

having this comment indicates that we should have a method call here i.e. move_source_volume_to_source_datastore()
and then move the block below to a

    def move_source_volume_to_source_datastore(...)

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.

3 participants