Installation should retry when failing to connect due to network transient issue
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
New
|
Undecided
|
Unassigned |
Bug Description
Occasionally, there are network issues preventing connection to archives. The charm install will automatically fail. These network issues preventing contact with archive will sometimes persist for a short period of time and may be intermittent. If they persist beyond X minutes or so, then the charm should fail. But regardless of timeout, charm should retry.
Here's an example:
From console.txt:
2015-05-07 04:24:37,453 [WARNING] deployer.import: Config specifies num units for subordinate: neutron-calico
2015-05-07 04:24:37,454 [INFO] deployer.import: Adding 2 more units to swift-storage
2015-05-07 04:47:33,208 [ERROR] deployer.env: The following units had errors:
unit: mysql/0: machine: 3/lxc/0 agent-state: error details: hook failed: "install"
2015-05-07 04:47:33,213 [ERROR] oil_ci.
Traceback (most recent call last):
File "/usr/lib/
debug=True, verbose=True)
File "/usr/lib/
importer.
File "/usr/lib/
self.
File "/usr/lib/
services=
File "/usr/lib/
services=
File "/usr/lib/
if self.complete() is True:
File "/usr/lib/
on_
File "/usr/lib/
raise ErrorExit()
From unit log:
unit-mysql-0[1981]: 2015-05-07 04:47:29 INFO unit.mysql/
unit-mysql-0[1981]: 2015-05-07 04:47:29 INFO unit.mysql/
unit-mysql-0[1981]: 2015-05-07 04:47:29 INFO unit.mysql/
unit-mysql-0[1981]: 2015-05-07 04:47:29 INFO unit.mysql/
unit-mysql-0[1981]: 2015-05-07 04:47:29 INFO unit.mysql/
unit-mysql-0[1981]: 2015-05-07 04:47:29 INFO unit.mysql/
unit-mysql-0[1981]: 2015-05-07 04:47:29 INFO unit.mysql/
unit-mysql-0[1981]: 2015-05-07 04:47:29 INFO unit.mysql/
unit-mysql-0[1981]: 2015-05-07 04:47:29 INFO unit.mysql/
unit-mysql-0[1981]: 2015-05-07 04:47:29 INFO unit.mysql/
unit-mysql-0[1981]: 2015-05-07 04:47:29 INFO unit.mysql/
unit-mysql-0[1981]: 2015-05-07 04:47:29 INFO unit.mysql/
unit-mysql-0[1981]: 2015-05-07 04:47:29 INFO unit.mysql/
unit-mysql-0[1981]: 2015-05-07 04:47:29 INFO unit.mysql/
unit-mysql-0[1981]: 2015-05-07 04:47:29 INFO unit.mysql/
unit-mysql-0[1981]: 2015-05-07 04:47:29 INFO unit.mysql/
unit-mysql-0[1981]: 2015-05-07 04:47:29 INFO juju.worker.
unit-mysql-0[1981]: 2015-05-07 04:47:29 ERROR juju.worker.
unit-mysql-0[1981]: 2015-05-07 04:47:29 INFO juju.worker.uniter modes.go:452 ModeContinue exiting
unit-mysql-0[1981]: 2015-05-07 04:47:29 INFO juju.worker.uniter modes.go:450 ModeHookError starting
unit-mysql-0[1981]: 2015-05-07 04:47:29 DEBUG juju.worker.
unit-mysql-0[1981]: 2015-05-07 04:47:29 DEBUG juju.worker.
unit-mysql-0[1981]: 2015-05-07 04:47:29 DEBUG juju.worker.
The same applies to the Git fetcher.