Charm test fails consistently

Bug #1292651 reported by Marco Ceppi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mediawiki (Juju Charms Collection)
Fix Released
High
Charles Butler

Bug Description

charm test -v -e charm-testing-lxc $failfast --timeout=45m

DEBUG:jlxc:Exec Command: sudo lxc-ls --fancy -P /tmp/jlxc/jlxc-IfpwDj
DEBUG:jlxc:Exec Command: sudo lxc-ls --fancy -P /tmp/jlxc/jlxc-IfpwDj
DEBUG:jlxc:Exec Command: scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /var/lib/jenkins/cloud-city/staging-juju-rsa /tmp/tmpiLJzo9 ubuntu@10.0.3.25:/home/ubuntu/.jlxc_here
DEBUG:jlxc:Exec Command: sudo lxc-ls --fancy -P /tmp/jlxc/jlxc-IfpwDj
DEBUG:jlxc:Exec Command: sudo lxc-ls --fancy -P /tmp/jlxc/jlxc-IfpwDj
DEBUG:jlxc:Exec Command: ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -l ubuntu -i /var/lib/jenkins/cloud-city/staging-juju-rsa 10.0.3.25 -- /home/ubuntu/.jlxc_here
DEBUG:jlxc:Exec Command: sudo lxc-ls --fancy -P /tmp/jlxc/jlxc-IfpwDj
DEBUG:jlxc:Exec Command: sudo lxc-stop -P /tmp/jlxc/jlxc-IfpwDj -n charm-testing-lxc
DEBUG:jlxc:Exec Command: sudo lxc-ls --fancy -P /tmp/jlxc/jlxc-IfpwDj
DEBUG:jlxc:Exec Command: sudo lxc-ls --fancy -P /tmp/jlxc/jlxc-IfpwDj
DEBUG:jlxc:Exec Command: sudo lxc-destroy --force -P /tmp/jlxc/jlxc-IfpwDj -n charm-testing-hp
DEBUG:jlxc:Exec Command: sudo lxc-ls --fancy -P /tmp/jlxc/jlxc-IfpwDj
DEBUG:jlxc:Exec Command: sudo lxc-ls --fancy -P /tmp/jlxc/jlxc-IfpwDj
DEBUG:jlxc:Exec Command: sudo lxc-destroy --force -P /tmp/jlxc/jlxc-IfpwDj -n charm-testing-lxc
DEBUG:jlxc:Exec Command: sudo lxc-ls --fancy -P /tmp/jlxc/jlxc-IfpwDj
DEBUG:jlxc:Exec Command: sudo lxc-ls --fancy -P /tmp/jlxc/jlxc-IfpwDj
DEBUG:jlxc:Exec Command: sudo lxc-destroy --force -P /tmp/jlxc/jlxc-IfpwDj -n charm-testing-aws
DEBUG:jlxc:Exec Command: sudo rm -rf /tmp/jlxc/jlxc-IfpwDj
Substrate: charm-testing-hp: PASS

