GitHub user SudharmaJain opened a pull request: https://github.com/apache/cloudstack/pull/876
CLOUDSTACK-8865: Adding SR doesn't create Storage_pool_host_ref entry⦠⦠for disabled host This causes VM deployment failure on the host that was disabled while adding the storage repository. In the attachCluster function of the PrimaryDataStoreLifeCycle, we were only selecting hosts that are up and are in enabled state. Here if we select all up hosts, it will populate the DB properly and will fix this issue. Also added a unit test for attachCluster function. You can merge this pull request into a Git repository by running: $ git pull https://github.com/SudharmaJain/cloudstack cs-8865 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cloudstack/pull/876.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 #876 ---- commit 00d921e3c81d2e34dce64a9c70c720c76bb8073f Author: SudharmaJain <sudharma.j...@citrix.com> Date: 2015-09-23T05:49:24Z CLOUDSTACK-8865: Adding SR doesn't create Storage_pool_host_ref entry for disabled host ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---