GitHub user borisroman opened a pull request:
https://github.com/apache/cloudstack/pull/845
[4.6][BLOCKER]CLOUDSTACK-8763: Resolved POD/ZONE deletion failure.
Instead of having both checkIfPodIsDeletable() and checkIfZoneIsDeletable
have there own SQL query, I've refactored them so they use DAO SQL Queries.
This resolves the SQL Exception thrown by both classes.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/borisroman/cloudstack CLOUDSTACK-8763
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cloudstack/pull/845.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #845
----
commit 0648cb98042eba19eb581c9d7f5b4d0c69ccd4e1
Author: Boris Schrijver <[email protected]>
Date: 2015-09-16T20:13:10Z
Added findByPodId(Long podId) to HostDao and HostDaoImpl.
commit 45861fa1b7e82250f404e22dd13ef4925c60da4e
Author: Boris Schrijver <[email protected]>
Date: 2015-09-16T20:14:05Z
Refactored checkIfPodIsDeletable().
It now makes use of various DAO DB function instead of running a self build
query.
commit 473f1937e2c13bc7cca0b42c7585fe16accf7415
Author: Boris Schrijver <[email protected]>
Date: 2015-09-16T20:15:00Z
Added countIPs(long dcId, boolean onlyCountAllocated) to
DataCenterIpAddressDao and DataCenterIpAddressDaoImpl.
commit 12fc2b4c26145721622b34f1a4f40d4e06faea93
Author: Boris Schrijver <[email protected]>
Date: 2015-09-16T20:15:53Z
Added countIPs(long dcId, boolean onlyCountAllocated) to IPAddressDao and
IPAddressDaoImpl.
commit 0df3357cac73a2191cf4e01d5ef8db48a0bcbc64
Author: Boris Schrijver <[email protected]>
Date: 2015-09-16T20:17:27Z
Added findByDc(long dcId) to VolumeDao and VolumeDaoImpl.
commit b31e64d49df4f9cf1e16179354bf7916f19b0b3b
Author: Boris Schrijver <[email protected]>
Date: 2015-09-16T20:19:14Z
Refactored checkIfZoneIsDeletable().
It now makes use of various DAO DB function instead of running a self build
query.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---