Failure to update apt package indexes not fatal despite passing fatal=True
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
New
|
Undecided
|
Unassigned | ||
charms.openstack |
New
|
Undecided
|
Unassigned |
Bug Description
In charms.openstack we have this sequence of calls:
source, key = os_utils.
On a failed deployment I found this:
2019-12-03 15:07:10 INFO juju-log Reactive main running for hook install
2019-12-03 15:07:11 INFO juju-log Initializing Leadership Layer (is leader)
2019-12-03 15:07:11 DEBUG juju-log tracer: set flag leadership.
2019-12-03 15:07:11 DEBUG juju-log tracer>
tracer: starting handler dispatch, 8 flags set
tracer: set flag charms.
tracer: set flag charms.
tracer: set flag charms.
tracer: set flag charms.
tracer: set flag config.changed
tracer: set flag config.
tracer: set flag config.set.source
tracer: set flag leadership.
2019-12-03 15:07:11 DEBUG juju-log tracer: hooks phase, 0 handlers queued
2019-12-03 15:07:11 DEBUG juju-log tracer>
tracer: main dispatch loop, 3 handlers queued
tracer: ++ queue handler hooks/relations
tracer: ++ queue handler reactive/
tracer: ++ queue handler reactive/
2019-12-03 15:07:11 INFO juju-log Invoking reactive handler: reactive/
2019-12-03 15:07:12 INFO juju-log Installing ['ubuntu-
2019-12-03 15:07:12 DEBUG install Reading package lists...
2019-12-03 15:07:12 DEBUG install Building dependency tree...
2019-12-03 15:07:12 DEBUG install Reading state information...
2019-12-03 15:07:12 DEBUG install The following package was automatically installed and is no longer required:
2019-12-03 15:07:12 DEBUG install libfreetype6
2019-12-03 15:07:12 DEBUG install Use 'apt autoremove' to remove it.
2019-12-03 15:07:12 DEBUG install The following NEW packages will be installed:
2019-12-03 15:07:12 DEBUG install ubuntu-
2019-12-03 15:07:12 DEBUG install 0 upgraded, 1 newly installed, 0 to remove and 42 not upgraded.
2019-12-03 15:07:12 DEBUG install Need to get 6008 B of archives.
2019-12-03 15:07:12 DEBUG install After this operation, 22.5 kB of additional disk space will be used.
2019-12-03 15:07:12 DEBUG install Get:1 http://
2019-12-03 15:07:13 DEBUG install Fetched 6008 B in 0s (14.7 kB/s)
2019-12-03 15:07:13 DEBUG install Selecting previously unselected package ubuntu-
(Reading database ... 35333 files and directories currently installed.)
2019-12-03 15:07:13 DEBUG install Preparing to unpack .../ubuntu-
2019-12-03 15:07:13 DEBUG install Unpacking ubuntu-
2019-12-03 15:07:13 DEBUG install Setting up ubuntu-
2019-12-03 15:07:15 DEBUG install Err:1 http://
2019-12-03 15:07:15 DEBUG install 503 Service Unavailable [IP: 10.219.3.124 3128]
2019-12-03 15:07:15 DEBUG install Hit:2 http://
2019-12-03 15:07:15 DEBUG install Hit:3 http://
2019-12-03 15:07:15 DEBUG install Hit:4 http://
2019-12-03 15:07:15 DEBUG install Hit:5 http://
2019-12-03 15:07:17 DEBUG install Reading package lists...
2019-12-03 15:07:17 DEBUG install W: Failed to fetch http://
2019-12-03 15:07:17 DEBUG install W: Some index files failed to download. They have been ignored, or old ones used instead.
At this point execution should have stopped, but instead it continued with the in-distro packages, leading to a very confusing result.
2019-12-03 15:07:17 INFO juju-log Installing ['ovn-central'] with options: ['--option=
2019-12-03 15:07:18 DEBUG install Reading package lists...
2019-12-03 15:07:18 DEBUG install Building dependency tree...
2019-12-03 15:07:18 DEBUG install Reading state information...
2019-12-03 15:07:18 DEBUG install The following package was automatically installed and is no longer required:
2019-12-03 15:07:18 DEBUG install libfreetype6
2019-12-03 15:07:18 DEBUG install Use 'apt autoremove' to remove it.
2019-12-03 15:07:18 DEBUG install The following additional packages will be installed:
2019-12-03 15:07:18 DEBUG install libpython-stdlib libpython2.
2019-12-03 15:07:18 DEBUG install openvswitch-switch ovn-common python python-minimal python-six python2.7
2019-12-03 15:07:18 DEBUG install python2.7-minimal
2019-12-03 15:07:18 DEBUG install Suggested packages:
2019-12-03 15:07:18 DEBUG install openvswitch-doc python-doc python-tk python2.7-doc binfmt-support
2019-12-03 15:07:18 DEBUG install The following NEW packages will be installed:
2019-12-03 15:07:18 DEBUG install libpython-stdlib libpython2.
2019-12-03 15:07:18 DEBUG install openvswitch-switch ovn-central ovn-common python python-minimal python-six
2019-12-03 15:07:18 DEBUG install python2.7 python2.7-minimal
2019-12-03 15:07:18 DEBUG install 0 upgraded, 12 newly installed, 0 to remove and 42 not upgraded.
2019-12-03 15:07:18 DEBUG install Need to get 7821 kB of archives.
2019-12-03 15:07:18 DEBUG install After this operation, 33.2 MB of additional disk space will be used.
2019-12-03 15:07:18 DEBUG install Get:1 http://
2019-12-03 15:07:18 DEBUG install Get:2 http://
2019-12-03 15:07:19 DEBUG install Get:3 http://
2019-12-03 15:07:19 DEBUG install Get:4 http://
2019-12-03 15:07:19 DEBUG install Get:5 http://
2019-12-03 15:07:19 DEBUG install Get:6 http://
2019-12-03 15:07:19 DEBUG install Get:7 http://
2019-12-03 15:07:19 DEBUG install Get:8 http://
2019-12-03 15:07:20 DEBUG install Get:9 http://
2019-12-03 15:07:20 DEBUG install Get:10 http://
2019-12-03 15:07:20 DEBUG install Get:11 http://
2019-12-03 15:07:20 DEBUG install Get:12 http://
description: | updated |