Re: [openstack-dev] [nova]resize

2014-07-25 Thread Jesse Pretorius
On 25 July 2014 09:50, Li Tianqing 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 current host

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" 写道: On 24 July 2014 20:38, Vishvananda Ishaya wrote: The resize code as written originally did the simplest possible thing. It conv

Re: [openstack-dev] [nova]resize

2014-07-25 Thread Jesse Pretorius
On 24 July 2014 20:38, Vishvananda Ishaya 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, especially > now that > the

Re: [openstack-dev] [nova]resize

2014-07-24 Thread Li Tianqing
utils.execute('qemu-img', 'convert', '-f', 'qcow2', > '-O', 'qcow2', from_path, tmp_path) > libvirt_utils.copy_image(tmp_path, img_path, host=dest) >utils.execute('rm

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

Re: [openstack-dev] [nova]resize

2014-07-24 Thread Vishvananda Ishaya
ng file > libvirt_utils.copy_image(from_path, img_path, host=dest) > > > > At 2014-07-24 05:02:39, "Tian, Shuangtai" wrote: > > > > > > > > > > > > whether we already use like that ? > > https://github.co

Re: [openstack-dev] [nova]resize

2014-07-24 Thread fdsafdsafd
gtai" wrote: 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] [no

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 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 https:/