EOF not properly retried under some circumstances
Bug #1677557 reported by
Paweł Stołowski
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
Undecided
|
Paweł Stołowski |
Bug Description
From time to time retry doesn't kick in, and the tests on Travis fail after just one attempt:
Mar 30 09:55:06 localhost.
Mar 30 09:55:06 localhost.
Changed in snapd: | |
assignee: | nobody → Paweł Stołowski (stolowski) |
status: | New → Confirmed |
Changed in snapd: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
I encountered this EOF problem with installing the core snap. It failed with an unexpected EOF error. That error broke the charm's install hook which made the deployment of Kubernetes break.
2017-04-06 21:28:25 INFO install core 76.86 MB / 78.35 MB 98.10% 4.26 MB/s 0 juju/agents/ unit-kubernetes -worker- 0/charm/ hooks/install" , line 19, in <module> lib/python3. 5/dist- packages/ charms/ reactive/ __init_ _.py", line 78, in main lib/python3. 5/dist- packages/ charms/ reactive/ bus.py" , line 434, in dispatch other_handlers) lib/python3. 5/dist- packages/ charms/ reactive/ bus.py" , line 417, in _invoke lib/python3. 5/dist- packages/ charms/ reactive/ bus.py" , line 291, in invoke juju/agents/ unit-kubernetes -worker- 0/charm/ reactive/ kubernetes_ worker. py", line 137, in install_snaps 'kubectl' , channel=channel, classic=True) layer/snap. py", line 44, in install store(snapname, **kw) layer/snap. py", line 142, in _install_store subprocess. STDOUT) python3. 5/subprocess. py", line 626, in check_output python3. 5/subprocess. py", line 708, in run CalledProcessEr ror: Command '['snap', 'install', '--classic', 'kubectl']' returned non-zero exit status 1 uniter. operation runhook.go:107 hook "install" failed: exit status 1 uniter. operation executor.go:84 lock released
2017-04-06 21:28:25 INFO install core 77.80 MB / 78.35 MB 99.30% 4.27 MB/s 0
2017-04-06 21:28:25 INFO install core 78.31 MB / 78.35 MB 99.96% 4.25 MB/s 0
2017-04-06 21:28:25 INFO install �[Kerror: cannot perform the following tasks:
2017-04-06 21:28:25 INFO install - Download snap "core" (1577) from channel "stable" (unexpected EOF)
2017-04-06 21:28:25 INFO install
2017-04-06 21:28:25 INFO install Traceback (most recent call last):
2017-04-06 21:28:25 INFO install File "/var/lib/
2017-04-06 21:28:25 INFO install main()
2017-04-06 21:28:25 INFO install File "/usr/local/
2017-04-06 21:28:25 INFO install bus.dispatch()
2017-04-06 21:28:25 INFO install File "/usr/local/
2017-04-06 21:28:25 INFO install _invoke(
2017-04-06 21:28:25 INFO install File "/usr/local/
2017-04-06 21:28:25 INFO install handler.invoke()
2017-04-06 21:28:25 INFO install File "/usr/local/
2017-04-06 21:28:25 INFO install self._action(*args)
2017-04-06 21:28:25 INFO install File "/var/lib/
2017-04-06 21:28:25 INFO install snap.install(
2017-04-06 21:28:25 INFO install File "lib/charms/
2017-04-06 21:28:25 INFO install _install_
2017-04-06 21:28:25 INFO install File "lib/charms/
2017-04-06 21:28:25 INFO install stderr=
2017-04-06 21:28:25 INFO install File "/usr/lib/
2017-04-06 21:28:25 INFO install **kwargs).stdout
2017-04-06 21:28:25 INFO install File "/usr/lib/
2017-04-06 21:28:25 INFO install output=stdout, stderr=stderr)
2017-04-06 21:28:25 INFO install subprocess.
2017-04-06 21:28:25 ERROR juju.worker.
2017-04-06 21:28:25 DEBUG juju.worker.
Would it be possible to retry snaps that get unexpected EOF so our code does not have to work around this problem?