Mailing List Archive

pipes not closing when using Python xenapi
My script is very simple:

#!/usr/bin/env python
import XenAPI

def main(session):
print session.xenapi.VM.get_all()

url = “http://example.com"
session = XenAPI.Session(url)
session.xenapi.login_with_password(‘foo’,’bar')
try:
main(session)
finally:
session.xenapi.session.logout()

——

It runs successfully, but every time it runs, it leaves open pipes.

This is before and after running it 10 times:

[root@id-324668 log]# lsof | grep ^xapi | grep pipe | wc -l
119
[root@id-324668 log]# lsof | grep ^xapi | grep pipe | wc -l
129

Logs show that sessions are successfully being created and destroyed, and a packet capture shows the rpc calls going through and being answered with OK 200s.

Thanks for your help.
_______________________________________________
Xen-api mailing list
Xen-api@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api