[
https://issues.apache.org/jira/browse/CLOUDSTACK-5098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jessica Wang reassigned CLOUDSTACK-5098:
----------------------------------------
Assignee: Sateesh Chodapuneedi (was: Jessica Wang)
Sateesh,
The criterion UI uses to determine whether to show "Add VMware dataceter" or
"Hide VMware datacenter" is
whether the zone object in listZones response includes "vmwaredcId" property or
not.
e.g.
http://10.215.3.26:8080/client/api?command=listZones&response=json&sessionkey=USnAxE7FR5e%2FrZ0r6aFzjJLQKW8%3D&id=71d954ec-7a68-4c86-888c-1dae91a12870&_=1386012945298
{
"listzonesresponse": {
"count": 1,
"zone": [
{
"id": "71d954ec-7a68-4c86-888c-1dae91a12870",
"name": "jw-adv",
"dns1": "8.8.8.8",
"internaldns1": "10.223.110.254",
"guestcidraddress": "10.1.1.0/24",
"networktype": "Advanced",
"securitygroupsenabled": false,
"allocationstate": "Enabled",
"zonetoken": "51702263-cddf-3714-91d2-4eea2c80e64e",
"dhcpprovider": "VirtualRouter",
"localstorageenabled": false,
"tags": []
}
]
}
}
This zone object in listZones response doesn't include "vmwaredcId" property.
So, UI will show "Add VMware dataceter" button.
If a zone object in listZones response includes "vmwaredcId" property, UI will
show "Hide VMware dataceter" button instead.
Therefore, this is an API issue instead of UI issue.
As long as API correctly returns "vmwaredcId" property when zone is associated
with a VMware datacenter,
and correctly NOT returns "vmwaredcId" property when zone is NOT associated
with a VMware datacenter,
UI won't have any problem.
Jessica
> [UI] Zone view is showing "Add VMware Datacenter" button even though zone is
> already associated with a data center
> ------------------------------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-5098
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5098
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: API
> Affects Versions: 4.2.1
> Reporter: Sailaja Mada
> Assignee: Sateesh Chodapuneedi
> Priority: Critical
> Fix For: 4.3.0
>
> Attachments: apilog.log, management-server.log
>
>
> Steps:
> 1. Enable Nexus flag at the global level
> 2. Tried to configure the Adv zone with VMWARE hypervisor with out specifying
> Nexus vSwitch details while adding the cluster.
> With this Cluster addition failed . So i have cancelled the zone
> configuration.
> Now tried below steps:
> 1) Removed Pod and then tried to remove zone . It failed saying "The zone is
> not deletable because there are VMware datacenters associated with this zone.
> Remove VMware DC from this zone."
> 2) There is no Remove DC option , When i go to Zone details in the UI
> Observation:
> 1) Entries in vmware_data_center and vmware_data_center_zone_map are not
> cleaned up when there is a failure to add the cluster
> 2) So with this issue when i try to add the cluster , it is failing saying
> "This data center is already part of other Cloudstack Zone"
> So when there is a failure to add cluster for any reason , we should remove
> the addDC association in the DB aswell.
> I did delete the rows from vmware_data_center and vmware_data_center_zone_map
> , Then i was able to reuse the Datacenter
--
This message was sent by Atlassian JIRA
(v6.1#6144)