<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10pt" ><div dir="ltr" >Hi, all</div>
<div dir="ltr" > </div>
<div dir="ltr" >I have a question about the value of bdm.volume_size.</div>
<div dir="ltr" > </div>
<div dir="ltr" >Here[1] I have seen that nova-api uses the volume's size as bdm.volume_size. But, if I have specified a volume_size in bdm, the way[1] will override the volume's size. </div>
<div dir="ltr" > </div>
<div dir="ltr" >Here[2], in snapshot scenario, if there is a volume_size in bdm, it will use bdm's volume_size first and secondly use the volume's size.</div>
<div dir="ltr" > </div>
<div dir="ltr" >Why the behaviors are different between the snapshot scenario and the volume scenario? </div>
<div dir="ltr" > </div>
<div dir="ltr" >Could anyone give me some advice?</div>
<div dir="ltr" > </div>
<div dir="ltr" >Thanks</div>
<div dir="ltr" >Zhi Chang</div>
<div dir="ltr" > </div>
<div dir="ltr" > </div>
<div dir="ltr" >[1].  <a href="https://github.com/openstack/nova/blob/master/nova/compute/api.py#L1754" >https://github.com/openstack/nova/blob/master/nova/compute/api.py#L1754</a></div>
<div dir="ltr" >[2].  <a href="https://github.com/openstack/nova/blob/master/nova/compute/api.py#L1768" >https://github.com/openstack/nova/blob/master/nova/compute/api.py#L1768</a></div></div><BR>