Build failed in Jenkins: jujugui-test-charm #356

Jenkins Notification devnull at canonical.com
Wed Apr 24 17:37:34 UTC 2013


See <http://10.189.74.2:8080/job/jujugui-test-charm/356/changes>

Changes:

[Francesco Banconi] Fix login called twice in some cases.

Login was called twice in some cases.
The first time by the connectedChange subscriber reacting to a
WebSocket connection/reconnection. The second time only if the
credentials are available (stashed in the storage or just
provided in config) and the user is not authenticated.
AFAICT, the latter case is completely redundant, given
that the two conditions above are both true only
at the beginning of the auth process, started right
after the WebSocket is connected, so, reasonably,
when the login is already attempted by the connectedChange
subscriber.

QA:

Try to login with or without setting user and password in
config. Refresh, logout, disconnect rapi-delta, reconnect,
hack!

R=jeff.pihach, teknico
CC=
https://codereview.appspot.com/8596048

------------------------------------------
Started by an SCM change
[EnvInject] - Loading node environment variables.
Building remotely on lp-quantal-server-amd64
$ bzr revision-info -d <http://10.189.74.2:8080/job/jujugui-test-charm/ws/>
info result: bzr revision-info -d <http://10.189.74.2:8080/job/jujugui-test-charm/ws/> returned 0. Command output: "605 jeff.pihach at canonical.com-20130424171105-ka96ocyzd0791wds
" stderr: ""
[jujugui-test-charm] $ bzr pull --overwrite lp:juju-gui
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".
http://bazaar.launchpad.net/~juju-gui/juju-gui/trunk is permanently redirected to http://bazaar.launchpad.net/~juju-gui/juju-gui/trunk/changes
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".
 M  app/app.js
 M  test/test_app.js
All changes applied successfully.
Now on revision 606.
[jujugui-test-charm] $ bzr revert
$ bzr revision-info -d <http://10.189.74.2:8080/job/jujugui-test-charm/ws/>
info result: bzr revision-info -d <http://10.189.74.2:8080/job/jujugui-test-charm/ws/> returned 0. Command output: "606 francesco.banconi at canonical.com-20130424171620-g5c40ab8k10n2lc2
" stderr: ""
[jujugui-test-charm] $ bzr log -v -r revid:jeff.pihach at canonical.com-20130424171105-ka96ocyzd0791wds..revid:francesco.banconi at canonical.com-20130424171620-g5c40ab8k10n2lc2 --long --show-ids
Getting local revision...
$ bzr revision-info -d <http://10.189.74.2:8080/job/jujugui-test-charm/ws/>
info result: bzr revision-info -d <http://10.189.74.2:8080/job/jujugui-test-charm/ws/> returned 0. Command output: "606 francesco.banconi at canonical.com-20130424171620-g5c40ab8k10n2lc2
" stderr: ""
RevisionState revno:606 revid:francesco.banconi at canonical.com-20130424171620-g5c40ab8k10n2lc2
[EnvInject] - Injecting environment variables from a build step.
[EnvInject] - Injecting as environment variables the properties content 
JUJU_INSTANCE_IP=91.189.93.93
JUJU_BRANCH=lp:juju-gui
JUJU_CHARM=cs:~juju-gui/precise/juju-gui
FAIL_FAST=1
JUJU_GUI_TEST_BROWSERS=ie chrome firefox

[EnvInject] - Variables injected successfully.
[jujugui-test-charm] $ /bin/sh -xe /tmp/hudson3709834475927226758.sh
+ set -ex
+ cat
+ chmod +x /tmp/test-runner
+ sudo -E su -p -c /tmp/test-runner - jujugui-merger
Clean and Prep
2013-04-24 17:23:56,086 INFO Destroying environment 'juju-gui-testing' (type: openstack)...
2013-04-24 17:23:59,013 INFO 'destroy_environment' command finished successfully
WARNING: this command will destroy the 'juju-gui-testing' environment (type: openstack).
This includes all machines, services, data, and other resources. Continue [y/N] 
Waiting for instances to terminate
Waiting for instances to terminate
Waiting for instances to terminate
This is taking too long. Now trying euca-terminate-instances.

+ euca-terminate-instances i-00007ad1
INSTANCE	i-00007ad1
+ set +x

