← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1347337] Re: Intermittent failure in unittest: GuestAgentMongoDBManagerTest.test_prepare_from_backup

 

The backtrace you are likely to see will include

File "<path to>/processutils.py", line 186, in execute
   result = obj.communicate()
File "/usr/lib/python2.7/subprocess.py", line 799, in communicate
   return self._communicate(input)
File "/usr/lib/python2.7/subprocess.py", line 1396, in _communicate
   self.stdin.flush()
File "/opt/stack/trove/.tox/py27/local/lib/python2.7/site-packages/eventlet/greenio.py", line 419, in    _operationOnClosedFile
   raise ValueError("I/O operation on closed file")
ValueError: I/O operation on closed file

** Also affects: nova
   Importance: Undecided
       Status: New

** Also affects: trove
   Importance: Undecided
       Status: New

** Also affects: cinder
   Importance: Undecided
       Status: New

** Changed in: trove
     Assignee: (unassigned) => Amrith (amrith)

** Also affects: glance
   Importance: Undecided
       Status: New

** Also affects: neutron
   Importance: Undecided
       Status: New

** Summary changed:

- Intermittent failure in unittest: GuestAgentMongoDBManagerTest.test_prepare_from_backup
+ intermittent failures in call to execute() with exception "ValueError: I/O operation on closed file"

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1347337

Title:
  intermittent failures in call to execute() with exception "ValueError:
  I/O operation on closed file"

Status in Cinder:
  New
Status in OpenStack Image Registry and Delivery Service (Glance):
  New
Status in OpenStack Neutron (virtual network service):
  New
Status in OpenStack Compute (Nova):
  New
Status in Oslo - a Library of Common OpenStack Code:
  In Progress
Status in Openstack Database (Trove):
  New

