Sateesh Chodapuneedi created CLOUDSTACK-3460:
------------------------------------------------

             Summary: [UI][Vmware] In AddCluster dialog, f optional fields are 
not filled seeing error "Your host and/or path is wrong. Make sure it's of the 
format http://hostname/path";
                 Key: CLOUDSTACK-3460
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3460
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: UI
    Affects Versions: 4.2.0
            Reporter: Sateesh Chodapuneedi
             Fix For: 4.2.0


In AddCluster dialog box, if user doesn't fill the optional fields "vCenter 
host" & "vCenter datacenter" then addCluster operation fails & we get a popup 
with following message "Your host and/or path is wrong. Make sure it's of the 
format http://hostname/path";
Observed the url sent to server from UI. The problem is with parameter "url"
The parameter is looking below,
url=http:////cluster_name
It should have been as follows,
url=http://vCenter_host/datacenter_name/cluster_name.

So vCenter_host & datacenter_name are missing from url. These 2 values could be 
retrieved from database given a zoneId using listVmwareDcs API call. Because a 
VMware DC is already associated with that zone, if the details (vCenter host & 
vCenter datacenter) are not provided by user, we have to retrieve from 
backend/database and construct the url.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to