Hi Yiping,

See 
https://docs.vmware.com/en/VMware-vSphere/6.5/com.vmware.vsphere.vcenterhost.doc/GUID-EC0F7308-96AE-4089-9DD4-B42AF50AABDC.html

You should find a custom attribute to your virtual DC called something like 
"cloud.zone" which I believe you have to wipe before you can re-add it to a new 
CloudStack instance. If the above doesn't work you may have to drop to command 
line and do it with something like PowerCLI.

With regards to deploying a full zone this is part of what Trillian 
https://github.com/shapeblue/Trillian does in it's cloudstack-config role - but 
please be aware this role simply populates a "deployzone.sh" jinja template 
with the right options before running this as a normal bash script.

Regards,
Dag Sonstebo
Cloud Architect
ShapeBlue
 

On 22/05/2019, 06:31, "Yiping Zhang" <[email protected]> wrote:

    Hi, all:
    
    I am creating a new CloudStack 4.11.2.0 instance with VMware hypervisors.   
I have some general questions regarding such a set up:
    
    My first attempt had some errors, so I decided to blow away the CloudStack 
database and start from scratch again.  Now when I try to add VMware datacenter 
to the zone, I receive an error message saying that: “Failed to add VMware DC 
to zone due to : This DC is being managed by other CloudStack deployment. 
Cannot add this DC to zone”
    
    This sounds like my last try has left something on the datacenter in 
vCenter so that I can’t associate it to another zone any more. If this is true, 
do I have to blow away the datacenter in vCenter as well to start over again? 
Is there any way to clean up on the vCenter side without rebuilding the 
datacenter?  In hindsight, I should have deleted all CloudStack objects from 
web GUI instead of taking the nuclear option of blowing away the database!
    
    A related question,  has anyone used CloudStack ansible module to deploy a 
complete zone (including all necessary objects zone/pod/physical 
networks/cluster/host/primary_storage/secondary_storage etc)?  If so, would you 
mind sharing your ansible playbook(s)?
    
    Thanks,
    
    Yiping
    


[email protected] 
www.shapeblue.com
Amadeus House, Floral Street, London  WC2E 9DPUK
@shapeblue
  
 

Reply via email to