mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
We hit these excptions whenever a management server held session that was with the old 5.1 vCenter server is used to make resource calls to the new 5.5 vCenter. Validate a vCenter session context before it is being used to make a resource call. And if the context is invalid then discard the context and retrieve a new one. During the invalidation of an old context handle the context disconnect better by catching the appropriate exception and returning a newly created context. Conflicts: plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareContextFactory.java plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java plugins/hypervisors/vmware/src/com/cloud/storage/resource/VmwareSecondaryStorageResourceHandler.java vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContext.java