Seeing these failures below in maas logs:
From regiond.log:
====================================================================
pen files. (While requesting RPC info at http://10.245.0.10/MAAS/rpc/).
2015-06-04 10:06:25+0000 [-] Unhandled Error
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 423, in errback
self._startRunCallbacks(fail)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 490, in _startRunCallbacks
self._runCallbacks()
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 577, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1155, in gotResult
_inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1097, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/python2.7/dist-packages/provisioningserver/pserv_services/lease_upload_service.py", line 113, in _get_client_and_start_upload
yield self._start_upload(client)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1097, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/python2.7/dist-packages/provisioningserver/pserv_services/lease_upload_service.py", line 118, in _start_upload
updated_lease_info = yield deferToThread(check_lease_changes)
File "/usr/lib/python2.7/dist-packages/twisted/python/threadpool.py", line 191, in _worker
result = context.call(ctx, function, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/usr/lib/python2.7/dist-packages/provisioningserver/dhcp/leases.py", line 118, in check_lease_changes
with objectfork() as (pid, recv, send):
File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/usr/lib/python2.7/dist-packages/provisioningserver/utils/shell.py", line 307, in objectfork
with pipefork() as (pid, fin, fout):
File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/usr/lib/python2.7/dist-packages/provisioningserver/utils/shell.py", line 207, in pipefork
crashfile = TemporaryFile()
File "/usr/lib/python2.7/tempfile.py", line 493, in TemporaryFile
(fd, name) = _mkstemp_inner(dir, prefix, suffix, flags)
File "/usr/lib/python2.7/tempfile.py", line 239, in _mkstemp_inner
fd = _os.open(file, flags, 0600)
exceptions.OSError: [Errno 24] Too many open files: '/tmp/tmpfXJQAl'
2015-06-04 10:06:27+0000 [-] Region not available: Couldn't bind: 24: Too many open files. (While requesting RPC info at http://10.245.0.10/MAAS/rpc/).
2015-06-04 10:06:29+0000 [-] Region not available: Couldn't bind: 24: Too man
====================================================================
From maas.log:
====================================================================
Jun 4 09:42:25 maas-trusty-back-may22 maas.power: [ERROR] marmon.local: Failed to refresh power state: [Errno 24] Too many open files: u'/etc/maas/templates/power/ipmi.template'
Jun 4 09:42:25 maas-trusty-back-may22 maas.power: [ERROR] hayward-29: Failed to refresh power state: [Errno 24] Too many open files: u'/etc/maas/templates/power/sm15k.template'
Jun 4 09:42:25 maas-trusty-back-may22 maas.power: [ERROR] hayward-37: Failed to refresh power state: [Errno 24] Too many open files: u'/etc/maas/templates/power/sm15k.template'
Jun 4 09:42:25 maas-trusty-back-may22 maas.power: [ERROR] huffman-vm-06: Failed to refresh power state: [Errno 24] Too many open files: u'/etc/maas/templates/power/virsh.template'
Jun 4 09:42:25 maas-trusty-back-may22 maas.power: [ERROR] elgin.local: Failed to refresh power state: [Errno 24] Too many open files: u'/etc/maas/templates/power/ipmi.template'
Jun 4 09:42:25 maas-trusty-back-may22 maas.power: [ERROR] kobusch.local: Failed to refresh power state: [Errno 24] Too many open files: u'/etc/maas/templates/power/ipmi.template'
Jun 4 09:42:25 maas-trusty-back-may22 maas.power: [ERROR] gytrash.local: Failed to refresh power state: [Errno 24] Too many open files: u'/etc/maas/templates/power/ipmi.template'
Jun 4 09:42:25 maas-trusty-back-may22 maas.power: [ERROR] hayward-35: Failed to refresh power state: [Errno 24] Too many open files: u'/etc/maas/templates/power/sm15k.template'
Jun 4 09:43:25 maas-trusty-back-may22 maas.service_monitor: [ERROR] While monitoring service 'maas-dhcpd' an error was encountered: [Errno 24] Too many open
...
Jun 4 09:52:25 maas-trusty-back-may22 maas.power: [ERROR] hayward-35: Failed to refresh power state: [Errno 24] Too many open files: u'/etc/maas/templates/power/sm15k.template'
Jun 4 09:53:25 maas-trusty-back-may22 maas.service_monitor: [ERROR] While monitoring service 'maas-dhcpd' an error was encountered: [Errno 24] Too many open files
Jun 4 09:53:25 maas-trusty-back-may22 maas.service_monitor: [ERROR] While monitoring service 'maas-dhcpd6' an error was encountered: [Errno 24] Too many open files
Jun 4 09:53:25 maas-trusty-back-may22 maas.lease_upload_service: [ERROR] Failed to upload leases: [Errno 24] Too many open files: '/tmp/tmpkcxlFa'
Jun 4 09:53:25 maas-trusty-back-may22 maas.service_monitor: [ERROR] While monitoring service 'tgt' an error was encountered: [Errno 24] Too many open files
Jun 4 09:54:25 maas-trusty-back-may22 maas.lease_upload_service: [ERROR] Failed to upload leases: [Errno 24] Too many open files: '/tmp/tmp1c6i7Z'
Jun 4 09:55:25 maas-trusty-back-may22 maas.service_monitor: [ERROR] While monitoring service 'maas-dhcpd' an error was encountered: [Errno 24] Too many open files
Jun 4 09:55:25 maas-trusty-back-may22 maas.service_monitor: [ERROR] While monitoring service 'maas-dhcpd6' an error was encountered: [Errno 24] Too many open files
Jun 4 09:55:25 maas-trusty-back-may22 maas.service_monitor: [ERROR] While monitoring service 'tgt' an error was encountered: [Errno 24] Too many open files
Jun 4 09:55:25 maas-trusty-back-may22 maas.lease_upload_service: [ERROR] Failed to upload leases: [Errno 24] Too many open files: '/tmp/tmpitR9pp'
====================================================================
Releasing is failing and we're seeing from build console:
====================================================================
2015-06-04 09:28:44,625 [INFO] oil_ci.juju.client: Boostrapping new environment
Bootstrapping environment "ci-oil-slave1"
Starting new instance for initial state server
Launching instance
WARNING no architecture was specified, acquiring an arbitrary node
WARNING no architecture was specified, acquiring an arbitrary node
WARNING no architecture was specified, acquiring an arbitrary node
WARNING no architecture was specified, acquiring an arbitrary node
Bootstrap failed, destroying environment
ERROR failed to bootstrap environment: cannot start bootstrap instance: gomaasapi: got error back from server: 400 BAD REQUEST ({"distro_series": ["'trusty' is not a valid distro_series. It should be one of: ''."]})
2015-06-04 09:29:11,727 [ERROR] oil_ci.juju.client: Calling "juju bootstrap" failed!
2015-06-04 09:29:11,727 [ERROR] oil_ci.cli: Deployment failed:
+ rc=1
+ echo 'Deployment returned: 1'
Deployment returned: 1
+ [[ 1 == 0 ]]
====================================================================
From lsof:
====================================================================
ubuntu@maas-trusty-back-may22:~$ sudo lsof|wc -l
111033
ubuntu@maas-trusty-back-may22:~$ lsof|wc -l
4873
====================================================================
Logs attached.
output of sudo lsof