CLOUDSTACK-747: internalLb in VPC - UI - create tier dialog - only one tier is allowed to have PublicLb in a VPC.
CLOUDSTACK-2486: Deleting the host_details and inserting them back can lead to mysql deadlock

- Instead of using separate delete and insert, we will use ON DUPLICATE KEY UPDATE to avoid the MySQL deadlock
CLOUDSTACK-2486: Deleting the host_details and inserting them back can lead to mysql deadlock

- Added the index found missing after upgrade

Contained in branches: master
Contained in no tag