<div dir="ltr"><div>Hi All,</div><div><br></div><div>At the core of nova-api, I am trying to trace the function which executes the SQL query for listing</div><div>all the instances for a user. I want to  know where in the code this query is executed. I have traced it till this point in the code:</div><div><br></div><div>----</div><div><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container gmail-js-code-nav-container gmail-js-tagsearch-file"><tbody><tr><td id="gmail-LC387" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line">        <span class="gmail-pl-k">if</span> <span class="gmail-pl-s1">self</span>.<span class="gmail-pl-s1">cells</span>:</td>
        </tr>
        <tr>
          </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container gmail-js-code-nav-container gmail-js-tagsearch-file"><tbody><tr><td id="gmail-LC388" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line">            <span class="gmail-pl-s1">results</span> <span class="gmail-pl-c1">=</span> <span class="gmail-pl-s1">context</span>.<span class="gmail-pl-en"><span class="gmail-pl-token">scatter_gather_cells</span></span>(<span class="gmail-pl-s1">ctx</span>, <span class="gmail-pl-s1">self</span>.<span class="gmail-pl-s1">cells</span>,</td>
        </tr>
        <tr>
          </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container gmail-js-code-nav-container gmail-js-tagsearch-file"><tbody><tr><td id="gmail-LC389" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line">                                                   <span class="gmail-pl-s1">context</span>.<span class="gmail-pl-v">CELL_TIMEOUT</span>,</td>
        </tr>
        <tr>
          </tr></tbody></table>                                                   <span class="gmail-pl-s1">query_wrapper</span>, <span class="gmail-pl-s1">do_query</span>)</div><div>---   <br></div><div><br></div><div>in the file "<a href="https://github.com/openstack/nova/blob/c97507dfcd57cce9d76670d3b0d48538900c00e9/nova/compute/multi_cell_list.py#L218">https://github.com/openstack/nova/blob/c97507dfcd57cce9d76670d3b0d48538900c00e9/nova/compute/multi_cell_list.py#L218</a>"</div><div><br></div><div>But where in the above file, is the SQL query executed ?  Please help me</div><div><br></div><div><br></div><div>Thanks</div><div>Kumar<br></div></div>