-
Notifications
You must be signed in to change notification settings - Fork 5.6k
ESXi diskgroup and host cache creation/configuration + dependencies #43751
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
salt/utils/vmware.py
Outdated
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.
I'm not sure I'm all that thrilled to have this sort of destructive behavior even available in Salt. Is this a "just because we can" function or is there a strong use case for this? At the very least, I would like to make sure that the defaults here do as little damage as possible.
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.
It is more because I would like everything to be done in salt, making the bulky vsphere client obsolete. This is not included in the state, so I consider it a manual process. Furthermore, one has to invoke salt <host_id> vsphere.erase_disk_partitions <disk_id>. I am not sure how to make it more specific than that - it assumes the user knows exactly the disk_id he/she needs and can't run it on more hosts by mistake because the ids are unique.
This command is very useful if someone has rebuilt the host and has stale partitions on the disks. I agree it is a destructive command, but an advanced user should have it available in salt.
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.
That is a reasonable point. Thanks, @alexbleotu
…les.vsphere._get_proxy_target
…st cache state functions
…i import as some functions do not use pyVmomi
a699a63 to
90a174c
Compare
|
Rebased LE: pylint job needs a rerun |
|
re-run lint |
|
All tests & pylint pass |
What does this PR do?
This PR adds the ability to:
diskgroup_configuredstate or via execution functions.diskgroup_configuredstate)Proxy functions:
proxyconfig keyUtils functions:
Execution functions:
State functions:
Tests written?
No (will add unit tests in the next PRs - I wanted to get the main code merged in)
Please review Salt's Contributing Guide for best practices.