Re: [openstack-dev] [nova]resize

2014-07-25 Thread Li Tianqing
: [openstack-dev] [nova]resize No. before L5156, we convert it from qcow2 to qcow2, in which it strips backing file. I think here, we should wirte like this: if info['type'] == 'qcow2' and info['backing_file']: if shared_storage: utils.execute('cp', from_path, img_path

Re: [openstack-dev] [nova]resize

2014-07-25 Thread Jesse Pretorius
On 24 July 2014 20:38, Vishvananda Ishaya vishvana...@gmail.com wrote: The resize code as written originally did the simplest possible thing. It converts and copies the whole file so that it doesn’t have to figure out how to sync backing files etc. This could definitely be improved,

Re: [openstack-dev] [nova]resize

2014-07-25 Thread Li Tianqing
But right now, we trigged resize by flavor changed. Do you mean we can split the resize by cpu, by memory, or by disk? 在 2014-07-25 03:25:46,Jesse Pretorius jesse.pretor...@gmail.com 写道: On 24 July 2014 20:38, Vishvananda Ishaya vishvana...@gmail.com wrote: The resize code as written

Re: [openstack-dev] [nova]resize

2014-07-25 Thread Jesse Pretorius
On 25 July 2014 09:50, Li Tianqing jaze...@163.com wrote: But right now, we trigged resize by flavor changed. Do you mean we can split the resize by cpu, by memory, or by disk? No, what I mean is that if the source and target flavor have the same root and ethereal disk size, then check if the

[openstack-dev] [nova]resize

2014-07-24 Thread fdsafdsafd
In resize, we convert the disk and drop peel backing file, should we judge whether we are in shared_storage? If we are in shared storage, for example, nfs, then we can use the image in _base to be the backing file. And the time cost to resize will be faster. The processing in line 5132

Re: [openstack-dev] [nova]resize

2014-07-24 Thread Tian, Shuangtai
whether we already use like that ? https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py#L5156 From: fdsafdsafd [mailto:jaze...@163.com] Sent: Thursday, July 24, 2014 4:30 PM To: openstack-dev@lists.openstack.org Subject: [openstack-dev] [nova]resize In resize, we convert

Re: [openstack-dev] [nova]resize

2014-07-24 Thread fdsafdsafd
[mailto:jaze...@163.com] Sent: Thursday, July 24, 2014 4:30 PM To: openstack-dev@lists.openstack.org Subject: [openstack-dev] [nova]resize   In resize, we convert the disk and drop peel backing file, should we judge whether we are in shared_storage? If we are in shared storage, for example

Re: [openstack-dev] [nova]resize

2014-07-24 Thread Vishvananda Ishaya
/blob/master/nova/virt/libvirt/driver.py#L5156 From: fdsafdsafd [mailto:jaze...@163.com] Sent: Thursday, July 24, 2014 4:30 PM To: openstack-dev@lists.openstack.org Subject: [openstack-dev] [nova]resize In resize, we convert the disk and drop peel backing file, should

Re: [openstack-dev] [nova]resize

2014-07-24 Thread Tian, Shuangtai
Agree with you now -Original Message- From: fdsafdsafd [mailto:jaze...@163.com] Sent: Thursday, July 24, 2014 5:26 PM To: OpenStack Development Mailing List (not for usage questions) Subject: Re: [openstack-dev] [nova]resize No. before L5156, we convert it from qcow2 to qcow2, in which