vmware / vmware/pyvmomi

Throws " 'NoneType' object has no attribute 'CreateUser' " while creating SSO user in vCenter.

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

Nobody has claimed this yet.

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

Description

Using [vim.Hostsystem] I retrieved content with ContainerView.

Contents of configManager are as follows:

(vim.host.ConfigManager) {
dynamicType = ,
dynamicProperty = (vmodl.DynamicProperty) [],
cpuScheduler = 'vim.host.CpuSchedulerSystem:cpuScheduler-10',
datastoreSystem = 'vim.host.DatastoreSystem:datastoreSystem-10',
memoryManager = 'vim.host.MemoryManagerSystem:memorySystem-10',
storageSystem = 'vim.host.StorageSystem:storageSystem-10',
networkSystem = 'vim.host.NetworkSystem:networkSystem-10',
vmotionSystem = 'vim.host.VMotionSystem:vmotionSystem-10',
virtualNicManager = 'vim.host.VirtualNicManager:virtualNicManager-10',
serviceSystem = 'vim.host.ServiceSystem:serviceSystem-10',
firewallSystem = 'vim.host.FirewallSystem:firewallSystem-10',
advancedOption = 'vim.option.OptionManager:EsxHostAdvSettings-10',
diagnosticSystem = 'vim.host.DiagnosticSystem:diagnosticSystem-10',
autoStartManager = 'vim.host.AutoStartManager:autoStartManager-10',
snmpSystem = 'vim.host.SnmpSystem:snmpSystem-10',
dateTimeSystem = 'vim.host.DateTimeSystem:dateTimeSystem-10',
patchManager = 'vim.host.PatchManager:patchManager-10',
hostUpdateProxyManager = ,
imageConfigManager = ,
bootDeviceSystem = ,
firmwareSystem = 'vim.host.FirmwareSystem:firmwareSystem-10',
healthStatusSystem = 'vim.host.HealthStatusSystem:healthStatusSystem-10',
pciPassthruSystem = 'vim.host.PciPassthruSystem:pciPassthruSystem-10',
licenseManager = ,
kernelModuleSystem = 'vim.host.KernelModuleSystem:kernelModuleSystem-10',
authenticationManager = 'vim.host.AuthenticationManager:authenticationManager-10',
powerSystem = 'vim.host.PowerSystem:powerSystem-10',
cacheConfigurationManager = ,
esxAgentHostManager = ,
iscsiManager = ,
vFlashManager = ,
vsanSystem = ,
messageBusProxy = ,
userDirectory = ,
accountManager = ,
hostAccessManager = ,
graphicsManager = ,
vsanInternalSystem = ,
certificateManager = ,
cryptoManager = ,

accountManager is unset. Why it's unset? Cannot find a way to set it.

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 by reproducing SSO user creation with the vim.HostSystem object and inspect the reported configManager.accountManager value. Determine whether the vCenter API exposes a supported way to obtain or set accountManager, and document the behavior or required correction when the property is unset.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.