Warning: Permanently added '10.0.3.208' (ECDSA) to the list of known hosts.
+ cd /home/ubuntu/charms/mediawiki
+ juju destroy-environment -y -e charm-testing-hp
WARNING unknown config field "test-mode"
+ '[' -n False ']'
+ failfast=--set-e
+ charm test -v -e charm-testing-hp --set-e --timeout=45m
juju-test INFO : Starting test run on charm-testing-hp using Juju 1.16.6
juju-test DEBUG : Loading configuration options from testplan YAML
juju-test DEBUG : Creating a new Conductor
juju-test.conductor DEBUG : Starting a bootstrap for charm-testing-hp, kill after 300
juju-test.conductor DEBUG : Running the following: juju bootstrap -e charm-testing-hp
WARNING unknown config field "test-mode"
WARNING unknown config field "test-mode"
WARNING unknown config field "test-mode"
juju-test.conductor DEBUG : Waiting for bootstrap
juju-test.conductor DEBUG : Still not bootstrapped
juju-test.conductor DEBUG : Running the following: juju status -e charm-testing-hp
WARNING unknown config field "test-mode"
WARNING unknown config field "test-mode"
juju-test.conductor DEBUG : State for 1.16.6: down
juju-test.conductor DEBUG : Still not bootstrapped
juju-test.conductor DEBUG : Running the following: juju status -e charm-testing-hp
WARNING unknown config field "test-mode"
WARNING unknown config field "test-mode"
juju-test.conductor DEBUG : State for 1.16.6: started
juju-test.conductor.00-setup DEBUG : Running 00-setup (tests/00-setup)
gpg: keyring `/tmp/tmp9wupGj/secring.gpg' created
gpg: keyring `/tmp/tmp9wupGj/pubring.gpg' created
gpg: requesting key C8068B11 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp9wupGj/trustdb.gpg: trustdb created
gpg: key C8068B11: public key "Launchpad Ensemble PPA" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
E: Unable to locate package python3-pip
juju-test.conductor.00-setup DEBUG : Reading package lists...
Building dependency tree...
Reading state information...
python3-setuptools is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 55 not upgraded.
OK
Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://ppa.launchpad.net precise Release
Hit http://archive.ubuntu.com precise Release.gpg
Get:2 http://archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:3 http://security.ubuntu.com precise-security Release [49.6 kB]
Hit http://archive.ubuntu.com precise Release
Get:4 http://archive.ubuntu.com precise-updates Release [49.6 kB]
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main amd64 Packages
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Get:5 http://security.ubuntu.com precise-security/main Sources [99.2 kB]
Hit http://archive.ubuntu.com precise/main Sources
Get:6 http://security.ubuntu.com precise-security/universe Sources [30.9 kB]
Ign http://ppa.launchpad.net precise/main Translation-en_US
Hit http://archive.ubuntu.com precise/universe Sources
Get:7 http://security.ubuntu.com precise-security/main amd64 Packages [370 kB]
Ign http://ppa.launchpad.net precise/main Translation-en
Hit http://archive.ubuntu.com precise/main amd64 Packages
Hit http://archive.ubuntu.com precise/universe amd64 Packages
Hit http://archive.ubuntu.com precise/main i386 Packages
Hit http://archive.ubuntu.com precise/universe i386 Packages
Hit http://archive.ubuntu.com precise/main TranslationIndex
Hit http://archive.ubuntu.com precise/universe TranslationIndex
Hit http://archive.ubuntu.com precise/main Translation-en
Hit http://archive.ubuntu.com precise/universe Translation-en
Get:8 http://archive.ubuntu.com precise-updates/main Sources [452 kB]
Get:9 http://security.ubuntu.com precise-security/universe amd64 Packages [91.3 kB]
Get:10 http://security.ubuntu.com precise-security/main i386 Packages [396 kB]
Get:11 http://archive.ubuntu.com precise-updates/universe Sources [105 kB]
Get:12 http://security.ubuntu.com precise-security/universe i386 Packages [96.1 kB]
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/universe Translation-en
Get:13 http://archive.ubuntu.com precise-updates/main amd64 Packages [758 kB]
Get:14 http://archive.ubuntu.com precise-updates/universe amd64 Packages [237 kB]
Get:15 http://archive.ubuntu.com precise-updates/main i386 Packages [782 kB]
Get:16 http://archive.ubuntu.com precise-updates/universe i386 Packages [242 kB]
Hit http://archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://archive.ubuntu.com precise-updates/main Translation-en
Hit http://archive.ubuntu.com precise-updates/universe Translation-en
Fetched 3,760 kB in 2s (1,653 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Downloading/unpacking splinter
  Downloading splinter-0.6.0.tar.gz
  Running setup.py (path:/tmp/pip_build_root/splinter/setup.py) egg_info for package splinter

    no previously-included directories found matching 'tests'
Downloading/unpacking selenium
  Running setup.py (path:/tmp/pip_build_root/selenium/setup.py) egg_info for package selenium

Installing collected packages: splinter, selenium
  Running setup.py install for splinter

    no previously-included directories found matching 'tests'
  Running setup.py install for selenium

Successfully installed splinter selenium
Cleaning up...

juju-test.conductor.00-setup RESULT : ���
juju-test.conductor DEBUG : Tearing down charm-testing-hp juju environment
juju-test.conductor DEBUG : Calling "juju destroy-environment -y -e charm-testing-hp"
WARNING unknown config field "test-mode"
juju-test.conductor DEBUG : Starting a bootstrap for charm-testing-hp, kill after 300
juju-test.conductor DEBUG : Running the following: juju bootstrap -e charm-testing-hp
WARNING unknown config field "test-mode"
WARNING unknown config field "test-mode"
WARNING unknown config field "test-mode"
juju-test.conductor DEBUG : Waiting for bootstrap
juju-test.conductor DEBUG : Still not bootstrapped
juju-test.conductor DEBUG : Running the following: juju status -e charm-testing-hp
WARNING unknown config field "test-mode"
WARNING unknown config field "test-mode"
juju-test.conductor DEBUG : State for 1.16.6: down
juju-test.conductor DEBUG : Still not bootstrapped
juju-test.conductor DEBUG : Running the following: juju status -e charm-testing-hp
WARNING unknown config field "test-mode"
WARNING unknown config field "test-mode"
juju-test.conductor DEBUG : State for 1.16.6: started
juju-test.conductor.100-deploy DEBUG : Running 100-deploy (tests/100-deploy)
2014-03-14 16:53:31 Starting deployment of charm-testing-hp
2014-03-14 16:53:41 Deploying services...
2014-03-14 16:53:43 Deploying service mediawiki using local:precise/mediawiki
2014-03-14 16:54:08 Exposing service 'mediawiki'
2014-03-14 16:54:08 Deploying service memcached-sentry using local:precise/memcached-sentry
2014-03-14 16:54:22 Exposing service 'memcached-sentry'
2014-03-14 16:54:22 Deploying service mysql-sentry using local:precise/mysql-sentry
2014-03-14 16:54:35 Exposing service 'mysql-sentry'
2014-03-14 16:54:35 Deploying service mysql using cs:precise/mysql-36
2014-03-14 16:55:04 Deploying service mediawiki-sentry using local:precise/mediawiki-sentry
2014-03-14 16:55:18 Exposing service 'mediawiki-sentry'
2014-03-14 16:55:18 Deploying service relation-sentry using local:precise/relation-sentry
2014-03-14 16:55:45 Exposing service 'relation-sentry'
2014-03-14 16:55:46 Deploying service memcached using cs:precise/memcached-12
2014-03-14 16:57:43 Config specifies num units for subordinate: memcached-sentry
2014-03-14 16:57:43 Config specifies num units for subordinate: mysql-sentry
2014-03-14 16:57:43 Config specifies num units for subordinate: mediawiki-sentry
2014-03-14 16:57:43 Adding relations...
2014-03-14 16:57:45 Adding relation mediawiki:juju-info <-> mediawiki-sentry:juju-info
2014-03-14 16:57:50 Adding relation memcached:juju-info <-> memcached-sentry:juju-info
2014-03-14 16:57:55 Adding relation mysql:juju-info <-> mysql-sentry:juju-info
2014-03-14 16:58:00 Adding relation relation-sentry:provides-mysql_db-mediawiki_db <-> mysql:db
2014-03-14 16:58:06 Adding relation relation-sentry:requires-mysql_db-mediawiki_db <-> mediawiki:db
2014-03-14 16:58:11 Adding relation relation-sentry:provides-memcached_cache-mediawiki_cache <-> memcached:cache
2014-03-14 16:58:16 Adding relation relation-sentry:requires-memcached_cache-mediawiki_cache <-> mediawiki:cache
2014-03-14 16:59:24 Deployment complete in 352.83 seconds
Traceback (most recent call last):
  File "/usr/local/lib/python3.2/dist-packages/selenium/webdriver/phantomjs/service.py", line 64, in start
    stdout=self._log, stderr=self._log)
  File "/usr/lib/python3.2/subprocess.py", line 745, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.2/subprocess.py", line 1361, in _execute_child
    raise child_exception_type(errno_num, err_msg)