Waiting for instances to terminate
Waiting for instances to terminate
Lightweight Checkout of lp:juju-gui
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".
JUJU_INSTANCE_IP=91.189.93.93
Running Tests
ADDRESS	91.189.93.93	i-00007ad3
Bootstrapping...
Deploying service...
Setting origin for charm to deploy lp:juju-gui
Waiting for service to start...
Assigning JUJU_INSTANCE_IP 91.189.93.93
Storing Internal IP as 10.55.60.135
Assigned IP to i-00007ad3
Error running 'status --environment juju-gui-testing --format json'
2013-04-24 17:35:51,477 DEBUG Initializing juju status runtime
2013-04-24 17:35:51,486 DEBUG openstack: using auth-mode 'userpass' with https://keystone.canonistack.canonical.com:443/v2.0/
2013-04-24 17:35:51,486 INFO Connecting to environment...
2013-04-24 17:35:51,979 DEBUG openstack: authenticated til u'2013-04-25T17:35:51Z'
2013-04-24 17:35:51,979 DEBUG access object-store @ https://swift.canonistack.canonical.com/v1/AUTH_199db4f89161432fadbf71977bba81ce/622e3564a2e151a774479192ca89719b690a348b/provider-state
2013-04-24 17:35:51,980 DEBUG openstack: GET 'https://swift.canonistack.canonical.com/v1/AUTH_199db4f89161432fadbf71977bba81ce/622e3564a2e151a774479192ca89719b690a348b/provider-state'
2013-04-24 17:35:52,418 DEBUG openstack: 200 'zookeeper-instances: [19f9983e-5273-487f-a0cf-6879ae422557]\n'
2013-04-24 17:35:52,419 DEBUG access compute @ https://nova-lcy01.canonistack.canonical.com/v2/199db4f89161432fadbf71977bba81ce/servers/19f9983e-5273-487f-a0cf-6879ae422557
2013-04-24 17:35:52,419 DEBUG openstack: GET 'https://nova-lcy01.canonistack.canonical.com/v2/199db4f89161432fadbf71977bba81ce/servers/19f9983e-5273-487f-a0cf-6879ae422557'
2013-04-24 17:35:52,918 DEBUG openstack: 200 '{"server": {"status": "ACTIVE", "updated": "2013-04-24T17:27:31Z", "hostId": "27a911efbf2f3fefa3e6d5e7844c7e40c6118e3d50d1bbe715912233", "addresses": {"canonistack": [{"version": 4, "addr": "10.55.60.94"}]}, "links": [{"href": "http://nova-lcy01.canonistack.canonical.com/v2/199db4f89161432fadbf71977bba81ce/servers/19f9983e-5273-487f-a0cf-6879ae422557", "rel": "self"}, {"href": "http://nova-lcy01.canonistack.canonical.com/199db4f89161432fadbf71977bba81ce/servers/19f9983e-5273-487f-a0cf-6879ae422557", "rel": "bookmark"}], "key_name": null, "image": {"id": "bb636e4f-79d7-4d6b-b13b-c7d53419fd5a", "links": [{"href": "http://nova-lcy01.canonistack.canonical.com/199db4f89161432fadbf71977bba81ce/images/bb636e4f-79d7-4d6b-b13b-c7d53419fd5a", "rel": "bookmark"}]}, "OS-EXT-STS:task_state": null, "OS-EXT-STS:vm_state": "active", "flavor": {"id": "2", "links": [{"href": "http://nova-lcy01.canonistack.canonical.com/199db4f89161432fadbf71977bba81ce/flavors/2", "rel": "bookmark"}]}, "id": "19f9983e-5273-487f-a0cf-6879ae422557", "security_groups": [{"name": "juju-juju-gui-testing"}, {"name": "juju-juju-gui-testing-0"}], "user_id": "aab8c33815784618a280952800117432", "name": "juju juju-gui-testing instance 0", "created": "2013-04-24T17:26:35Z", "tenant_id": "199db4f89161432fadbf71977bba81ce", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "config_drive": "", "metadata": {}}}'
2013-04-24 17:35:52,919 DEBUG Connecting to environment using 10.55.60.94...
2013-04-24 17:35:52,919 DEBUG Spawning SSH process with remote_user="ubuntu" remote_host="10.55.60.94" remote_port="2181" local_port="45430".
2013-04-24 17:35:53,927:15665(0x7fc52163e700):ZOO_INFO at log_env@658: Client environment:zookeeper.version=zookeeper C client 3.3.6
2013-04-24 17:35:53,927:15665(0x7fc52163e700):ZOO_INFO at log_env@662: Client environment:host.name=lp-quantal-server-amd64
2013-04-24 17:35:53,927:15665(0x7fc52163e700):ZOO_INFO at log_env@669: Client environment:os.name=Linux
2013-04-24 17:35:53,927:15665(0x7fc52163e700):ZOO_INFO at log_env@670: Client environment:os.arch=3.5.0-15-generic
2013-04-24 17:35:53,927:15665(0x7fc52163e700):ZOO_INFO at log_env@671: Client environment:os.version=#22-Ubuntu SMP Wed Sep 19 20:01:43 UTC 2012
2013-04-24 17:35:53,928:15665(0x7fc52163e700):ZOO_INFO at log_env@679: Client environment:user.name=(null)
2013-04-24 17:35:53,928:15665(0x7fc52163e700):ZOO_INFO at log_env@687: Client environment:user.home=/home/jujugui-merger
2013-04-24 17:35:53,928:15665(0x7fc52163e700):ZOO_INFO at log_env@699: Client environment:user.dir=/home/jujugui-merger/gui-branch
2013-04-24 17:35:53,928:15665(0x7fc52163e700):ZOO_INFO at zookeeper_init@727: Initiating client connection, host=localhost:45430 sessionTimeout=30000 watcher=0x7fc521127700 sessionId=0 sessionPasswd=<null> context=0x1a33e70 flags=0
2013-04-24 17:35:53,929:15665(0x7fc51ce1a700):ZOO_INFO at check_events@1585: initiated connection to server [127.0.0.1:45430]
2013-04-24 17:35:54,184:15665(0x7fc51ce1a700):ZOO_INFO at check_events@1632: session establishment complete on server [127.0.0.1:45430], sessionId=0x13e3d1880870023, negotiated timeout=30000
2013-04-24 17:35:54,267 DEBUG Environment is initialized.
2013-04-24 17:35:54,268 INFO Connected to environment.
2013-04-24 17:35:55,454 DEBUG access compute @ https://nova-lcy01.canonistack.canonical.com/v2/199db4f89161432fadbf71977bba81ce/servers/detail
2013-04-24 17:35:55,454 DEBUG openstack: GET 'https://nova-lcy01.canonistack.canonical.com/v2/199db4f89161432fadbf71977bba81ce/servers/detail'
2013-04-24 17:36:15,476:15665(0x7fc52163e700):ZOO_INFO at zookeeper_close@2302: Closing zookeeper sessionId=0x13e3d1880870023 to [127.0.0.1:45430]

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 397, in errback
    self._startRunCallbacks(fail)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 464, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 551, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1101, in gotResult
    _inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1045, in _inlineCallbacks
    result = g.send(result)
  File "/usr/lib/python2.7/dist-packages/juju/control/status.py", line 94, in status
    state = yield command(scope)
twisted.internet.error.DNSLookupError: DNS lookup failed: address 'nova-lcy01.canonistack.canonical.com' not found: [Errno -3] Temporary failure in name resolution.
2013-04-24 17:36:15,511 ERROR Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 397, in errback
    self._startRunCallbacks(fail)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 464, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 551, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1101, in gotResult
    _inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1045, in _inlineCallbacks
    result = g.send(result)
  File "/usr/lib/python2.7/dist-packages/juju/control/status.py", line 94, in status
    state = yield command(scope)
twisted.internet.error.DNSLookupError: DNS lookup failed: address 'nova-lcy01.canonistack.canonical.com' not found: [Errno -3] Temporary failure in name resolution.

2013-04-24 17:36:15,511 ERROR DNS lookup failed: address 'nova-lcy01.canonistack.canonical.com' not found: [Errno -3] Temporary failure in name resolution.

Command '['juju', '-v', 'status', '--environment', 'juju-gui-testing', '--format', 'json']' returned non-zero exit status 1, Retrying in 3 seconds...
{
    "machines": {
        "0": {
            "agent-state": "running", 
            "dns-name": "10.55.60.94", 
            "instance-id": "19f9983e-5273-487f-a0cf-6879ae422557", 
            "instance-state": "running"
        }, 
        "1": {
            "agent-state": "running", 
            "dns-name": "91.189.93.93", 
            "instance-id": "1532dc9f-7359-493c-b6db-f48eb3539f7c", 
            "instance-state": "running"
        }
    }, 
    "services": {
        "juju-gui": {
            "charm": "cs:~juju-gui/precise/juju-gui-45", 
            "relations": {}, 
            "units": {
                "juju-gui/0": {
                    "agent-state": "install-error", 
                    "machine": 1, 
                    "public-address": "91.189.93.93"
                }
            }
        }
    }
}
Execution failure, unable to continue
error deploying service
Unable to deploy Charm
Collected exit code 1
Final instance state
i-00007ad2 running i-00007ad3 running
+ cat /home/jujugui-merger/exit-status
+ ec=1
+ [ 0 -eq 1 ]
+ wc -l
+ cat /home/jujugui-merger/instance-state
+ [ 2 -lt 2 ]
+ wc -l
+ grep error\|stopped
+ cat /home/jujugui-merger/instance-state
+ [ 0 -gt 0 ]
+ exit 1
Build step 'Execute shell' marked build as failure



More information about the Juju-GUI mailing list