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

Getting error when creating vsan esa #1091

Open
vsawant1608 opened this issue Aug 30, 2024 · 0 comments
Open

Getting error when creating vsan esa #1091

vsawant1608 opened this issue Aug 30, 2024 · 0 comments
Labels

Comments

@vsawant1608
Copy link

Describe the bug

Have below code

    vsan_spec = vim.VimVsanReconfigSpec(
                vsanClusterConfig=vim.VsanClusterConfigInfo(
                    defaultConfig=vim.VsanClusterConfigInfoHostDefaultInfo(
                    )
                ),
                dataEfficiencyConfig=vim.VsanDataEfficiencyConfig(
                    compressionEnabled=compress,
                    dedupEnabled=dedup
                ),
                modify=True
            )

It is throwing below error. Any help on from where that error message is originating would be helpful.

key = 'com.vmware.vsan.clusterconfigprecheck.reason.notsupportedconfigsforvsanesa',\n arg = (vmodl.KeyAnyValue) [\n (vmodl.KeyAnyValue) {\n dynamicType = <unset>,\n dynamicProperty = (vmodl.DynamicProperty) [],\n key = 'configs',\n value = '(vim.vsan.DataEfficiencyConfig) {\\n dedupEnabled = false,\\n compressionEnabled = true\\n}'\n }\n ],\n message = \"Configuration '(vim.vsan.DataEfficiencyConfig) {\\n dedupEnabled = false,\\n compressionEnabled = true\\n}' are not valid for vSAN ESA.\"\n }\n ]\n}\n"}

Reproduction steps

Have below code

    vsan_spec = vim.VimVsanReconfigSpec(
                vsanClusterConfig=vim.VsanClusterConfigInfo(
                    defaultConfig=vim.VsanClusterConfigInfoHostDefaultInfo(
                    )
                ),
                dataEfficiencyConfig=vim.VsanDataEfficiencyConfig(
                    compressionEnabled=compress,
                    dedupEnabled=dedup
                ),
                modify=True
            )

It is throwing below error. Any help on from where that error message is originating would be helpful.

key = 'com.vmware.vsan.clusterconfigprecheck.reason.notsupportedconfigsforvsanesa',\n arg = (vmodl.KeyAnyValue) [\n (vmodl.KeyAnyValue) {\n dynamicType = <unset>,\n dynamicProperty = (vmodl.DynamicProperty) [],\n key = 'configs',\n value = '(vim.vsan.DataEfficiencyConfig) {\\n dedupEnabled = false,\\n compressionEnabled = true\\n}'\n }\n ],\n message = \"Configuration '(vim.vsan.DataEfficiencyConfig) {\\n dedupEnabled = false,\\n compressionEnabled = true\\n}' are not valid for vSAN ESA.\"\n }\n ]\n}\n"}

Expected behavior

It should work

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant