resource-get hangs when trying to deploy a charm with resource from the store
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Nate Finch |
Bug Description
Steps to reproduce:
1. juju deploy cs:~cmars/
This charm was published with a resource:
> $ charm push ~/trusty/
> bdist=bdist/
>
> $ charm publish cs:~cmars/
> $ charm list-resources cs:~cmars/
> [Service]
> RESOURCE REVISION
> bdist 1
>
> - name: bdist
> type: file
> path: mattermost.tar.gz
> description: Binary distribution of Mattermost, obtained from
> https:/
> origin: store
> revision: 1
> fingerprint: ...
$ juju list-resources mattermost --format yaml
resources:
- resourceid: mattermost/bdist
serviceid: mattermost
name: bdist
type: file
path: mattermost.tar.gz
description: Binary distribution of Mattermost, obtained from https:/
revision: 1
fingerprint: becda1bfaad2637
size: 31205420
origin: store
used: false
2. Install hook hangs. Logsink: https:/
$ juju status
[Services]
NAME STATUS EXPOSED CHARM
mattermost maintenance false cs:~cmars/
[Units]
ID WORKLOAD-STATUS JUJU-STATUS VERSION MACHINE PORTS PUBLIC-ADDRESS MESSAGE
mattermost/0 maintenance executing 2.0-beta7.1 0 10.10.86.243 (install) installing charm software
[Machines]
ID STATE DNS INS-ID SERIES AZ
0 started 10.10.86.243 juju-ed88e08e-
If I deploy specifying a local file with --resource, `resource-get` works and the installation proceeds. I'm only having the problem with the controller downloading the resource from the charmstore.
Changed in juju-core: | |
milestone: | none → 2.0-beta7 |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: juju-release-support resources |
Changed in juju-core: | |
milestone: | 2.0-beta7 → 2.0-beta8 |
Changed in juju-core: | |
assignee: | nobody → Nate Finch (natefinch) |
Changed in juju-core: | |
status: | Triaged → In Progress |
Changed in juju-core: | |
status: | In Progress → Won't Fix |
status: | Won't Fix → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
affects: | juju-core → juju |
Changed in juju: | |
milestone: | 2.0-beta8 → none |
milestone: | none → 2.0-beta8 |
Here is the tail of an strace. The SIGINT is my ctrl-c after waiting a significant number of seconds. It seems that the agent never responds.
stat(".", {st_mode= S_IFDIR| 0755, st_size=31, ...}) = 0 var/lib/ juju/agents/ unit-juju- gui-0/charm" , {st_mode= S_IFDIR| 0755, st_size=31, ...}) = 0 S_IFDIR| 0755, st_size=31, ...}) = 0 var/lib/ juju/agents/ unit-juju- gui-0/charm" , {st_mode= S_IFDIR| 0755, st_size=31, ...}) = 0 SOCK_CLOEXEC| SOCK_NONBLOCK, 0) = 3 AF_LOCAL, sun_path= @"/var/ lib/juju/ agents/ unit-juju- gui-0/agent. socket" }, 52) = 0 EPOLL_CLOEXEC) = 4 EPOLLOUT| EPOLLRDHUP| EPOLLET, {u32=59658832, u64=14006753311 5984}}) = 0 AF_LOCAL, NULL}, [2]) = 0 AF_LOCAL, sun_path= @"/var/ lib/juju/ agents/ unit-juju- gui-0/agent. socket" }, [52]) = 0 201\3\1\ 1\7Request\ 1\377\202\ 0\1\2\1\ rServiceMethod\ 1\f\0\1\ 3Seq\1\ 6\0\0\0\ 17\377\ 202\1\nJujuc. Main\0\ \\377\203\ 3\1\1\7Request\ 1\377\204\ 0\1\6\1\ tContextId\ 1\f\0\1\ 3Dir\1\ f\0\1\vCommandN ame\1\f\ 0\1\4Args\ 1\377\206\ 0\1\10StdinSet\ 1\2\0\1\ 5Stdin\ 1\n\0\0\ 0\26\377\ 205\2\1\ 1\10[]string\ 1\377\206\ 0\1\f\0\ 0p\377\ 204\1&juju- gui/0-install- 783189856102830 4465\1* /var/lib/ juju/agents/ unit-juju- gui-0/charm\ 1\fresource- get\1\1\ 10juju- gui\0", 293) = 293 5984}}} , 128, 0) = 1 SIGINT, {SIG_DFL, ~[], SA_RESTORER| SA_STACK| SA_SIGINFO, 0x479ad0}, NULL, 8) = 0 SIG_SETMASK, [], NULL, 8) = 0
stat("/
stat(".", {st_mode=
stat("/
socket(PF_LOCAL, SOCK_STREAM|
setsockopt(3, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
connect(3, {sa_family=
epoll_create1(
epoll_ctl(4, EPOLL_CTL_ADD, 3, {EPOLLIN|
getsockname(3, {sa_family=
getpeername(3, {sa_family=
futex(0xc820193508, FUTEX_WAKE, 1) = 1
write(3, "/\377\
read(3, 0xc8200f0000, 4096) = -1 EAGAIN (Resource temporarily unavailable)
epoll_wait(4, {{EPOLLOUT, {u32=59658832, u64=14006753311
epoll_wait(4, 7fff53dec9c0, 128, -1) = -1 EINTR (Interrupted system call)
--- SIGINT {si_signo=SIGINT, si_code=SI_KERNEL} ---
rt_sigaction(
rt_sigprocmask(
gettid() = 16765
tkill(16765, SIGINT) = 0
--- SIGINT {si_signo=SIGINT, si_code=SI_TKILL, si_pid=16765, si_uid=0} ---
+++ killed by SIGINT +++