juju deploy hangs for a long time and then fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Ian Booth |
Bug Description
$ juju deploy local:blues-browser --debug --show-log
2014-10-27 20:03:36 INFO juju.cmd supercommand.go:37 running juju [1.21-alpha2-
2014-10-27 20:03:36 DEBUG juju.api api.go:153 trying cached API connection settings
2014-10-27 20:03:36 INFO juju.api api.go:251 connecting to API addresses: [juju-azure-
2014-10-27 20:03:36 INFO juju.api apiclient.go:252 dialing "wss://
2014-10-27 20:03:36 INFO juju.api apiclient.go:252 dialing "wss://
2014-10-27 20:03:36 INFO juju.api apiclient.go:175 connection established to "wss://
2014-10-27 20:03:39 DEBUG juju.api apiclient.go:258 error dialing "wss://
2014-10-27 20:04:11 INFO juju.utils http.go:66 hostname SSL verification disabled
2014-10-27 20:09:47 INFO juju.rpc server.go:334 error closing codec: EOF
2014-10-27 20:09:47 ERROR juju.cmd supercommand.go:323 cannot upload charm: Post https:/
Notice the long time - 5min 35s between log INFO messages.
While this deploy was happening, I tried to ssh to node 0 (the only other machine)
$ juju ssh 0
Warning: Permanently added 'juju-azure-
known hosts.
Warning: Permanently added '10.0.0.4' (ECDSA) to the list of known hosts.
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-36-generic x86_64)
* Documentation: https:/
System information disabled due to load higher than 1.0
Get cloud support with Ubuntu Advantage Cloud Guest:
http://
-bash: fork: Cannot allocate memory
ubuntu@
top - 20:09:03 up 24 min, 1 user, load average: 1.90, 1.71, 1.33
Tasks: 224 total, 2 running, 222 sleeping, 0 stopped, 0 zombie
%Cpu(s): 15.6 us, 1.3 sy, 0.0 ni, 0.0 id, 82.4 wa, 0.0 hi, 0.7 si, 0.0 st
KiB Mem: 1718608 total, 1614344 used, 104264 free, 3252 buffers
KiB Swap: 0 total, 0 used, 0 free. 52484 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2095 root 20 0 2180472 1.328g 4412 S 16.6 81.0 2:09.52 jujud
jujud was using 1.3 GB of resident memory!
Apparently I need at least 5 times the memory free of the largest charm I plan to deploy.
This environment was just created:
$ juju status
environment: azure
machines:
"0":
agent-state: started
agent-version: 1.21-alpha2
dns-name: juju-azure-
instance-id: juju-azure-
instance-state: ReadyRole
series: trusty
hardware: arch=amd64 cpu-cores=1 mem=1792M root-disk=130048M
state-
services: {}
Expected: I can deploy large charms even with state server on a small node.
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: charm deploy mongodb |
Changed in juju-core: | |
milestone: | none → 1.21-alpha3 |
Changed in juju-core: | |
assignee: | nobody → Ian Booth (wallyworld) |
status: | Triaged → In Progress |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
thats very sad if the state server is storing the entire charm in memory on the way to storing it in gridfs..