test suite cannot run without an ssh key
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
Low
|
Clint Byrum |
Bug Description
When running the ensemble test suite in a clean chroot build environment this failure occurrs:
[FAIL]
Traceback (most recent call last):
File "/usr/lib/
raise self.failureExc
twisted.
Expected: (<class 'ensemble.
Got:
[Failure instance: Traceback: <type 'exceptions.
/«BUILDDIR»
/«BUILDDIR»
/«BUILDDIR»
/usr/lib/
--- <exception caught here> ---
/usr/lib/
/«BUILDDIR»
/«BUILDDIR»
]
The test should handle this error.
Related branches
- Gustavo Niemeyer: Approve
-
Diff: 35 lines (+5/-3)2 files modifiedensemble/lib/testing.py (+1/-0)
ensemble/providers/ec2/tests/test_provider.py (+4/-3)
Changed in ensemble: | |
milestone: | none → eureka |
status: | New → In Progress |
assignee: | nobody → Clint Byrum (clint-fewbar) |
Changed in juju: | |
status: | In Progress → Fix Released |
This also happens for the same reason:
ensemble. providers. ec2.tests. test_launch. EC2MachineLaunc hTest.test_ launch_ with_no_ ensemble_ s3_state ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= == python2. 7/dist- packages/ twisted/ trial/unittest. py", line 402, in _eb eption( output) trial.unittest. FailTest: errors. EnvironmentNotF ound'>, ) LookupError' >: SSH authorized/public key not found. /ensemble- 0.5+bzr277/ ensemble/ providers/ ec2/tests/ test_launch. py:268: test_launch_ with_no_ ensemble_ zookeeper_ hosts /ensemble- 0.5+bzr277/ ensemble/ providers/ ec2/__init_ _.py:109: start_machine /ensemble- 0.5+bzr277/ ensemble/ providers/ ec2/launch. py:36:run python2. 7/dist- packages/ twisted/ internet/ defer.py: 1141:unwindGene rator python2. 7/dist- packages/ twisted/ internet/ defer.py: 1020:_inlineCal lbacks /ensemble- 0.5+bzr277/ ensemble/ providers/ ec2/launch. py:205: launch /ensemble- 0.5+bzr277/ ensemble/ providers/ common. py:76:get_ user_authorized _keys
=======
[FAIL]
Traceback (most recent call last):
File "/usr/lib/
raise self.failureExc
twisted.
Expected: (<class 'ensemble.
Got:
[Failure instance: Traceback: <type 'exceptions.
/«BUILDDIR»
/«BUILDDIR»
/«BUILDDIR»
/usr/lib/
--- <exception caught here> ---
/usr/lib/
/«BUILDDIR»
/«BUILDDIR»
]