JUJU_ENV not isolated well in unit tests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Jesse Meek |
Bug Description
JUJU_
will yield dozens of errors. This was hard for me to debug as a first time runner of the unit tests. Errors are in the form of the following:
-------
FAIL: deployer_
[LOG] 47.55917 INFO juju environs/testing: uploading FAKE tools 1.11.1-raring-amd64
[LOG] 47.55923 INFO juju environs/testing: uploading FAKE tools 1.11.1-
[LOG] 47.55929 INFO juju environs: reading tools with major version 1
[LOG] 47.55931 DEBUG juju environs/tools: reading v1.* tools
[LOG] 47.55933 INFO juju environs: falling back to public bucket
[LOG] 47.55934 DEBUG juju environs/tools: reading v1.* tools
[LOG] 47.55939 DEBUG juju environs/tools: found 1.11.1-
[LOG] 47.55944 DEBUG juju environs/tools: found 1.11.1-raring-amd64
[LOG] 47.55946 INFO juju environs: filtering tools by series: precise
[LOG] 47.55949 INFO juju environs: filtering tools by version: 1.11.1
[LOG] 47.55952 INFO juju environs/dummy: would pick tools from 1.11.1-
[LOG] 47.58016 INFO juju state: opening state; mongo addresses: ["localhost:
[LOG] 47.58200 INFO juju state: connection established
[LOG] 47.66114 INFO juju state: initializing environment
[LOG] 47.68856 INFO juju state/api: listening on "localhost:0"
[LOG] 47.70867 INFO juju state: opening state; mongo addresses: ["localhost:
[LOG] 47.71084 INFO juju state: connection established
[LOG] 47.71128 INFO juju juju: authorization error while connecting to state server; retrying
[LOG] 47.71134 INFO juju state: opening state; mongo addresses: ["localhost:
[LOG] 47.71430 INFO juju state: connection established
[LOG] 47.76079 INFO juju state/api: dialing "wss://
[LOG] 47.76477 INFO juju rpc: discarding action method reflect.
t.commonType)
[LOG] 47.76487 INFO juju state/api: connection established
[LOG] 47.76501 DEBUG juju rpc/jsoncodec: <- {"RequestId"
[LOG] 47.76540 INFO juju rpc: discarding obtainer method reflect.
ct.Value{
[LOG] 47.76543 INFO juju rpc: discarding obtainer method reflect.
.Value{
[LOG] 47.76546 INFO juju rpc: discarding obtainer method reflect.
typ:(*reflect.
[LOG] 47.76554 INFO juju rpc: discarding obtainer method reflect.
*reflect.
[LOG] 47.76558 INFO juju rpc: discarding action method reflect.
ect.commonType)
[LOG] 47.76561 INFO juju rpc: discarding action method reflect.
ect.commonType)
[LOG] 47.76565 INFO juju rpc: discarding obtainer method reflect.
commonType)
[LOG] 47.76568 INFO juju rpc: discarding obtainer method reflect.
.commonType)
[LOG] 47.76570 DEBUG juju rpc/jsoncodec: -> {"RequestId"
[LOG] 47.76751 DEBUG juju rpc/jsoncodec: <- {"RequestId"
[LOG] 47.76762 DEBUG juju rpc/jsoncodec: -> {"RequestId"
[LOG] 47.80232 INFO juju writing charm to storage [838 bytes]
[LOG] 47.80242 INFO juju adding charm to state
[LOG] 47.83658 INFO juju worker/deployer: checking unit "wordpress/0"
[LOG] 47.83678 INFO juju worker/deployer: deploying unit "wordpress/0"
deployer_
s.waitFor(c, isDeployed(ctx, u0.Name()))
deployer_
c.Fatalf(
... Error: timeout
[LOG] 48.59055 WARNING juju installer: cannot restart syslog daemon: exec ["restart" "rsyslog"]: exit status 1 (restart
; type="method_call", sender=":1.1632" (uid=1000 pid=1614 comm="restart rsyslog ") interface=
requested_reply="0" destination=
[LOG] 48.63426 INFO juju environs/dummy: reset environment
[LOG] 48.63460 DEBUG juju rpc/jsoncodec: <- error: read tcp 127.0.0.1:51712: use of closed network connection (closing
2013-06-26 14:37:51 WARNING juju simple.go:136 installer: cannot restart syslog daemon: exec ["restart" "rsyslog"]: exi
ge, 1 matched rules; type="method_call", sender=":1.1636" (uid=1000 pid=1777 comm="restart rsyslog ") interface="com.ub
ror name="(unset)" requested_reply="0" destination=
2013-06-26 14:37:51 WARNING juju simple.go:172 installer: cannot restart syslog daemon: exec ["restart" "rsyslog"]: exi
ge, 1 matched rules; type="method_call", sender=":1.1637" (uid=1000 pid=1792 comm="restart rsyslog ") interface="com.ub
ror name="(unset)" requested_reply="0" destination=
2013-06-26 14:37:51 WARNING juju simple.go:136 installer: cannot restart syslog daemon: exec ["restart" "rsyslog"]: exi
ge, 1 matched rules; type="method_call", sender=":1.1638" (uid=1000 pid=1793 comm="restart rsyslog ") interface="com.ub
ror name="(unset)" requested_reply="0" destination=
OOPS: 5 passed, 1 FAILED
--- FAIL: TestPackage (3.04 seconds)
Related branches
- Juju Engineering: Pending requested
-
Diff: 11 lines (+1/-0)1 file modifiedjuju/testing/conn.go (+1/-0)
Changed in juju-core: | |
importance: | Undecided → High |
status: | New → Triaged |
tags: | added: intermittent-failure test-failure |
Changed in juju-core: | |
assignee: | nobody → Jesse Meek (waigani) |
Changed in juju-core: | |
status: | Triaged → Fix Committed |
Changed in juju-core: | |
milestone: | none → 1.17.3 |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |