Bug 1142304

Summary: 'NoneType' object has no attribute 'closed'" in <bound method UnitWriter.__del__ of <pulp_node.manifest.UnitWriter object at 0x2f6c750>>
Product: [Retired] Pulp Reporter: Randy Barlow <rbarlow>
Component: nodesAssignee: Chris Duryee <cduryee>
Status: CLOSED UPSTREAM QA Contact: pulp-qe-list
Severity: medium Docs Contact:
Priority: medium    
Version: 2.4.0CC: cduryee, pthomas
Target Milestone: ---Keywords: Triaged
Target Release: 2.6.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-28 22:20:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Randy Barlow 2014-09-16 14:30:19 UTC
Description of problem:
The nodes unittests print lots of errors to the screen when run in Python 2.6. The errors are of the form "Exception AttributeError: "'NoneType' object has no attribute 'closed'" in <bound method UnitWriter.__del__ of <pulp_node.manifest.UnitWriter object at 0x2bc6950>> ignored".

Version-Release number of selected component (if applicable):
2.4.0-1

How reproducible:
Every time

Steps to Reproduce:
1. nosetests -sx nodes/test/unit

Actual results:
(pulp)[rbarlow@notepad]~/devel/pulp% nosetests -sx nodes/test/unit
.................................../home/rbarlow/devel/pulp/server/pulp/server/db/connection.py:140: DeprecationWarning: The safe parameter is deprecated. Please use write concern options instead.
  return method(*args, **kwargs)
.......................................................................Exception AttributeError: "'NoneType' object has no attribute 'closed'" in <bound method UnitWriter.__del__ of <pulp_node.manifest.UnitWriter object at 0x2bc6950>> ignored
.Exception AttributeError: "'NoneType' object has no attribute 'closed'" in <bound method UnitWriter.__del__ of <pulp_node.manifest.UnitWriter object at 0x2bc64d0>> ignored
.......Exception AttributeError: "'NoneType' object has no attribute 'closed'" in <bound method UnitWriter.__del__ of <pulp_node.manifest.UnitWriter object at 0x2f62410>> ignored
.Exception AttributeError: "'NoneType' object has no attribute 'closed'" in <bound method UnitWriter.__del__ of <pulp_node.manifest.UnitWriter object at 0x2f0d1d0>> ignored
.Exception AttributeError: "'NoneType' object has no attribute 'closed'" in <bound method UnitWriter.__del__ of <pulp_node.manifest.UnitWriter object at 0x2da1c10>> ignored
.Exception AttributeError: "'NoneType' object has no attribute 'closed'" in <bound method UnitWriter.__del__ of <pulp_node.manifest.UnitWriter object at 0x2f5a090>> ignored
.Exception AttributeError: "'NoneType' object has no attribute 'closed'" in <bound method UnitWriter.__del__ of <pulp_node.manifest.UnitWriter object at 0x2dd7350>> ignored
.Exception AttributeError: "'NoneType' object has no attribute 'closed'" in <bound method UnitWriter.__del__ of <pulp_node.manifest.UnitWriter object at 0x2dd9450>> ignored
.Exception AttributeError: "'NoneType' object has no attribute 'closed'" in <bound method UnitWriter.__del__ of <pulp_node.manifest.UnitWriter object at 0x2f5ba10>> ignored
...........Exception AttributeError: "'NoneType' object has no attribute 'closed'" in <bound method UnitWriter.__del__ of <pulp_node.manifest.UnitWriter object at 0x2f5a810>> ignored
....Exception AttributeError: "'NoneType' object has no attribute 'closed'" in <bound method UnitWriter.__del__ of <pulp_node.manifest.UnitWriter object at 0x2f6c610>> ignored
.Exception AttributeError: "'NoneType' object has no attribute 'closed'" in <bound method UnitWriter.__del__ of <pulp_node.manifest.UnitWriter object at 0x2f6c650>> ignored
.Exception AttributeError: "'NoneType' object has no attribute 'closed'" in <bound method UnitWriter.__del__ of <pulp_node.manifest.UnitWriter object at 0x2f6c750>> ignored

Expected results:
The above command should only print dots and the end of test report.

Comment 1 Chris Duryee 2014-09-17 16:21:48 UTC
Setting as medium/2.5.1 to determine if error is due to unit tests or if it can be repro'd at runtime.

Comment 2 Chris Duryee 2014-09-23 16:02:17 UTC
https://github.com/pulp/pulp/pull/1171

Comment 3 Chris Duryee 2014-09-30 00:02:38 UTC
merged to 2.5-dev and master

Comment 4 Chris Duryee 2014-12-23 20:52:41 UTC
fixed in pulp 2.6.0-0.2.beta

Comment 5 Preethi Thomas 2015-02-06 15:15:05 UTC
Please have a dev verify it.

Comment 6 Chris Duryee 2015-02-06 15:30:51 UTC
These errors no longer appear.

Comment 7 Brian Bouterse 2015-02-28 22:20:24 UTC
Moved to https://pulp.plan.io/issues/529