-
Notifications
You must be signed in to change notification settings - Fork 336
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
Some advanced system settings are missing and non-configurable with the module #2105
Comments
Please give an example of an error. |
Thanks for looking into this. Here you go: ansible-playbook manage-esxi-config.yml --ask-vault-pass -i esxi-host, -t setVault password: PLAY [all] ************************************ TASK [set esxi configuration] ****************************************************************************************************************************************** PLAY RECAP ************************************************************************************************************************************************************* cat manage-esxi-config.yml
|
Run your playbook with |
The module doesn't have a list of supported advanced settings, it tries to find out what advanced settings are supported: community.vmware/plugins/modules/vmware_host_config_manager.py Lines 105 to 141 in f985412
I'm not sure if we have a bug in the module or if there's a bug in the vSphere API (that is not specifying I'm afraid I don't have to test with with 8.0 U2 at the moment :-/ |
This is weird. Maybe a bug in the vSphere API? |
My understanding is that this might be a "hidden" option. Hidden options don't show up when listed, but can still be manipulated when targeted. |
I don't think it's a good idea to support any "hidden" options, sounds like an accident waiting to happen. 1) The name might change anytime and 2) we can't find out the type (integer, boolean, string...) automatically. Do you have a support contract with |
I am trying to replicate this issue with pvmomi. Will update once I have some clarification. |
pyvmomi works fine for me. The key is that when querying the advanced setting, you'll need to target that particular setting, instead of getting a list and iterate through. That is, instead of using use Here is a sample code to demo this:
|
and a sample execution:
|
SUMMARY
Some advanced system settings are missing from the VMware host configure manager ansible module. For example, when I try to set the value of "/VSAN/IgnoreClusterMemberListUpdates" with this ansible task, I get a fatal error saying "Unsupported option VSAN.IgnoreClusterMemberListUpdates"
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
~] vmware -lv
VMware ESXi 8.0.2 build-22380479
Here is to show the settings is there and can be set:
] esxcli system settings advanced set -o /VSAN/IgnoreClusterMemberListUpdates -i 1] esxcli system settings advanced list -o /VSAN/IgnoreClusterMemberListUpdates:
Path: /VSAN/IgnoreClusterMemberListUpdates
Type: integer
Int Value: 1
Default Int Value: 0
Min Value: 0
Max Value: 1
String Value:
Default String Value:
Valid Characters:
Description: Host will ignore cluster membership list updates
Host Specific: false
Impact: none
~] esxcli system settings advanced set -o /VSAN/IgnoreClusterMemberListUpdates -i 0
~]
STEPS TO REPRODUCE
See the ansible code above.
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: