juju.providers.local.tests.test_agent.ManagedAgentTest.test_managed_agent_root fails due to unset path

Bug #1037803 reported by Clint Byrum
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjuju
Triaged
Low
Unassigned

Bug Description

$ TEST_SUDO=1 eatmydata ./test juju.providers.local.tests.test_agent
Using system zookeeper classpath from /etc/zookeeper/conf/environment
juju.providers.local.tests.test_agent
  ManagedAgentTest
    test_managed_agent_config ... [OK]
    test_managed_agent_root ... [ERROR]

===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1043, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/home/clint/src/juju/trunk/juju/providers/local/tests/test_agent.py", line 78, in test_managed_agent_root
    yield agent.start()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1043, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/home/clint/src/juju/trunk/juju/lib/service.py", line 111, in start
    yield self._trash_output()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1043, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/home/clint/src/juju/trunk/juju/lib/service.py", line 88, in _trash_output
    yield self._call("rm", "-f", self._pid_path)
  File "/usr/lib/python2.7/dist-packages/twisted/python/threadpool.py", line 207, 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 "/home/clint/src/juju/trunk/juju/lib/service.py", line 18, in _check_call
    env=env)
  File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('sudo', '-E', 'rm', '-f', '/tmp/test-ns-_AXzcD.pid')' returned non-zero exit status 1

juju.providers.local.tests.test_agent.ManagedAgentTest.test_managed_agent_root
-------------------------------------------------------------------------------
Ran 2 tests in 0.091s

FAILED (errors=1, successes=1)

Related branches

Curtis Hovey (sinzui)
Changed in juju:
importance: Medium → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.