Errors when running the juju-gui charm tests via juju-test

Bug #1185820 reported by Nicola Larosa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juju Plugins
Fix Released
Undecided
Unassigned

Bug Description

There were errors when using the juju-test command to run the juju-gui charm tests, output below. Revno 59 of lp:~juju-gui/charms/precise/juju-gui/trunk

Also, JUJU_ENV was not set, and -e was needed, because juju-test does not use the default environment by default.

$ juju-test -e ec2
juju-test INFO : Starting test run on ec2 using Juju 1.11.0
juju-test.conductor.backend.py RESULT : ✘
test_api_agent (__main__.DeployTest) ... ERROR
test_branch_source (__main__.DeployTest) ... ERROR
test_staging (__main__.DeployTest) ... ERROR
test_api_agent (__main__.DeployToTest) ... ERROR

======================================================================
ERROR: test_api_agent (__main__.DeployTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/deploy.test", line 33, in setUp
    selenium = self.selenium = Firefox()
  File "/home/nl/.local/lib/python2.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 47, in __init__
    self.binary = FirefoxBinary()
  File "/home/nl/.local/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 33, in __init__
    self._start_cmd = self._get_firefox_start_cmd()
  File "/home/nl/.local/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 132, in _get_firefox_start_cmd
    start_cmd = self.which(ffname)
  File "/home/nl/.local/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 174, in which
    for pe in os.environ['PATH'].split(os.pathsep):
  File "/usr/lib/python2.7/UserDict.py", line 23, in __getitem__
    raise KeyError(key)
KeyError: 'PATH'

======================================================================
ERROR: test_branch_source (__main__.DeployTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/deploy.test", line 33, in setUp
    selenium = self.selenium = Firefox()
  File "/home/nl/.local/lib/python2.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 47, in __init__
    self.binary = FirefoxBinary()
  File "/home/nl/.local/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 33, in __init__
    self._start_cmd = self._get_firefox_start_cmd()
  File "/home/nl/.local/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 132, in _get_firefox_start_cmd
    start_cmd = self.which(ffname)
  File "/home/nl/.local/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 174, in which
    for pe in os.environ['PATH'].split(os.pathsep):
  File "/usr/lib/python2.7/UserDict.py", line 23, in __getitem__
    raise KeyError(key)
KeyError: 'PATH'

======================================================================
ERROR: test_staging (__main__.DeployTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/deploy.test", line 33, in setUp
    selenium = self.selenium = Firefox()
  File "/home/nl/.local/lib/python2.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 47, in __init__
    self.binary = FirefoxBinary()
  File "/home/nl/.local/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 33, in __init__
    self._start_cmd = self._get_firefox_start_cmd()
  File "/home/nl/.local/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 132, in _get_firefox_start_cmd
    start_cmd = self.which(ffname)
  File "/home/nl/.local/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 174, in which
    for pe in os.environ['PATH'].split(os.pathsep):
  File "/usr/lib/python2.7/UserDict.py", line 23, in __getitem__
    raise KeyError(key)
KeyError: 'PATH'

======================================================================
ERROR: test_api_agent (__main__.DeployToTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/deploy.test", line 33, in setUp
    selenium = self.selenium = Firefox()
  File "/home/nl/.local/lib/python2.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 47, in __init__
    self.binary = FirefoxBinary()
  File "/home/nl/.local/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 33, in __init__
    self._start_cmd = self._get_firefox_start_cmd()
  File "/home/nl/.local/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 132, in _get_firefox_start_cmd
    start_cmd = self.which(ffname)
  File "/home/nl/.local/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 174, in which
    for pe in os.environ['PATH'].split(os.pathsep):
  File "/usr/lib/python2.7/UserDict.py", line 23, in __getitem__
    raise KeyError(key)
KeyError: 'PATH'

----------------------------------------------------------------------
Ran 4 tests in 0.434s

FAILED (errors=4)
juju-test.conductor.deploy.test RESULT : ✘
juju-test.conductor.test_backends.py RESULT : ✘
juju-test.conductor.test_utils.py RESULT : ✘
test_attribute_not_found (test_utils.TestAttrDict) ... ok
test_key_as_attribute (test_utils.TestAttrDict) ... ok
test_contents_logged (test_utils.TestCmdLog) ... ok
test_directory_path (test_utils.TestFirstPathInDir) ... ok
test_empty_directory (test_utils.TestFirstPathInDir) ... ok
test_file_path (test_utils.TestFirstPathInDir) ... ok
test_missing_directory (test_utils.TestGetApiAddress) ... ok
test_missing_file (test_utils.TestGetApiAddress) ... ok
test_retrieving_address (test_utils.TestGetApiAddress) ... ok
test_attr_not_found (test_utils.TestGetByAttr) ... ok
test_item_found (test_utils.TestGetByAttr) ... ok
test_value_not_found (test_utils.TestGetByAttr) ... ok
test_file_not_found (test_utils.TestGetReleaseFileUrl) ... ok
test_file_not_found_in_latest_release (test_utils.TestGetReleaseFileUrl) ... ok
test_latest_stable_release (test_utils.TestGetReleaseFileUrl) ... ok
test_latest_trunk_release (test_utils.TestGetReleaseFileUrl) ... ok
test_no_releases (test_utils.TestGetReleaseFileUrl) ... ok
test_release_not_found (test_utils.TestGetReleaseFileUrl) ... ok
test_series_not_found (test_utils.TestGetReleaseFileUrl) ... ok
test_specific_stable_release (test_utils.TestGetReleaseFileUrl) ... ok
test_specific_trunk_release (test_utils.TestGetReleaseFileUrl) ... ok
test_get_zookeeper_address (test_utils.TestGetZookeeperAddress) ... ok
test_jujucore (test_utils.TestLegacyJuju) ... ok
test_pyjuju (test_utils.TestLegacyJuju) ... ok
test_error (test_utils.TestLogHook) ... ok
test_logging (test_utils.TestLogHook) ... ok
test_subprocess_error (test_utils.TestLogHook) ... ok
test_factory (test_utils.TestMakeCollection) ... ok
test_InstallMixin_primes_npm_cache (test_utils.TestNpmCache) ... ok
test_retrieving_cache_url (test_utils.TestNpmCache) ... ok
test_bzr_branch (test_utils.TestParseSource) ... ok
test_bzr_branch_and_revision (test_utils.TestParseSource) ... ok
test_file_url (test_utils.TestParseSource) ... ok
test_latest_stable_release (test_utils.TestParseSource) ... ok
test_latest_trunk_release (test_utils.TestParseSource) ... ok
test_relative_file_url (test_utils.TestParseSource) ... ok
test_stable_release (test_utils.TestParseSource) ... ok
test_trunk_release (test_utils.TestParseSource) ... ok
test_url (test_utils.TestParseSource) ... ok
test_render_to_file (test_utils.TestRenderToFile) ... ok
test_generation (test_utils.TestSaveOrCreateCertificates) ... ok
test_pem_file (test_utils.TestSaveOrCreateCertificates) ... ok
test_provided_certificates (test_utils.TestSaveOrCreateCertificates) ... ok
test_start_agent (test_utils.TestStartStop) ... ok
test_start_gui (test_utils.TestStartStop) ... ok
test_start_gui_insecure (test_utils.TestStartStop) ... ok
test_start_gui_sandbox (test_utils.TestStartStop) ... ok
test_start_improv (test_utils.TestStartStop) ... ok
test_install_improv (test_backends.TestBackendCommands) ... ok
test_install_python (test_backends.TestBackendCommands) ... ok
test_start_agent (test_backends.TestBackendCommands) ... ok
test_start_improv (test_backends.TestBackendCommands) ... ok
test_stop (test_backends.TestBackendCommands) ... ok
test_go_backend (test_backends.TestBackendProperties) ... ok
test_python_backend (test_backends.TestBackendProperties) ... ok
test_sandbox_backend (test_backends.TestBackendProperties) ... ok
test_staging_backend (test_backends.TestBackendProperties) ... ok
test_different_config (test_backends.TestBackendUtils) ... ok
test_same_config (test_backends.TestBackendUtils) ... ok

----------------------------------------------------------------------
Ran 59 tests in 1.280s

OK
<unittest.runner.TextTestResult run=59 errors=0 failures=0>
juju-test.conductor.unit.test RESULT : ✘
juju-test.conductor.utils.py RESULT : ✘
juju-test INFO : Results: 0 passed, 6 failed, 0 errored

Nicola Larosa (teknico)
description: updated
Revision history for this message
Nicola Larosa (teknico) wrote :
Download full text (9.2 KiB)

Here is the output of the same command, but with -vv added, as requested:

$ juju-test -vv -e ec2
juju-test INFO : Starting test run on ec2 using Juju 1.11.0
juju-test DEBUG : Creating a new Conductor
juju-test.conductor DEBUG : Starting a bootstrap for ec2, kill after 300
juju-test.conductor DEBUG : Running the following: juju bootstrap -e ec2
juju-test.conductor DEBUG : Waiting for bootstrap
juju-test.conductor DEBUG : Still not bootstrapped
juju-test.conductor DEBUG : Running the following: juju status -e ec2
juju-test.conductor DEBUG : Status command failed, returning nothing
juju-test.conductor DEBUG : Still not bootstrapped
juju-test.conductor DEBUG : Running the following: juju status -e ec2
juju-test.conductor DEBUG : State for 1.11.0: started
juju-test.conductor.backend.py DEBUG : Running backend.py (tests/backend.py)
juju-test.conductor.backend.py DEBUG : Encountered unexpected error [Errno 13] Permission denied
juju-test.conductor.backend.py RESULT : ✘
juju-test.conductor DEBUG : Tearing down ec2 juju environment
juju-test.conductor DEBUG : Calling "juju destroy-environment -e ec2"
juju-test.conductor DEBUG : Starting a bootstrap for ec2, kill after 300
juju-test.conductor DEBUG : Running the following: juju bootstrap -e ec2
error: cannot save state: cannot make S3 control bucket: A conflicting conditional operation is currently in progress against this resource. Please try again.
juju-test.conductor WARNING : Could not bootstrap ec2, got Bootstrap returned with an exit > 0. Skipping
juju-test.conductor DEBUG : Starting a bootstrap for ec2, kill after 300
juju-test.conductor DEBUG : Running the following: juju bootstrap -e ec2
juju-test.conductor DEBUG : Waiting for bootstrap
juju-test.conductor DEBUG : Still not bootstrapped
juju-test.conductor DEBUG : Running the following: juju status -e ec2
juju-test.conductor DEBUG : State for 1.11.0: pending
juju-test.conductor DEBUG : Still not bootstrapped
juju-test.conductor DEBUG : Running the following: juju status -e ec2
juju-test.conductor DEBUG : State for 1.11.0: started
juju-test.conductor.deploy.test DEBUG : Running deploy.test (tests/deploy.test)
test_api_agent (__main__.DeployTest) ... ERROR
test_branch_source (__main__.DeployTest) ... ERROR
test_staging (__main__.DeployTest) ... ERROR
test_api_agent (__main__.DeployToTest) ... ERROR

======================================================================
ERROR: test_api_agent (__main__.DeployTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/deploy.test", line 33, in setUp
    selenium = self.selenium = Firefox()
  File "/home/nl/.local/lib/python2.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 47, in __init__
    self.binary = FirefoxBinary()
  File "/home/nl/.local/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 33, in __init__
    self._start_cmd = self._get_firefox_start_cmd()
  File "/home/nl/.local/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 132, in _get_firefox_start_cmd
    start_cmd = self.which(ffname)
  Fil...

Read more...

Revision history for this message
Marco Ceppi (marcoceppi) wrote :

The resolution for this was to only execute executable files and a fix to a typo with the "sleep" command

Changed in juju-plugins:
status: New → Fix Released
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.