vmware / vmware/pyvmomi

While updating an existing LACP config on a dvswitch , eg increasing number of lacp uplinks; pyvmomi returns ''A general system error occurred: Not initialized''

Open
#587 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs verification
Dominant language
Python
Stars
2.3k
Forks
763
PR merge metrics
No merged PRs in 30d

Description

I have an existing LACP config on Dvswitch using 2 esxi hosts. In the original config I had the 2 lacp uplinks.Later, I create the following lacp group spec:
(vim.dvs.VmwareDistributedVirtualSwitch.LacpGroupSpec) {
dynamicType = ,
dynamicProperty = (vmodl.DynamicProperty) [],
lacpGroupConfig = (vim.dvs.VmwareDistributedVirtualSwitch.LacpGroupConfig) {
dynamicType = ,
dynamicProperty = (vmodl.DynamicProperty) [],
key = '517417729',
name = ,
mode = ,
uplinkNum = 3,
loadbalanceAlgorithm = ,
vlan = ,
ipfix = ,
uplinkName = (str) [],
uplinkPortKey = (str) []
},
operation = 'edit'

I use the following api call to commit my changes :
vim.dvs.VmwareDistributedVirtualSwitch.UpdateLacpGroupConfig(lacp_group_config)

I get the message:
vim.TaskInfo) {
dynamicType = ,
dynamicProperty = (vmodl.DynamicProperty) [],
key = 'task-14006',
task = 'vim.Task:task-14006',
description = ,
name = vim.dvs.VmwareDistributedVirtualSwitch.UpdateLacpGroupConfig,
descriptionId = 'dvs.VmwareDistributedVirtualSwitch.updateLacpGroupConfig',
entity = 'vim.dvs.VmwareDistributedVirtualSwitch:dvs-1906',
entityName = 'Test_DVS01',
locked = (vim.ManagedEntity) [],
state = 'error',
cancelled = false,
cancelable = false,
error = (vmodl.fault.SystemError) {
dynamicType = ,
dynamicProperty = (vmodl.DynamicProperty) [],
msg = 'A general system error occurred: Not initialized',
faultCause = ,
faultMessage = (vmodl.LocalizableMessage) [],
reason = 'Not initialized'
},
result = ,
progress = ,
reason = (vim.TaskReasonUser) {
dynamicType = ,
dynamicProperty = (vmodl.DynamicProperty) [],
userName = 'VSPHERE.LOCAL\Administrator'
},
queueTime = 2013-11-21T21:52:18.808619Z,
startTime = 2013-11-21T21:52:18.815232Z,
completeTime = 2013-11-21T21:52:18.851323Z,
eventChainId = 171216,
changeTag = ,
parentTaskKey = ,
rootTaskKey = ,
activationId =

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at vim.dvs.VmwareDistributedVirtualSwitch.UpdateLacpGroupConfig and review the Lと思acpGroupSpec shown in the report, especially the edit operation and uplinkNum change. Reproduce the update against an existing DVS configuration and compare the resulting task state; done means increasing the LACP uplink count no longer returns the reported 'Not initialized' system error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.