You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Session pools.vmware_policy.pool.SessionPool keeps up to VMWARE_MCP_POOL_SIZE (default 2) sessions per
target. Over a network transport each call holds its own session per target for its whole body; tools return
plain data, so nothing reads the session after the call. A call that already holds a session never waits for
another target — it gets a temporary extra session instead — so multi-target calls cannot deadlock; a call that
waits more than 300 s gets an error naming the target. Outside a call (CLI, stdio) one cached session per target,
as before, kept apart from the pooled ones so it is never handed to a call. Sessions are compared by identity: pyVmomi ServiceInstances all compare equal.
run_server(..., pooled=True). A skill whose connections come from a pool declares it; its calls on one
target then run side by side up to the pool size, and calls naming no target are no longer serialized. Skills
that do not declare it keep the 1.21.0 per-target gate.
vmware_policy.access.vsphere_access_info for each vSphere skill's get_access_info tool: the target's
account, what a tool needs (from the skill's requirements table) and whether the current session holds it on the
root folder. not_granted_at_root is not reported as no access; a failed lookup is undetermined, and a
summary with any undetermined tool says so rather than "granted". A table entry of None marks a tool decided by a permission
vSphere cannot report here (e.g. a Supervisor namespace role): always undetermined. If the target refuses the batch
(ESXi does not define vCenter-only privileges), each privilege is asked on its own, so only the ones it cannot
check become undetermined; if even System.View cannot be asked (a dead link), it stops there. Names that come from the platform (account, role, object) are sanitized; unknown_tool_message(tool, requirements) lets a skill refuse a misspelled tool name before it connects.
Every offloaded call now runs in a call scope. A returned iterator is drained inside it.
The per-skill config loader (mtime_cached_loader) checks and reloads under a lock, so concurrent first calls
load once and cannot store a stale value.