[
https://issues.apache.org/jira/browse/CLOUDSTACK-8820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14743187#comment-14743187
]
ASF GitHub Bot commented on CLOUDSTACK-8820:
--------------------------------------------
Github user sureshanaparti commented on a diff in the pull request:
https://github.com/apache/cloudstack/pull/806#discussion_r39372846
--- Diff:
vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareClient.java ---
@@ -152,13 +152,26 @@ public void connect(String url, String userName,
String password) throws Excepti
@SuppressWarnings("unchecked")
Map<String, List<String>> headers = (Map<String,
List<String>>)((BindingProvider)vimPort).getResponseContext().get(MessageContext.HTTP_RESPONSE_HEADERS);
List<String> cookies = headers.get("Set-cookie");
+
+ vimPort.login(serviceContent.getSessionManager(), userName,
password, null);
+
+ if (cookies == null) {
+ @SuppressWarnings("unchecked")
--- End diff --
to suppress the warnings for the unchecked cast from Object to
Map<String,List<String>> on extracting the http response headers from the
response context. This is also set on vmware sample programs.
> Showing error when try to add advance zone using VMWare ESXi 6.0 host
> ---------------------------------------------------------------------
>
> Key: CLOUDSTACK-8820
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8820
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: VMware
> Affects Versions: 4.6.0
> Reporter: shweta agarwal
> Assignee: Suresh Kumar Anaparti
> Priority: Critical
>
> Steps to reproduce:
> 1.Installed VMWare Server 6.0
> 2.Installed VMware Vsphere Client 6.0
> 3.Prepared vmware host using VMware-VMvisor-Installer-6.0.0-2494585.x86_64.iso
> 4.Added vmware host to VMware Vsphere Client 6.0.
> 5.Prepared latest CS setup
> 6. Try creating a vmware zone using a vmware 6.0 host
> Actual behavior:
> Showing error 'Failed to add VMware DC to zone due to : null' when try to add
> advance zone using VMWare ESXi 6.0 host.
> Expected behavior:
> Add advance zone operation should be successful.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)