[1.8rc1] Too many open files, after upgrade to rc1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| MAAS |
Critical
|
Gavin Panella | ||
| simplestreams |
Medium
|
Unassigned |
Bug Description
When upgrading a MAAS 1.8 beta version against the RC, the following error has been seen in the logs.
un 2 06:29:07 maas maas.lease_
Jun 2 06:29:07 maas maas.service_
Jun 2 06:29:07 maas maas.service_
Jun 2 06:29:07 maas maas.service_
Jun 2 06:29:07 maas maas.dhcp.probe: [ERROR] Failed to probe sockets; did you configure authbind as per HACKING.txt?
Jun 2 06:29:08 maas maas.import-images: [INFO] Started importing boot images.
Jun 2 06:29:08 maas maas.boot_
Jun 2 06:29:08 maas maas.power: [ERROR] maas-1-
@
Related branches
- Blake Rouse (community): Approve on 2015-06-05
-
Diff: 47 lines (+23/-0)1 file modifiedsrc/provisioningserver/plugin.py (+23/-0)
Andres Rodriguez (andreserl) wrote : | #1 |
Andres Rodriguez (andreserl) wrote : | #2 |
Andres Rodriguez (andreserl) wrote : | #3 |
Andres Rodriguez (andreserl) wrote : | #4 |
Andres Rodriguez (andreserl) wrote : | #5 |
description: | updated |
Changed in maas: | |
milestone: | none → 1.8.0 |
importance: | Undecided → Critical |
status: | New → Triaged |
description: | updated |
Andres Rodriguez (andreserl) wrote : | #6 |
Andres Rodriguez (andreserl) wrote : | #7 |
Changed in maas: | |
status: | Triaged → In Progress |
assignee: | nobody → Gavin Panella (allenap) |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in simplestreams: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Scott Moser (smoser) wrote : | #8 |
I think this can be fixed without the monkey patching with:
--- src/maasserver/
+++ src/maasserver/
@@ -666,6 +666,7 @@
if len(buf) != self.read_size:
+ reader.close()
if not cksummer.check():
# Calculated sha256 hash from the data does not match, what
Scott Moser (smoser) wrote : | #9 |
I'd like to see some test / result.
I did verify that simplestreams 'insert_item' does not call reader.close() for you.
the thing that is strange is that this reader has an 'open()' but you don't have to (and don't) close it.
so its kind of odd to expect you to close it.
Perhaps it looks more conventional like this:
--- src/maasserver/
+++ src/maasserver/
@@ -660,12 +660,14 @@
# Write the contents into the database, while calculating the sha256
# hash for the read data.
with rfile.largefile
+ reader.open()
while True:
if len(buf) != self.read_size:
+ reader.close()
if not cksummer.check():
# Calculated sha256 hash from the data does not match, what
13:42 < sabdfl> i did the upgrade
13:42 < sabdfl> and noticed that it was saying it had no boot image source
13:42 < sabdfl> so i went to settings
13:42 < sabdfl> there was the same usual text there
13:42 < sabdfl> i just pressed save
13:42 < sabdfl> and then it had the usual map of releases / architectures on the images page
13:42 < sabdfl> and downloaded images just fine