Bug description:
  This happened just once, so I'm opening a tracking bug to see if we hit this again.
  The details of the run:

  
  2014-07-22 23:41:56.663 | py27 runtests: commands[1] | python setup.py testr --slowest
  2014-07-22 23:41:57.027 | running testr
  2014-07-22 23:41:59.231 | No handlers could be found for logger "trove.guestagent.backup.backupagent"
  2014-07-22 23:41:59.397 | No handlers could be found for logger "trove.guestagent.backup.backupagent"
  2014-07-22 23:41:59.906 | No handlers could be found for logger "trove.guestagent.backup.backupagent"
  2014-07-22 23:42:00.257 | No handlers could be found for logger "trove.conductor.manager"
  2014-07-22 23:42:01.015 | No handlers could be found for logger "trove.guestagent.api"
  2014-07-22 23:42:01.695 | No handlers could be found for logger "trove.guestagent.backup.backupagent"
  2014-07-22 23:42:02.514 | No handlers could be found for logger "trove.guestagent.backup.backupagent"
  2014-07-22 23:42:03.094 | No handlers could be found for logger "trove.guestagent.strategies.storage.swift"
  2014-07-22 23:42:13.834 | running=${PYTHON:-python} -m subunit.run discover ./trove/tests/unittests --list 
  2014-07-22 23:42:13.834 | running=${PYTHON:-python} -m subunit.run discover ./trove/tests/unittests  --load-list /tmp/tmp.Ss0It4yOgb/tmpVCBlup
  2014-07-22 23:42:13.834 | running=${PYTHON:-python} -m subunit.run discover ./trove/tests/unittests  --load-list /tmp/tmp.Ss0It4yOgb/tmpeEa7fi
  2014-07-22 23:42:13.834 | running=${PYTHON:-python} -m subunit.run discover ./trove/tests/unittests  --load-list /tmp/tmp.Ss0It4yOgb/tmpEudlCu
  2014-07-22 23:42:13.834 | running=${PYTHON:-python} -m subunit.run discover ./trove/tests/unittests  --load-list /tmp/tmp.Ss0It4yOgb/tmpIVQ9rl
  2014-07-22 23:42:13.834 | running=${PYTHON:-python} -m subunit.run discover ./trove/tests/unittests  --load-list /tmp/tmp.Ss0It4yOgb/tmpROt36p
  2014-07-22 23:42:13.834 | running=${PYTHON:-python} -m subunit.run discover ./trove/tests/unittests  --load-list /tmp/tmp.Ss0It4yOgb/tmpmDS72J
  2014-07-22 23:42:13.834 | running=${PYTHON:-python} -m subunit.run discover ./trove/tests/unittests  --load-list /tmp/tmp.Ss0It4yOgb/tmpDaJo98
  2014-07-22 23:42:13.834 | running=${PYTHON:-python} -m subunit.run discover ./trove/tests/unittests  --load-list /tmp/tmp.Ss0It4yOgb/tmpMMzRbw
  2014-07-22 23:42:13.834 | ======================================================================
  2014-07-22 23:42:13.834 | FAIL: guestagent.test_mongodb_manager.GuestAgentMongoDBManagerTest.test_prepare_from_backup
  2014-07-22 23:42:13.835 | tags: worker-5
  2014-07-22 23:42:13.835 | ----------------------------------------------------------------------
  2014-07-22 23:42:13.835 | Traceback (most recent call last):
  2014-07-22 23:42:13.835 |   File "/home/jenkins/workspace/gate-trove-python27/trove/tests/unittests/guestagent/test_mongodb_manager.py", line 58, in test_prepare_from_backup
  2014-07-22 23:42:13.835 |     self._prepare_dynamic(backup_id='backup_id_123abc')
  2014-07-22 23:42:13.835 |   File "/home/jenkins/workspace/gate-trove-python27/trove/tests/unittests/guestagent/test_mongodb_manager.py", line 91, in _prepare_dynamic
  2014-07-22 23:42:13.835 |     backup_info=backup_info)
  2014-07-22 23:42:13.835 |   File "trove/guestagent/datastore/mongodb/manager.py", line 66, in prepare
  2014-07-22 23:42:13.835 |     operating_system.update_owner('mongodb', 'mongodb', mount_point)
  2014-07-22 23:42:13.835 |   File "trove/guestagent/common/operating_system.py", line 109, in update_owner
  2014-07-22 23:42:13.835 |     run_as_root=True, root_helper="sudo")
  2014-07-22 23:42:13.836 |   File "trove/common/utils.py", line 278, in execute_with_timeout
  2014-07-22 23:42:13.836 |     return execute(*args, **kwargs)
  2014-07-22 23:42:13.836 |   File "trove/openstack/common/processutils.py", line 186, in execute
  2014-07-22 23:42:13.836 |     result = obj.communicate()
  2014-07-22 23:42:13.836 |   File "/usr/lib/python2.7/subprocess.py", line 799, in communicate
  2014-07-22 23:42:13.836 |     return self._communicate(input)
  2014-07-22 23:42:13.836 |   File "/usr/lib/python2.7/subprocess.py", line 1396, in _communicate
  2014-07-22 23:42:13.836 |     self.stdin.flush()
  2014-07-22 23:42:13.836 |   File "/home/jenkins/workspace/gate-trove-python27/.tox/py27/local/lib/python2.7/site-packages/eventlet/greenio.py", line 419, in _operationOnClosedFile
  2014-07-22 23:42:13.836 |     raise ValueError("I/O operation on closed file")
  2014-07-22 23:42:13.836 | ValueError: I/O operation on closed file
  2014-07-22 23:42:13.836 | ======================================================================
  2014-07-22 23:42:13.837 | FAIL: process-returncode
  2014-07-22 23:42:13.837 | tags: worker-5
  2014-07-22 23:42:13.837 | ----------------------------------------------------------------------
  2014-07-22 23:42:13.837 | Binary content:
  2014-07-22 23:42:13.837 |   traceback (test/plain; charset="utf8")
  2014-07-22 23:42:13.837 | Ran 712 tests in 14.846s
  2014-07-22 23:42:13.837 | FAILED (id=0, failures=2, skips=1)
  2014-07-22 23:42:13.838 | error: testr failed (1)
  2014-07-22 23:42:13.862 | ERROR: InvocationError: '/home/jenkins/workspace/gate-trove-python27/.tox/py27/bin/python setup.py testr --slowest'
  2014-07-22 23:42:13.862 | ___________________________________ summary ____________________________________
  2014-07-22 23:42:13.862 | ERROR:   py27: commands failed
  2014-07-22 23:42:13.870 | + result=1

To manage notifications about this bug go to:
https://bugs.launchpad.net/cinder/+bug/1347337/+subscriptions