[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-9696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15929485#comment-15929485
 ] 

ASF GitHub Bot commented on CLOUDSTACK-9696:
--------------------------------------------

Github user koushik-das commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1853#discussion_r106589966
  
    --- Diff: server/src/com/cloud/dc/dao/DedicatedResourceDaoImpl.java ---
    @@ -312,6 +317,65 @@ public DedicatedResourceVO findByHostId(Long hostId) {
         }
     
         @Override
    +    public List<DedicatedResourceVO> listAvailableResources(Long 
accountId, Long... domains) {
    --- End diff --
    
    @anshul1886 Check out SearchBuilder class, it has methods like or(), op(), 
cp() which can be used to construct the query. Also the same field can be used 
in multiple places, search for reference to or(), op() etc. elsewhere in the 
code and you will find how to use them. One such place is QueryManagerImpl.java


> Fail to deploy VM on dedicating clusters and hosts
> --------------------------------------------------
>
>                 Key: CLOUDSTACK-9696
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9696
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>            Reporter: Anshul Gangwar
>            Assignee: Anshul Gangwar
>
> IN the below scenario:
> cluster C1 is having 2 hosts, H1 and H2. 
> Root domain is having 2 sub domain, D1 and D2
> C1 is dedicated to Root and H1 and H2 are dedicated to D1 and D2 respectively
> D1 and D2 has users U1 and U2 respectively
> Login into U1 and deploy the VM
> router and VM deployment failed with the error: 
> com.cloud.exception.InsufficientServerCapacityException: Unable to create a 
> deployment



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to