Issue Details (XML | Word | Printable)

Key: ABICLOUD-237
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Jaume Devesa
Reporter: Xavier Fernandez
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
abicloud

I can't delete a DataCenter if exists VirtualDataCenters asigned on it

Created: 12/Oct/09 05:52 PM   Updated: 19/Oct/09 12:29 PM
Component/s: server
Affects Version/s: abiCloud-0.8.1
Fix Version/s: abicloud-1.0.0PR

Time Tracking:
Not Specified

Environment: Trunk version


 Description  « Hide
I can't delete a PhysicalDatacenter if exists not only virtual machines on it.

Abicloud has to add the condition of assure that there aren't vdc assigned on it

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jaume Devesa added a comment - 14/Oct/09 11:02 AM
I solved this bug by Database instead of by Java code.
That means I've made a Foreign Restrict Constraint between virtualdatacenter and datacenter tables.

I've catched the Exception when deleting the Datacenter and I create the .properties i18n message to show to the user that he cannot delete the physical datacenter if he has associated virtualdatacenters.