OSError: [Errno 2] No such file or directory: 'phantomjs'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "tests/100-deploy", line 64, in <module>
    browser = Browser('phantomjs')
  File "/usr/local/lib/python3.2/dist-packages/splinter/browser.py", line 53, in Browser
    return driver(*args, **kwargs)
  File "/usr/local/lib/python3.2/dist-packages/splinter/driver/webdriver/phantomjs.py", line 28, in __init__
    self.driver = PhantomJS(desired_capabilities=capabilities, **kwargs)
  File "/usr/local/lib/python3.2/dist-packages/selenium/webdriver/phantomjs/webdriver.py", line 50, in __init__
    self.service.start()
  File "/usr/local/lib/python3.2/dist-packages/selenium/webdriver/phantomjs/service.py", line 67, in start
    raise WebDriverException("Unable to start phantomjs with ghostdriver.", e)
selenium.common.exceptions.WebDriverException: Message: 'Unable to start phantomjs with ghostdriver.' ; Screenshot: available via screen
juju-test.conductor.100-deploy DEBUG :
juju-test.conductor.100-deploy DEBUG : Got exit code: 1
juju-test.conductor.100-deploy RESULT : ���
juju-test.conductor INFO : Breaking here as requested by --set-e
juju-test INFO : Results: 1 passed, 1 failed, 0 errored

Related branches

Changed in mediawiki (Juju Charms Collection):
status: Triaged → In Progress
Changed in mediawiki (Juju Charms Collection):
status: In Progress → Fix Committed
Revision history for this message
José Antonio Rey (jose) wrote :

This was fixed with r79, on 2014-07-17

Changed in mediawiki (Juju Charms Collection):
status: Fix Committed → 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.