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

Extra features setup json #73

Merged
merged 3 commits into from
Feb 6, 2018
Merged

Conversation

jeroenmaelbrancke
Copy link
Contributor

  • mds_safety
  • volumedriver config

import json

try:
from ovs.extensions.services.service import ServiceManager
Copy link
Contributor

Choose a reason for hiding this comment

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

The current master branch points towards FWK 2.11
No need to have this try-except stuff

setup/vpool.py Outdated

# Settings volumedriver
storagedriver_config = {}
if vpool_details.get('storagedriver').get('volume_manager') is not None:
Copy link
Contributor

Choose a reason for hiding this comment

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

If storagedriver would be filled in, I'd opt to validate the possible options (see how we validate the call params)
So something like:
storagedriver_config = vpool_details.get('storagedriver')
if storagedriver_config (not None or empty dict) -> validate this item before proceeding

@jeroenmaelbrancke
Copy link
Contributor Author

@JeffreyDevloo can review my changes?

@jeroenmaelbrancke jeroenmaelbrancke merged commit 0f6561f into master Feb 6, 2018
@jeroenmaelbrancke jeroenmaelbrancke deleted the extra_features_setup_json branch February 6, 2018 12:21
JeffreyDevloo pushed a commit that referenced this pull request Feb 7, 2018
Extra features setup json
(cherry picked from commit 0f6561f)

# Conflicts:
#	helpers/storagedriver.py
#	setup/vpool.py
JeffreyDevloo added a commit that referenced this pull request Feb 7, 2018
Merge pull request #73 from openvstorage/extra_features_setup_json
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