Re: [openstack-dev] [Nova] nova-compute deadlock

2014-06-03 Thread Zhu Zhu
Hi Qin Zhao,

Thanks for raising this issue and analysis. According to the issue description 
and happen 
scenario(https://docs.google.com/drawings/d/1pItX9urLd6fmjws3BVovXQvRg_qMdTHS-0JhYfSkkVc/pub?w=960&h=720),
  if that's the case,  concurrent mutiple KVM spawn instances(with both config 
drive and data injection enabled) are triggered, the issue can be very likely 
to happen. 
As in libvirt/driver.py _create_image method, right after iso making 
"cdb.make_drive", the driver will attempt "data injection" which will call the 
libguestfs launch in another thread. 

Looks there were also a couple of libguestfs hang issues from Launch pad as 
below. . I am not sure if libguestfs itself can have certain mechanism to 
free/close the fds that inherited from parent process instead of require 
explicitly calling the tear down. Maybe open a defect to libguestfs to see what 
their thoughts? 

https://bugs.launchpad.net/nova/+bug/1286256
https://bugs.launchpad.net/nova/+bug/1270304 



Zhu Zhu
Best Regards
 
From: Qin Zhao
Date: 2014-05-31 01:25
To: OpenStack Development Mailing List (not for usage questions)
Subject: [openstack-dev] [Nova] nova-compute deadlock
Hi all,

When I run Icehouse code, I encountered a strange problem. The nova-compute 
service becomes stuck, when I boot instances. I report this bug in 
https://bugs.launchpad.net/nova/+bug/1313477.

After thinking several days, I feel I know its root cause. This bug should be a 
deadlock problem cause by pipe fd leaking.  I draw a diagram to illustrate this 
problem. 
https://docs.google.com/drawings/d/1pItX9urLd6fmjws3BVovXQvRg_qMdTHS-0JhYfSkkVc/pub?w=960&h=720

However, I have not find a very good solution to prevent this deadlock. This 
problem is related with Python runtime, libguestfs, and eventlet. The situation 
is a little complicated. Is there any expert who can help me to look for a 
solution? I will appreciate for your help!

-- 
Qin Zhao
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [Neutron][Vmware] Sync port groups from ESXi/VCenter into Neutron

2014-03-16 Thread Zhu Zhu
Hi Stackers,

Currently we are working on supporting import existing ESXi/distributed port 
groups into Neutron under Cluster level(which vmware nova driver managed 
level).  By doing it, nova could be able to deploy vm to multiple port groups 
without NSX plugin.  Now the called vmware agent is for the network sync from 
VC to neutron database.  And it will work under ML2 plugin. 

Anyone have thoughts about this approach? Appreciate for your comments. 

For detail, please refer to
https://blueprints.launchpad.net/neutron/+spec/vcenter-neutron-agent  




Best Regards
Zarric(Zhu Zhu)___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [Neutron][Vmware] Sync port groups from ESXi/VCenter into Neutron

2014-03-16 Thread Zhu Zhu
Hi Stackers,

Currently we are working on supporting import existing ESXi/distributed port 
groups into Neutron under Cluster level(which vmware nova driver managed 
level).  By doing it, nova could be able to deploy vm to multiple port groups 
without NSX plugin.  Now the called vmware agent is for the network sync from 
VC to neutron database.  And it will work under ML2 plugin. 

Anyone have thoughts about this approach? Appreciate for your comments. 
For detail, please refer to
https://blueprints.launchpad.net/neutron/+spec/vcenter-neutron-agent  
Best Regards
Zarric(Zhu Zhu)___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Nova][VMware] Deploy from vCenter template

2013-12-19 Thread Zhu Zhu
Hi Arnaud, 

It's really good to know that your team are proposing the vcenter driver with 
OVA+glance datastore backend support.  Thanks for sharing the information.  OVA 
would be a good choice which will benefit users by avoiding only use flat image 
limited from current driver. 

But in my opinion, it may not conflict with deploying from template. From an 
end user perpective, if there are already a set of templates within vcenter, 
it's good for him to have openstack to deploy VM from it directly.  He can 
touch an empty image in glance only with the metadata pointing to the template 
name.  And boot vm from it.  Also he can freely choose to  generate a *ova with 
vmdk stream file and placed in certain datastore and deploy from VM from image 
location pointing to the datastore.  These are two different usage scenarios 
per my understanding.  

And to go further, if there are some mechnism, that openstack can sync exsiting 
VM templates into Glance images.  It can make this function more useful. 




Best Regards
Zarric(Zhu Zhu)

From: Arnaud Legendre
Date: 2013-12-18 01:58
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] [Nova][VMware] Deploy from vCenter template
Hi Qui Xing,



We are planning to address the vCenter template issue by levering the OVF/OVA 
capabilities.
Kiran's implementation is tied to a specific VC and requires to add Glance 
properties that are not generic.
For existing templates, the workflow will be:
. generate an *.ova tarball (containing the *.ovf descriptor + *.vmdk 
stream-optimized) out of the template,
. register the *.ova as a Glance image location (using the VMware Glance driver 
see bp [1]) or simply upload the *.ova to another Glance store,
. The VMware driver in Nova will be able to consume the *.ova (either through 
the location or by downloading the content to the cache):  see bp [2]. However, 
for Icehouse, we are not planning to actually consume the *.ovf descriptor 
(work scheduled for the J/K release).


[1]  
https://blueprints.launchpad.net/glance/+spec/vmware-datastore-storage-backend
[2] https://blueprints.launchpad.net/nova/+spec/vmware-driver-ova-support 


If you have questions about [1], please send me an email. For [2], please reach 
vuil.




Thanks,
Arnaud





From: "Shawn Hartsock" 
To: "OpenStack Development Mailing List (not for usage questions)" 

Sent: Monday, December 16, 2013 9:37:34 AM
Subject: Re: [openstack-dev] [Nova][VMware] Deploy from vCenter template



IIRC someone who shows up at 
https://wiki.openstack.org/wiki/Meetings/VMwareAPI#Meetings is planning on 
working on that again for Icehouse-3 but there's some new debate on the best 
way to implement the desired effect. The goal of that change would be to avoid 
streaming the disk image out of vCenter for the purpose of then streaming the 
same image back into the same vCenter. That's really inefficient.


So there's a Nova level change that could happen (that's the patch you saw) and 
there's a Glance level change that could happen, and there's a combination of 
both approaches that could happen.


If you want to discuss it informally with the group that's looking into the 
problem I could probably make sure you end up talking to the right people on 
#openstack-vmware or if you pop into the weekly team meeting on IRC you could 
mention it during open discussion time.




On Mon, Dec 16, 2013 at 3:27 AM, Qing Xin Meng  wrote:

I saw a commit for Deploying from VMware vCenter template and found it's 
abandoned.
https://review.openstack.org/#/c/34903 

Anyone knows the plan to support the deployment from VMware vCenter template?


Thanks!



Best Regards

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev







-- 

# Shawn.Hartsock - twitter: @hartsock - plus.google.com/+ShawnHartsock 


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
https://urldefense.proofpoint.com/v1/url?u=http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=5wWaXo2oVaivfKLCMyU6Z9UTO8HOfeGCzbGHAT4gZpo%3D%0A&m=KCBtvBVSZCslDQrTvSEqBcTEcx%2FSKxtF0ZRIjtTFmSw%3D%0A&s=f45fbe293564be6a16c90b0125534e5e62f7505fea9f92708b72aa60e5e1dc5f___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev