The attempt to merge lp:~axwalk/juju-core/lp1121916-juju-status-filters into lp:juju-core failed. Below is the output from the failed tests. ok launchpad.net/juju-core/agent 1.681s ok launchpad.net/juju-core/agent/tools 25.280s ok launchpad.net/juju-core/bzr 6.573s ok launchpad.net/juju-core/cert 2.508s ---------------------------------------------------------------------- FAIL: meta_test.go:329: MetaSuite.TestMetaHooks meta_test.go:356: c.Assert(hooks, DeepEquals, expectedHooks) ... obtained map[string]bool = map[string]bool{"upgrade-charm":true, "stop":true, "url-relation-joined":true, "url-relation-broken":true, "logging-dir-relation-departed":true, "monitoring-port-relation-changed":true, "cache-relation-changed":true, "config-changed":true, "logging-dir-relation-changed":true, "monitoring-port-relation-joined":true, "monitoring-port-relation-broken":true, "db-relation-departed":true, "cache-relation-joined":true, "cache-relation-broken":true, "start":true, "url-relation-departed":true, "logging-dir-relation-joined":true, "logging-dir-relation-broken":true, "db-relation-changed":true, "install":true, "url-relation-changed":true, "monitoring-port-relation-departed":true, "db-relation-joined":true, "db-relation-broken":true, "cache-relation-departed":true} ... expected map[string]bool = map[string]bool{"start":true, "db-relation-changed":true, "logging-dir-relation-joined":true, "logging-dir-relation-broken":true, "url-relation-departed":true, "install":true, "cache-relation-departed":true, "db-relation-joined":true, "db-relation-broken":true, "url-relation-changed":true, "upgrade-charm":true, "stop":true, "cache-relation-changed":true, "logging-dir-relation-departed":true, "url-relation-joined":true, "url-relation-broken":true, "config-changed":true, "cache-relation-joined":true, "cache-relation-broken":true, "db-relation-departed":true, "logging-dir-relation-changed":true} OOPS: 76 passed, 1 FAILED --- FAIL: Test (0.33 seconds) FAIL FAIL launchpad.net/juju-core/charm 0.538s ? launchpad.net/juju-core/charm/hooks [no test files] ok launchpad.net/juju-core/cloudinit 0.019s ok launchpad.net/juju-core/cmd 0.251s ? launchpad.net/juju-core/cmd/builddb [no test files] ? launchpad.net/juju-core/cmd/charmd [no test files] ? launchpad.net/juju-core/cmd/charmload [no test files] listing available tools found 4 tools found 4 recent tools (version 1.0.0) listing target bucket found 3 tools in target; 4 tools to be copied copying 1.0.0-defaultseries-amd64 from http://127.0.0.1:53845/tools/juju-1.0.0-defaultseries-amd64.tgz copying tools/juju-1.0.0-defaultseries-amd64.tgz downloaded tools/juju-1.0.0-defaultseries-amd64.tgz (0kB), uploading download 0kB, uploading copying 1.0.0-precise-amd64 from http://127.0.0.1:53845/tools/juju-1.0.0-precise-amd64.tgz copying tools/juju-1.0.0-precise-amd64.tgz downloaded tools/juju-1.0.0-precise-amd64.tgz (0kB), uploading download 0kB, uploading copying 1.0.0-quantal-amd64 from http://127.0.0.1:53845/tools/juju-1.0.0-quantal-amd64.tgz copying tools/juju-1.0.0-quantal-amd64.tgz downloaded tools/juju-1.0.0-quantal-amd64.tgz (0kB), uploading download 0kB, uploading copying 1.0.0-quantal-i386 from http://127.0.0.1:53845/tools/juju-1.0.0-quantal-i386.tgz copying tools/juju-1.0.0-quantal-i386.tgz downloaded tools/juju-1.0.0-quantal-i386.tgz (0kB), uploading download 0kB, uploading copied 4 tools ---------------------------------------------------------------------- FAIL: status_test.go:1570: StatusSuite.TestStatusAllFormats [LOG] 21.18474 INFO juju environs/testing: uploading FAKE tools 1.13.1-precise-amd64 [LOG] 21.18487 INFO juju environs: reading tools with major version 1 [LOG] 21.18489 DEBUG juju.agent.tools reading v1.* tools [LOG] 21.18494 INFO juju environs: falling back to public bucket [LOG] 21.18500 DEBUG juju.agent.tools reading v1.* tools [LOG] 21.18506 DEBUG juju.agent.tools found 1.13.1-precise-amd64 [LOG] 21.18507 INFO juju environs: filtering tools by series: precise [LOG] 21.18509 INFO juju environs: filtering tools by version: 1.13.1 [LOG] 21.18512 INFO juju environs/dummy: would pick tools from 1.13.1-precise-amd64 [LOG] 21.23437 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 21.23717 INFO juju state: connection established [LOG] 21.27088 INFO juju state: initializing environment [LOG] 21.29173 INFO juju state/api: listening on "127.0.0.1:47206" [LOG] 21.30959 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 21.31241 INFO juju state: connection established [LOG] 21.31318 INFO juju juju: authorization error while connecting to state server; retrying [LOG] 21.31325 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 21.31635 INFO juju state: connection established [LOG] 21.36435 INFO juju state/api: dialing "wss://127.0.0.1:47206/" [LOG] 21.36899 INFO juju state/api: connection established [LOG] 21.36916 DEBUG juju rpc/jsoncodec: <- {"RequestId":1,"Type":"Admin","Request":"Login","Params":{"AuthTag":"user-admin","Password":"dummy-secret","Nonce":""}} [LOG] 21.36960 DEBUG juju rpc/jsoncodec: -> {"RequestId":1,"Response":{}} test 0: bootstrap and starting a single instance step 0 main.expect{what:"empty state", output:main.M{"environment":"dummyenv", "machines":main.M{}, "services":main.M{}}} expect: empty state format "yaml" [LOG] 21.41478 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 21.41548 DEBUG juju rpc/jsoncodec: <- {"RequestId":2,"Type":"Pinger","Request":"Ping","Params":{}} [LOG] 21.41560 DEBUG juju rpc/jsoncodec: -> {"RequestId":2,"Response":{}} [LOG] 21.41778 INFO juju state: connection established format "json" [LOG] 21.50401 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 21.50687 INFO juju state: connection established step 1 main.addMachine{machineId:"0", cons:constraints.Value{Arch:(*string)(nil), Container:(*instance.ContainerType)(nil), CpuCores:(*uint64)(nil), CpuPower:(*uint64)(nil), Mem:(*uint64)(nil)}, job:2} step 2 main.expect{what:"simulate juju bootstrap by adding machine/0 to the state", output:main.M{"environment":"dummyenv", "machines":main.M{"0":main.M{"instance-id":"pending", "series":"series"}}, "services":main.M{}}} expect: simulate juju bootstrap by adding machine/0 to the state format "yaml" [LOG] 21.64484 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 21.64730 INFO juju state: connection established format "json" [LOG] 21.74215 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 21.74461 INFO juju state: connection established step 3 main.startAliveMachine{machineId:"0"} [LOG] 21.80279 INFO juju environs/dummy: dummy startinstance, machine 0 [LOG] 21.80284 INFO juju environs: reading tools with major version 1 [LOG] 21.80285 DEBUG juju.agent.tools reading v1.* tools [LOG] 21.80287 INFO juju environs: falling back to public bucket [LOG] 21.80288 DEBUG juju.agent.tools reading v1.* tools [LOG] 21.80291 DEBUG juju.agent.tools found 1.13.1-precise-amd64 [LOG] 21.80293 INFO juju environs: filtering tools by version: 1.13.1 [LOG] 21.80294 INFO juju environs: filtering tools by series: precise [LOG] 21.80296 INFO juju environs/dummy: would pick tools from 1.13.1-precise-amd64 step 4 main.expect{what:"simulate the PA starting an instance in response to the state change", output:main.M{"environment":"dummyenv", "machines":main.M{"0":main.M{"agent-state":"pending", "dns-name":"dummyenv-0.dns", "instance-id":"dummyenv-0", "series":"series", "hardware":"arch=amd64 cpu-cores=1 mem=1024M"}}, "services":main.M{}}} expect: simulate the PA starting an instance in response to the state change format "yaml" [LOG] 21.86926 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 21.87337 INFO juju state: connection established format "json" [LOG] 21.94633 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 21.94896 INFO juju state: connection established step 5 main.setMachineStatus{machineId:"0", status:"started", statusInfo:""} step 6 main.expect{what:"simulate the MA started and set the machine status", output:main.M{"environment":"dummyenv", "machines":main.M{"0":main.M{"agent-state":"started", "dns-name":"dummyenv-0.dns", "instance-id":"dummyenv-0", "series":"series", "hardware":"arch=amd64 cpu-cores=1 mem=1024M"}}, "services":main.M{}}} expect: simulate the MA started and set the machine status format "yaml" [LOG] 22.04733 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 22.05011 INFO juju state: connection established format "json" [LOG] 22.15472 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 22.15760 INFO juju state: connection established step 7 main.setTools{machineId:"0", tools:(*tools.Tools)(0xc200272730)} step 8 main.expect{what:"simulate the MA setting the version", output:main.M{"environment":"dummyenv", "machines":main.M{"0":main.M{"dns-name":"dummyenv-0.dns", "instance-id":"dummyenv-0", "agent-version":"1.2.3", "agent-state":"started", "series":"series", "hardware":"arch=amd64 cpu-cores=1 mem=1024M"}}, "services":main.M{}}} expect: simulate the MA setting the version format "yaml" [LOG] 22.23430 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 22.23710 INFO juju state: connection established format "json" [LOG] 22.33185 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 22.33451 INFO juju state: connection established [LOG] 22.39663 INFO juju environs/dummy: reset environment [LOG] 22.39694 DEBUG juju rpc/jsoncodec: <- error: read tcp 127.0.0.1:34327: use of closed network connection (closing true) [LOG] 22.46732 INFO juju environs/testing: uploading FAKE tools 1.13.1-precise-amd64 [LOG] 22.46739 INFO juju environs: reading tools with major version 1 [LOG] 22.46741 DEBUG juju.agent.tools reading v1.* tools [LOG] 22.46742 INFO juju environs: falling back to public bucket [LOG] 22.46743 DEBUG juju.agent.tools reading v1.* tools [LOG] 22.46746 DEBUG juju.agent.tools found 1.13.1-precise-amd64 [LOG] 22.46747 INFO juju environs: filtering tools by series: precise [LOG] 22.46749 INFO juju environs: filtering tools by version: 1.13.1 [LOG] 22.46751 INFO juju environs/dummy: would pick tools from 1.13.1-precise-amd64 [LOG] 22.48774 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 22.50817 INFO juju state: connection established [LOG] 22.53072 INFO juju state: initializing environment [LOG] 22.55142 INFO juju state/api: listening on "127.0.0.1:44760" [LOG] 22.56924 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 22.57177 INFO juju state: connection established [LOG] 22.59079 INFO juju juju: authorization error while connecting to state server; retrying [LOG] 22.59103 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 22.60062 INFO juju state: connection established [LOG] 22.62988 INFO juju state/api: dialing "wss://127.0.0.1:44760/" [LOG] 22.63295 INFO juju state/api: connection established [LOG] 22.63310 DEBUG juju rpc/jsoncodec: <- {"RequestId":1,"Type":"Admin","Request":"Login","Params":{"AuthTag":"user-admin","Password":"dummy-secret","Nonce":""}} [LOG] 22.63345 DEBUG juju rpc/jsoncodec: -> {"RequestId":1,"Response":{}} test 1: instance with different hardware characteristics step 0 main.addMachine{machineId:"0", cons:constraints.Value{Arch:(*string)(nil), Container:(*instance.ContainerType)(nil), CpuCores:(*uint64)(0xc2003b8438), CpuPower:(*uint64)(nil), Mem:(*uint64)(0xc2003b8440)}, job:2} [LOG] 22.63378 DEBUG juju rpc/jsoncodec: <- {"RequestId":2,"Type":"Pinger","Request":"Ping","Params":{}} [LOG] 22.63386 DEBUG juju rpc/jsoncodec: -> {"RequestId":2,"Response":{}} step 1 main.startAliveMachine{machineId:"0"} [LOG] 22.67317 INFO juju environs/dummy: dummy startinstance, machine 0 [LOG] 22.67322 INFO juju environs: reading tools with major version 1 [LOG] 22.67323 DEBUG juju.agent.tools reading v1.* tools [LOG] 22.67325 INFO juju environs: falling back to public bucket [LOG] 22.67326 DEBUG juju.agent.tools reading v1.* tools [LOG] 22.67329 DEBUG juju.agent.tools found 1.13.1-precise-amd64 [LOG] 22.67332 INFO juju environs: filtering tools by version: 1.13.1 [LOG] 22.67333 INFO juju environs: filtering tools by series: precise [LOG] 22.67335 INFO juju environs/dummy: would pick tools from 1.13.1-precise-amd64 step 2 main.setMachineStatus{machineId:"0", status:"started", statusInfo:""} step 3 main.expect{what:"machine 0 has specific hardware characteristics", output:main.M{"environment":"dummyenv", "machines":main.M{"0":main.M{"agent-state":"started", "dns-name":"dummyenv-0.dns", "instance-id":"dummyenv-0", "series":"series", "hardware":"arch=amd64 cpu-cores=2 mem=8192M"}}, "services":main.M{}}} expect: machine 0 has specific hardware characteristics format "yaml" [LOG] 22.73076 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 22.73341 INFO juju state: connection established format "json" [LOG] 22.84050 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 22.84320 INFO juju state: connection established [LOG] 22.89036 INFO juju environs/dummy: reset environment [LOG] 22.89051 DEBUG juju rpc/jsoncodec: <- error: read tcp 127.0.0.1:55998: use of closed network connection (closing true) [LOG] 22.95474 INFO juju environs/testing: uploading FAKE tools 1.13.1-precise-amd64 [LOG] 22.95485 INFO juju environs: reading tools with major version 1 [LOG] 22.95485 DEBUG juju.agent.tools reading v1.* tools [LOG] 22.95485 INFO juju environs: falling back to public bucket [LOG] 22.95488 DEBUG juju.agent.tools reading v1.* tools [LOG] 22.95490 DEBUG juju.agent.tools found 1.13.1-precise-amd64 [LOG] 22.95492 INFO juju environs: filtering tools by series: precise [LOG] 22.95494 INFO juju environs: filtering tools by version: 1.13.1 [LOG] 22.95496 INFO juju environs/dummy: would pick tools from 1.13.1-precise-amd64 [LOG] 22.97496 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 22.99126 INFO juju state: connection established [LOG] 23.01091 INFO juju state: initializing environment [LOG] 23.03189 INFO juju state/api: listening on "127.0.0.1:42951" [LOG] 23.04948 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 23.05375 INFO juju state: connection established [LOG] 23.05432 INFO juju juju: authorization error while connecting to state server; retrying [LOG] 23.05444 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 23.05751 INFO juju state: connection established [LOG] 23.10606 INFO juju state/api: dialing "wss://127.0.0.1:42951/" [LOG] 23.10980 INFO juju state/api: connection established [LOG] 23.11001 DEBUG juju rpc/jsoncodec: <- {"RequestId":1,"Type":"Admin","Request":"Login","Params":{"AuthTag":"user-admin","Password":"dummy-secret","Nonce":""}} [LOG] 23.11047 DEBUG juju rpc/jsoncodec: -> {"RequestId":1,"Response":{}} test 2: test pending and missing machines step 0 main.addMachine{machineId:"0", cons:constraints.Value{Arch:(*string)(nil), Container:(*instance.ContainerType)(nil), CpuCores:(*uint64)(nil), CpuPower:(*uint64)(nil), Mem:(*uint64)(nil)}, job:2} [LOG] 23.11118 DEBUG juju rpc/jsoncodec: <- {"RequestId":2,"Type":"Pinger","Request":"Ping","Params":{}} [LOG] 23.11132 DEBUG juju rpc/jsoncodec: -> {"RequestId":2,"Response":{}} step 1 main.expect{what:"machine 0 reports pending", output:main.M{"environment":"dummyenv", "machines":main.M{"0":main.M{"instance-id":"pending", "series":"series"}}, "services":main.M{}}} expect: machine 0 reports pending format "yaml" [LOG] 23.18826 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 23.19104 INFO juju state: connection established format "json" [LOG] 23.28263 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 23.29987 INFO juju state: connection established step 2 main.startMissingMachine{machineId:"0"} [LOG] 23.33993 INFO juju environs/dummy: dummy startinstance, machine 0 [LOG] 23.33997 INFO juju environs: reading tools with major version 1 [LOG] 23.33998 DEBUG juju.agent.tools reading v1.* tools [LOG] 23.34000 INFO juju environs: falling back to public bucket [LOG] 23.34001 DEBUG juju.agent.tools reading v1.* tools [LOG] 23.34003 DEBUG juju.agent.tools found 1.13.1-precise-amd64 [LOG] 23.34006 INFO juju environs: filtering tools by version: 1.13.1 [LOG] 23.34007 INFO juju environs: filtering tools by series: precise [LOG] 23.34009 INFO juju environs/dummy: would pick tools from 1.13.1-precise-amd64 step 3 main.expect{what:"machine 0 reports missing", output:main.M{"environment":"dummyenv", "machines":main.M{"0":main.M{"instance-state":"missing", "instance-id":"i-missing", "agent-state":"pending", "series":"series", "hardware":"arch=amd64 cpu-cores=1 mem=1024M"}}, "services":main.M{}}} expect: machine 0 reports missing format "yaml" [LOG] 23.39447 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 23.39707 INFO juju state: connection established format "json" [LOG] 23.51135 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 23.51407 INFO juju state: connection established [LOG] 23.57483 INFO juju environs/dummy: reset environment [LOG] 23.57499 DEBUG juju rpc/jsoncodec: <- error: read tcp 127.0.0.1:47170: use of closed network connection (closing true) [LOG] 23.63003 INFO juju environs/testing: uploading FAKE tools 1.13.1-precise-amd64 [LOG] 23.63013 INFO juju environs: reading tools with major version 1 [LOG] 23.63014 DEBUG juju.agent.tools reading v1.* tools [LOG] 23.63015 INFO juju environs: falling back to public bucket [LOG] 23.63016 DEBUG juju.agent.tools reading v1.* tools [LOG] 23.63019 DEBUG juju.agent.tools found 1.13.1-precise-amd64 [LOG] 23.63021 INFO juju environs: filtering tools by series: precise [LOG] 23.63022 INFO juju environs: filtering tools by version: 1.13.1 [LOG] 23.63024 INFO juju environs/dummy: would pick tools from 1.13.1-precise-amd64 [LOG] 23.65028 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 23.67151 INFO juju state: connection established [LOG] 23.68985 INFO juju state: initializing environment [LOG] 23.72696 INFO juju state/api: listening on "127.0.0.1:36484" [LOG] 23.74677 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 23.75993 INFO juju state: connection established [LOG] 23.77828 INFO juju juju: authorization error while connecting to state server; retrying [LOG] 23.77835 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 23.78484 INFO juju state: connection established [LOG] 23.83744 INFO juju state/api: dialing "wss://127.0.0.1:36484/" [LOG] 23.84060 INFO juju state/api: connection established [LOG] 23.84077 DEBUG juju rpc/jsoncodec: <- {"RequestId":1,"Type":"Admin","Request":"Login","Params":{"AuthTag":"user-admin","Password":"dummy-secret","Nonce":""}} [LOG] 23.84119 DEBUG juju rpc/jsoncodec: -> {"RequestId":1,"Response":{}} test 3: add two services and expose one, then add 2 more machines and some units step 0 main.addMachine{machineId:"0", cons:constraints.Value{Arch:(*string)(nil), Container:(*instance.ContainerType)(nil), CpuCores:(*uint64)(nil), CpuPower:(*uint64)(nil), Mem:(*uint64)(nil)}, job:2} [LOG] 23.84142 DEBUG juju rpc/jsoncodec: <- {"RequestId":2,"Type":"Pinger","Request":"Ping","Params":{}} [LOG] 23.84150 DEBUG juju rpc/jsoncodec: -> {"RequestId":2,"Response":{}} step 1 main.startAliveMachine{machineId:"0"} [LOG] 23.86501 INFO juju environs/dummy: dummy startinstance, machine 0 [LOG] 23.86506 INFO juju environs: reading tools with major version 1 [LOG] 23.86508 DEBUG juju.agent.tools reading v1.* tools [LOG] 23.86510 INFO juju environs: falling back to public bucket [LOG] 23.86510 DEBUG juju.agent.tools reading v1.* tools [LOG] 23.86513 DEBUG juju.agent.tools found 1.13.1-precise-amd64 [LOG] 23.86517 INFO juju environs: filtering tools by version: 1.13.1 [LOG] 23.86519 INFO juju environs: filtering tools by series: precise [LOG] 23.86520 INFO juju environs/dummy: would pick tools from 1.13.1-precise-amd64 step 2 main.setMachineStatus{machineId:"0", status:"started", statusInfo:""} step 3 main.addCharm{name:"dummy"} step 4 main.addService{name:"dummy-service", charm:"dummy"} step 5 main.addService{name:"exposed-service", charm:"dummy"} step 6 main.expect{what:"no services exposed yet", output:main.M{"environment":"dummyenv", "machines":main.M{"0":main.M{"agent-state":"started", "dns-name":"dummyenv-0.dns", "instance-id":"dummyenv-0", "series":"series", "hardware":"arch=amd64 cpu-cores=1 mem=1024M"}}, "services":main.M{"dummy-service":main.M{"charm":"local:series/dummy-1", "exposed":false}, "exposed-service":main.M{"charm":"local:series/dummy-1", "exposed":false}}}} expect: no services exposed yet format "yaml" [LOG] 23.97364 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 23.98304 INFO juju state: connection established format "json" [LOG] 24.07567 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 24.09897 INFO juju state: connection established step 7 main.setServiceExposed{name:"exposed-service", exposed:true} step 8 main.expect{what:"one exposed service", output:main.M{"environment":"dummyenv", "machines":main.M{"0":main.M{"agent-state":"started", "dns-name":"dummyenv-0.dns", "instance-id":"dummyenv-0", "series":"series", "hardware":"arch=amd64 cpu-cores=1 mem=1024M"}}, "services":main.M{"dummy-service":main.M{"charm":"local:series/dummy-1", "exposed":false}, "exposed-service":main.M{"charm":"local:series/dummy-1", "exposed":true}}}} expect: one exposed service format "yaml" [LOG] 24.17510 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 24.17782 INFO juju state: connection established format "json" [LOG] 24.27898 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 24.30509 INFO juju state: connection established step 9 main.addMachine{machineId:"1", cons:constraints.Value{Arch:(*string)(nil), Container:(*instance.ContainerType)(nil), CpuCores:(*uint64)(nil), CpuPower:(*uint64)(nil), Mem:(*uint64)(nil)}, job:1} step 10 main.startAliveMachine{machineId:"1"} [LOG] 24.37608 INFO juju environs/dummy: dummy startinstance, machine 1 [LOG] 24.37613 INFO juju environs: reading tools with major version 1 [LOG] 24.37614 DEBUG juju.agent.tools reading v1.* tools [LOG] 24.37616 INFO juju environs: falling back to public bucket [LOG] 24.37617 DEBUG juju.agent.tools reading v1.* tools [LOG] 24.37621 DEBUG juju.agent.tools found 1.13.1-precise-amd64 [LOG] 24.37622 INFO juju environs: filtering tools by version: 1.13.1 [LOG] 24.37623 INFO juju environs: filtering tools by series: precise [LOG] 24.37626 INFO juju environs/dummy: would pick tools from 1.13.1-precise-amd64 step 11 main.setMachineStatus{machineId:"1", status:"started", statusInfo:""} step 12 main.addMachine{machineId:"2", cons:constraints.Value{Arch:(*string)(nil), Container:(*instance.ContainerType)(nil), CpuCores:(*uint64)(nil), CpuPower:(*uint64)(nil), Mem:(*uint64)(nil)}, job:1} step 13 main.startAliveMachine{machineId:"2"} [LOG] 24.40019 INFO juju environs/dummy: dummy startinstance, machine 2 [LOG] 24.40023 INFO juju environs: reading tools with major version 1 [LOG] 24.40024 DEBUG juju.agent.tools reading v1.* tools [LOG] 24.40026 INFO juju environs: falling back to public bucket [LOG] 24.40027 DEBUG juju.agent.tools reading v1.* tools [LOG] 24.40031 DEBUG juju.agent.tools found 1.13.1-precise-amd64 [LOG] 24.40032 INFO juju environs: filtering tools by version: 1.13.1 [LOG] 24.40032 INFO juju environs: filtering tools by series: precise [LOG] 24.40035 INFO juju environs/dummy: would pick tools from 1.13.1-precise-amd64 step 14 main.setMachineStatus{machineId:"2", status:"started", statusInfo:""} step 15 main.expect{what:"two more machines added", output:main.M{"environment":"dummyenv", "machines":main.M{"0":main.M{"agent-state":"started", "dns-name":"dummyenv-0.dns", "instance-id":"dummyenv-0", "series":"series", "hardware":"arch=amd64 cpu-cores=1 mem=1024M"}, "1":main.M{"agent-state":"started", "dns-name":"dummyenv-1.dns", "instance-id":"dummyenv-1", "series":"series", "hardware":"arch=amd64 cpu-cores=1 mem=1024M"}, "2":main.M{"agent-state":"started", "dns-name":"dummyenv-2.dns", "instance-id":"dummyenv-2", "series":"series", "hardware":"arch=amd64 cpu-cores=1 mem=1024M"}}, "services":main.M{"dummy-service":main.M{"charm":"local:series/dummy-1", "exposed":false}, "exposed-service":main.M{"charm":"local:series/dummy-1", "exposed":true}}}} expect: two more machines added format "yaml" [LOG] 24.45491 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 24.46185 INFO juju state: connection established format "json" [LOG] 24.53749 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 24.55467 INFO juju state: connection established step 16 main.addUnit{serviceName:"dummy-service", machineId:"1"} step 17 main.addAliveUnit{serviceName:"exposed-service", machineId:"2"} step 18 main.setUnitStatus{unitName:"exposed-service/0", status:"error", statusInfo:"You Require More Vespene Gas"} step 19 main.openUnitPort{unitName:"exposed-service/0", protocol:"udp", number:10} step 20 main.openUnitPort{unitName:"exposed-service/0", protocol:"udp", number:2} step 21 main.openUnitPort{unitName:"exposed-service/0", protocol:"tcp", number:3} step 22 main.openUnitPort{unitName:"exposed-service/0", protocol:"tcp", number:2} step 23 main.setUnitStatus{unitName:"dummy-service/0", status:"started", statusInfo:""} step 24 main.expect{what:"add two units, one alive (in error state), one down", output:main.M{"environment":"dummyenv", "machines":main.M{"0":main.M{"agent-state":"started", "dns-name":"dummyenv-0.dns", "instance-id":"dummyenv-0", "series":"series", "hardware":"arch=amd64 cpu-cores=1 mem=1024M"}, "1":main.M{"agent-state":"started", "dns-name":"dummyenv-1.dns", "instance-id":"dummyenv-1", "series":"series", "hardware":"arch=amd64 cpu-cores=1 mem=1024M"}, "2":main.M{"agent-state":"started", "dns-name":"dummyenv-2.dns", "instance-id":"dummyenv-2", "series":"series", "hardware":"arch=amd64 cpu-cores=1 mem=1024M"}}, "services":main.M{"exposed-service":main.M{"charm":"local:series/dummy-1", "exposed":true, "units":main.M{"exposed-service/0":main.M{"machine":"2", "agent-state":"error", "agent-state-info":"You Require More Vespene Gas", "open-ports":main.L{"2/tcp", "3/tcp", "2/udp", "10/udp"}}}}, "dummy-service":main.M{"charm":"local:series/dummy-1", "exposed":false, "units":main.M{"dummy-service/0":main.M{"machine":"1", "agent-state":"down", "agent-state-info":"(started)"}}}}}} expect: add two units, one alive (in error state), one down format "yaml" [LOG] 24.71906 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 24.72375 INFO juju state: connection established format "json" [LOG] 24.81791 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 24.83423 INFO juju state: connection established step 25 main.addMachine{machineId:"3", cons:constraints.Value{Arch:(*string)(nil), Container:(*instance.ContainerType)(nil), CpuCores:(*uint64)(nil), CpuPower:(*uint64)(nil), Mem:(*uint64)(nil)}, job:1} step 26 main.startMachine{machineId:"3"} [LOG] 24.89322 INFO juju environs/dummy: dummy startinstance, machine 3 [LOG] 24.89327 INFO juju environs: reading tools with major version 1 [LOG] 24.89328 DEBUG juju.agent.tools reading v1.* tools [LOG] 24.89330 INFO juju environs: falling back to public bucket [LOG] 24.89332 DEBUG juju.agent.tools reading v1.* tools [LOG] 24.89335 DEBUG juju.agent.tools found 1.13.1-precise-amd64 [LOG] 24.89338 INFO juju environs: filtering tools by version: 1.13.1 [LOG] 24.89339 INFO juju environs: filtering tools by series: precise [LOG] 24.89341 INFO juju environs/dummy: would pick tools from 1.13.1-precise-amd64 step 27 main.setMachineStatus{machineId:"3", status:"stopped", statusInfo:"Really?"} step 28 main.addMachine{machineId:"4", cons:constraints.Value{Arch:(*string)(nil), Container:(*instance.ContainerType)(nil), CpuCores:(*uint64)(nil), CpuPower:(*uint64)(nil), Mem:(*uint64)(nil)}, job:1} step 29 main.startAliveMachine{machineId:"4"} [LOG] 24.91870 INFO juju environs/dummy: dummy startinstance, machine 4 [LOG] 24.91875 INFO juju environs: reading tools with major version 1 [LOG] 24.91876 DEBUG juju.agent.tools reading v1.* tools [LOG] 24.91878 INFO juju environs: falling back to public bucket [LOG] 24.91879 DEBUG juju.agent.tools reading v1.* tools [LOG] 24.91883 DEBUG juju.agent.tools found 1.13.1-precise-amd64 [LOG] 24.91884 INFO juju environs: filtering tools by version: 1.13.1 [LOG] 24.91885 INFO juju environs: filtering tools by series: precise [LOG] 24.91887 INFO juju environs/dummy: would pick tools from 1.13.1-precise-amd64 step 30 main.setMachineStatus{machineId:"4", status:"error", statusInfo:"Beware the red toys"} step 31 main.ensureDyingUnit{unitName:"dummy-service/0"} step 32 main.addMachine{machineId:"5", cons:constraints.Value{Arch:(*string)(nil), Container:(*instance.ContainerType)(nil), CpuCores:(*uint64)(nil), CpuPower:(*uint64)(nil), Mem:(*uint64)(nil)}, job:1} step 33 main.ensureDeadMachine{machineId:"5"} step 34 main.expect{what:"add three more machine, one with a dead agent, one in error state and one dead itself; also one dying unit", output:main.M{"environment":"dummyenv", "machines":main.M{"0":main.M{"agent-state":"started", "dns-name":"dummyenv-0.dns", "instance-id":"dummyenv-0", "series":"series", "hardware":"arch=amd64 cpu-cores=1 mem=1024M"}, "1":main.M{"agent-state":"started", "dns-name":"dummyenv-1.dns", "instance-id":"dummyenv-1", "series":"series", "hardware":"arch=amd64 cpu-cores=1 mem=1024M"}, "2":main.M{"agent-state":"started", "dns-name":"dummyenv-2.dns", "instance-id":"dummyenv-2", "series":"series", "hardware":"arch=amd64 cpu-cores=1 mem=1024M"}, "3":main.M{"dns-name":"dummyenv-3.dns", "instance-id":"dummyenv-3", "agent-state":"down", "agent-state-info":"(stopped: Really?)", "series":"series", "hardware":"arch=amd64 cpu-cores=1 mem=1024M"}, "4":main.M{"dns-name":"dummyenv-4.dns", "instance-id":"dummyenv-4", "agent-state":"error", "agent-state-info":"Beware the red toys", "series":"series", "hardware":"arch=amd64 cpu-cores=1 mem=1024M"}, "5":main.M{"life":"dead", "instance-id":"pending", "series":"series"}}, "services":main.M{"exposed-service":main.M{"charm":"local:series/dummy-1", "exposed":true, "units":main.M{"exposed-service/0":main.M{"machine":"2", "agent-state":"error", "agent-state-info":"You Require More Vespene Gas", "open-ports":main.L{"2/tcp", "3/tcp", "2/udp", "10/udp"}}}}, "dummy-service":main.M{"charm":"local:series/dummy-1", "exposed":false, "units":main.M{"dummy-service/0":main.M{"machine":"1", "life":"dying", "agent-state":"down", "agent-state-info":"(started)"}}}}}} expect: add three more machine, one with a dead agent, one in error state and one dead itself; also one dying unit format "yaml" [LOG] 25.01064 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 25.01490 INFO juju state: connection established format "json" [LOG] 25.09303 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 25.09597 INFO juju state: connection established step 35 main.scopedExpect{what:"scope status on dummy-service/0 unit", scope:[]string{"dummy-service/0"}, output:main.M{"machines":main.M{"1":main.M{"agent-state":"started", "dns-name":"dummyenv-1.dns", "instance-id":"dummyenv-1", "series":"series", "hardware":"arch=amd64 cpu-cores=1 mem=1024M"}}, "services":main.M{"dummy-service":main.M{"charm":"local:series/dummy-1", "exposed":false, "units":main.M{"dummy-service/0":main.M{"machine":"1", "life":"dying", "agent-state":"down", "agent-state-info":"(started)"}}}}}} expect: scope status on dummy-service/0 unit dummy-service/0 format "yaml" [LOG] 25.19234 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 25.19539 INFO juju state: connection established status_test.go:1578: func() { // Prepare context and run all steps to setup. ctx := s.newContext() defer s.resetContext(c, ctx) ctx.run(c, t.steps) }() status_test.go:1562: c.Assert(actual, DeepEquals, expected) ... obtained main.M = main.M{"environment":"dummyenv", "machines":map[interface {}]interface {}{"1":map[interface {}]interface {}{"agent-state":"started", "dns-name":"dummyenv-1.dns", "instance-id":"dummyenv-1", "series":"series", "hardware":"arch=amd64 cpu-cores=1 mem=1024M"}}, "services":map[interface {}]interface {}{"dummy-service":map[interface {}]interface {}{"charm":"local:series/dummy-1", "exposed":false, "units":map[interface {}]interface {}{"dummy-service/0":map[interface {}]interface {}{"agent-state":"down", "agent-state-info":"(started)", "life":"dying", "machine":"1"}}}}} ... expected main.M = main.M{"machines":map[interface {}]interface {}{"1":map[interface {}]interface {}{"agent-state":"started", "dns-name":"dummyenv-1.dns", "hardware":"arch=amd64 cpu-cores=1 mem=1024M", "instance-id":"dummyenv-1", "series":"series"}}, "services":map[interface {}]interface {}{"dummy-service":map[interface {}]interface {}{"charm":"local:series/dummy-1", "exposed":false, "units":map[interface {}]interface {}{"dummy-service/0":map[interface {}]interface {}{"agent-state":"down", "agent-state-info":"(started)", "life":"dying", "machine":"1"}}}}} [LOG] 25.26822 INFO juju environs/dummy: reset environment [LOG] 25.26840 DEBUG juju rpc/jsoncodec: <- error: read tcp 127.0.0.1:43720: use of closed network connection (closing true) [LOG] 25.32973 INFO juju environs/testing: uploading FAKE tools 1.13.1-precise-amd64 [LOG] 25.32984 INFO juju environs: reading tools with major version 1 [LOG] 25.32986 DEBUG juju.agent.tools reading v1.* tools [LOG] 25.32987 INFO juju environs: falling back to public bucket [LOG] 25.32988 DEBUG juju.agent.tools reading v1.* tools [LOG] 25.32990 DEBUG juju.agent.tools found 1.13.1-precise-amd64 [LOG] 25.32992 INFO juju environs: filtering tools by series: precise [LOG] 25.32994 INFO juju environs: filtering tools by version: 1.13.1 [LOG] 25.32995 INFO juju environs/dummy: would pick tools from 1.13.1-precise-amd64 [LOG] 25.34742 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 25.37374 INFO juju state: connection established [LOG] 25.38739 INFO juju state: initializing environment [LOG] 25.40876 INFO juju state/api: listening on "127.0.0.1:51537" [LOG] 25.42995 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 25.43497 INFO juju state: connection established [LOG] 25.45447 INFO juju juju: authorization error while connecting to state server; retrying [LOG] 25.45461 INFO juju state: opening state; mongo addresses: ["localhost:51117"]; entity "" [LOG] 25.46705 INFO juju state: connection established [LOG] 25.51965 INFO juju state/api: dialing "wss://127.0.0.1:51537/" [LOG] 25.52270 INFO juju state/api: connection established [LOG] 25.52282 DEBUG juju rpc/jsoncodec: <- {"RequestId":1,"Type":"Admin","Request":"Login","Params":{"AuthTag":"user-admin","Password":"dummy-secret","Nonce":""}} [LOG] 25.52325 DEBUG juju rpc/jsoncodec: -> {"RequestId":1,"Response":{}} [LOG] 25.52374 DEBUG juju rpc/jsoncodec: <- {"RequestId":2,"Type":"Pinger","Request":"Ping","Params":{}} [LOG] 25.52387 DEBUG juju rpc/jsoncodec: -> {"RequestId":2,"Response":{}} [LOG] 25.52460 INFO juju environs/dummy: reset environment [LOG] 25.52489 DEBUG juju rpc/jsoncodec: <- error: read tcp 127.0.0.1:41936: use of closed network connection (closing true) OOPS: 149 passed, 1 FAILED --- FAIL: TestPackage (100.47 seconds) FAIL FAIL launchpad.net/juju-core/cmd/juju 100.709s ok launchpad.net/juju-core/cmd/jujud 50.975s ok launchpad.net/juju-core/cmd/plugins/juju-metadata 0.806s ok launchpad.net/juju-core/constraints 0.040s ok launchpad.net/juju-core/container/lxc 0.361s ? launchpad.net/juju-core/container/lxc/mock [no test files] ok launchpad.net/juju-core/downloader 5.291s ok launchpad.net/juju-core/environs 1.193s ? launchpad.net/juju-core/environs/all [no test files] ok launchpad.net/juju-core/environs/azure 3.811s ok launchpad.net/juju-core/environs/cloudinit 0.420s ok launchpad.net/juju-core/environs/config 0.781s ok launchpad.net/juju-core/environs/dummy 15.927s ok launchpad.net/juju-core/environs/ec2 181.883s ok launchpad.net/juju-core/environs/imagemetadata 0.247s ok launchpad.net/juju-core/environs/instances 0.218s ok launchpad.net/juju-core/environs/jujutest 0.278s ok launchpad.net/juju-core/environs/local 1.211s ? launchpad.net/juju-core/environs/local/storage [no test files] ok launchpad.net/juju-core/environs/localstorage 0.262s ok launchpad.net/juju-core/environs/maas 2.063s ok launchpad.net/juju-core/environs/openstack 3.976s ? launchpad.net/juju-core/environs/provider [no test files] ok launchpad.net/juju-core/environs/sync 0.254s ok launchpad.net/juju-core/environs/testing 0.012s ? launchpad.net/juju-core/errors [no test files] ok launchpad.net/juju-core/instance 0.023s ok launchpad.net/juju-core/juju 11.911s ok launchpad.net/juju-core/juju/osenv 0.193s ? launchpad.net/juju-core/juju/testing [no test files] ok launchpad.net/juju-core/log 0.018s ok launchpad.net/juju-core/log/syslog 0.023s ok launchpad.net/juju-core/names 0.029s ok launchpad.net/juju-core/rpc 0.337s ok launchpad.net/juju-core/rpc/jsoncodec 0.235s ok launchpad.net/juju-core/schema 0.025s ---------------------------------------------------------------------- FAIL: service_test.go:620: ServiceSuite.TestWordpressEndpoints [LOG] 82.21595 INFO juju state: opening state; mongo addresses: ["localhost:36794"]; entity "" [LOG] 82.22308 INFO juju state: connection established [LOG] 82.25239 INFO juju state: initializing environment service_test.go:684: c.Assert(eps, DeepEquals, []state.Endpoint{cacheEP, dbEP, jiEP, ldEP, urlEP}) ... obtained []state.Endpoint = []state.Endpoint{state.Endpoint{ServiceName:"wordpress", Relation:charm.Relation{Name:"cache", Role:"requirer", Interface:"varnish", Optional:true, Limit:2, Scope:"global"}}, state.Endpoint{ServiceName:"wordpress", Relation:charm.Relation{Name:"db", Role:"requirer", Interface:"mysql", Optional:false, Limit:1, Scope:"global"}}, state.Endpoint{ServiceName:"wordpress", Relation:charm.Relation{Name:"juju-info", Role:"provider", Interface:"juju-info", Optional:false, Limit:0, Scope:"global"}}, state.Endpoint{ServiceName:"wordpress", Relation:charm.Relation{Name:"logging-dir", Role:"provider", Interface:"logging", Optional:false, Limit:0, Scope:"container"}}, state.Endpoint{ServiceName:"wordpress", Relation:charm.Relation{Name:"monitoring-port", Role:"provider", Interface:"monitoring", Optional:false, Limit:0, Scope:"container"}}, state.Endpoint{ServiceName:"wordpress", Relation:charm.Relation{Name:"url", Role:"provider", Interface:"http", Optional:false, Limit:0, Scope:"global"}}} ... expected []state.Endpoint = []state.Endpoint{state.Endpoint{ServiceName:"wordpress", Relation:charm.Relation{Name:"cache", Role:"requirer", Interface:"varnish", Optional:true, Limit:2, Scope:"global"}}, state.Endpoint{ServiceName:"wordpress", Relation:charm.Relation{Name:"db", Role:"requirer", Interface:"mysql", Optional:false, Limit:1, Scope:"global"}}, state.Endpoint{ServiceName:"wordpress", Relation:charm.Relation{Name:"juju-info", Role:"provider", Interface:"juju-info", Optional:false, Limit:0, Scope:"global"}}, state.Endpoint{ServiceName:"wordpress", Relation:charm.Relation{Name:"logging-dir", Role:"provider", Interface:"logging", Optional:false, Limit:0, Scope:"container"}}, state.Endpoint{ServiceName:"wordpress", Relation:charm.Relation{Name:"url", Role:"provider", Interface:"http", Optional:false, Limit:0, Scope:"global"}}} OOPS: 308 passed, 1 FAILED --- FAIL: TestPackage (66.82 seconds) FAIL FAIL launchpad.net/juju-core/state 67.067s ? launchpad.net/juju-core/state/api [no test files] ok launchpad.net/juju-core/state/api/agent 1.790s ? launchpad.net/juju-core/state/api/common [no test files] ok launchpad.net/juju-core/state/api/deployer 5.289s ok launchpad.net/juju-core/state/api/machiner 2.498s ok launchpad.net/juju-core/state/api/params 0.030s ok launchpad.net/juju-core/state/api/upgrader 2.912s ok launchpad.net/juju-core/state/api/watcher 2.933s ok launchpad.net/juju-core/state/apiserver 2.532s ok launchpad.net/juju-core/state/apiserver/agent 2.146s ok launchpad.net/juju-core/state/apiserver/client 11.622s ok launchpad.net/juju-core/state/apiserver/common 0.037s ok launchpad.net/juju-core/state/apiserver/deployer 3.910s ok launchpad.net/juju-core/state/apiserver/machine 3.094s ? launchpad.net/juju-core/state/apiserver/testing [no test files] ok launchpad.net/juju-core/state/apiserver/upgrader 3.366s ok launchpad.net/juju-core/state/multiwatcher 0.917s ok launchpad.net/juju-core/state/presence 6.381s ok launchpad.net/juju-core/state/statecmd 5.995s ? launchpad.net/juju-core/state/testing [no test files] ok launchpad.net/juju-core/state/watcher 5.279s ok launchpad.net/juju-core/store 17.938s ok launchpad.net/juju-core/testing 1.353s ok launchpad.net/juju-core/testing/checkers 0.016s ok launchpad.net/juju-core/thirdparty/pbkdf2 0.139s ok launchpad.net/juju-core/upstart 0.119s ok launchpad.net/juju-core/utils 1.014s ok launchpad.net/juju-core/utils/fslock 0.921s ok launchpad.net/juju-core/utils/set 0.021s ok launchpad.net/juju-core/version 0.061s ok launchpad.net/juju-core/worker 1.493s ok launchpad.net/juju-core/worker/cleaner 1.168s ok launchpad.net/juju-core/worker/deployer 3.116s ok launchpad.net/juju-core/worker/firewaller 10.257s ok launchpad.net/juju-core/worker/machiner 7.115s ok launchpad.net/juju-core/worker/minunitsworker 1.272s ok launchpad.net/juju-core/worker/provisioner 16.568s ok launchpad.net/juju-core/worker/resumer 1.490s ok launchpad.net/juju-core/worker/uniter 114.492s ok launchpad.net/juju-core/worker/uniter/charm 2.286s ok launchpad.net/juju-core/worker/uniter/debug 1.112s ok launchpad.net/juju-core/worker/uniter/hook 0.014s ok launchpad.net/juju-core/worker/uniter/jujuc 0.468s ok launchpad.net/juju-core/worker/uniter/relation 1.335s ok launchpad.net/juju-core/worker/upgrader 2.430s warning: building out-of-date packages: launchpad.net/goamz/ec2/ec2test launchpad.net/goamz/s3/s3test launchpad.net/goose/testservices/hook launchpad.net/goose/testservices/identityservice launchpad.net/goose/testservices launchpad.net/goose/testservices/novaservice launchpad.net/goose/testservices/swiftservice launchpad.net/goose/testservices/openstackservice installing these packages with 'go test -i ./...' will speed future tests.