Installed packages but marked on "hold" in apt are considered not installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
Triaged
|
Medium
|
Unassigned | ||
OpenStack Neutron Open vSwitch Charm |
Triaged
|
Medium
|
Unassigned |
Bug Description
Discovered via a stuck "config-changed" hook after an upgrade of the openvswitch charm on a server with openvswitch packages marked as on "hold"
Version: 19.10, but the code seems to be the same on master
The function _dpkg_list in charmhelpers.
This causes client functions like neutron openvswitch "ovs_has_
Example output of the dpkg-query command for a held package:
# dpkg-query --list openvswitch-switch
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
hi openvswitch-switch 2.11.0-
description: | updated |
Changed in charm-neutron-openvswitch: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in charm-helpers: | |
status: | New → Triaged |
importance: | Undecided → Medium |