-
Notifications
You must be signed in to change notification settings - Fork 5.6k
VMware vCenter proxy + storage policies states & dependencies #43674
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
Conversation
|
@alexbleotu, thanks for your PR! By analyzing the history of the files in this pull request, we identified @rallytime, @cro and @s0undt3ch to be potential reviewers. |
|
The state functions use some shared methods in #43645 so that needs to be merged in first |
|
@alexbleotu I got #43645 in but there are some merge conflicts now. Could you please resolve them? Thanks. |
9c10528 to
62f3151
Compare
|
@cachedout rebased and added the pyVmomi incompatibility check. Also #43604 LE: Some tests are fixed in #43604. They will fail here until the other branch is merged. |
…VMware object into a dict representation
…representations of storage policies, filtered by name
…hat lists the dict representation of the policy assigned by default to a datastore
…d other execution modules
…gures the default storage policy
…configures storage policies
…ges default storage policies to datastore assigments
… reference to Python 2.6
9acd2e6 to
4ff745d
Compare
rallytime
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very well done!
|
Can we get this merged in? I really need to get both this PR and #43751 (afterwards please) merged in today or tomorrow. Thanks! |
|
re-run py3 |
salt/utils/vmware.py
Outdated
| @@ -1,5 +1,7 @@ | |||
| # -*- coding: utf-8 -*- | |||
| ''' | |||
| import sys | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import is in the comment block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
salt/utils/vmware.py
Outdated
| # -*- coding: utf-8 -*- | ||
| ''' | ||
| import sys | ||
| import ssl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import is in the comment block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my bad will take them out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
@cachedout all done. Is the GPG required now? |
|
@alexbleotu We're going to be encouraging contributors to sign their commits, but you don't need to do so retroactively. |
What does this PR do?
Added a vCenter specific proxy and the functions required to configure storage policies (previously known as storage profiles) on the vCenter. This requires to connect to a different endpoint called
/pbmwhich names the state and utils modules. The execution function isvsphereExamples of the input expected to configure a storage policy can be found in the sysdoc of
salt.states.pbm.List of functions:
Proxy:
vcenterproxyvspheremodule have been adjusted to support the new proxyUtils functions
Execution functions:
States functions:
Tests written?
Yes (for utils functions)
Please review Salt's Contributing Guide for best practices.