config-changed: package install needs to be action-managed-upgrade aware
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Neutron API Charm |
In Progress
|
High
|
Robert Gildein |
Bug Description
I deployed a cloud with Xenial, maas 2.3.5, Juju 2.5-beta1. There are 3 neutron-api units, all on LXDs.
I had previously set openstack-origin to the default (distro), and am running through the process of an openstack upgrade to Queens.
I ran:
juju config neutron-api action-
Then, when hooks were completed:
juju config neutron-api openstack-
This resulted in config-changed hook failure:
2018-11-27 02:15:58 DEBUG config-changed E: Unable to locate package python-
2018-11-27 02:15:58 DEBUG config-changed Traceback (most recent call last):
2018-11-27 02:15:58 DEBUG config-changed File "/var/lib/
2018-11-27 02:15:58 DEBUG config-changed main()
2018-11-27 02:15:58 DEBUG config-changed File "/var/lib/
2018-11-27 02:15:58 DEBUG config-changed hooks.execute(
2018-11-27 02:15:58 DEBUG config-changed File "/var/lib/
2018-11-27 02:15:58 DEBUG config-changed self._hooks[
2018-11-27 02:15:58 DEBUG config-changed File "/var/lib/
2018-11-27 02:15:58 DEBUG config-changed stopstart, restart_functions)
2018-11-27 02:15:58 DEBUG config-changed File "/var/lib/
2018-11-27 02:15:58 DEBUG config-changed r = lambda_f()
2018-11-27 02:15:58 DEBUG config-changed File "/var/lib/
2018-11-27 02:15:58 DEBUG config-changed (lambda: f(*args, **kwargs)), __restart_
2018-11-27 02:15:58 DEBUG config-changed File "/var/lib/
2018-11-27 02:15:58 DEBUG config-changed return f(*args, **kwargs)
2018-11-27 02:15:58 DEBUG config-changed File "/var/lib/
2018-11-27 02:15:58 DEBUG config-changed fatal=True)
2018-11-27 02:15:58 DEBUG config-changed File "/var/lib/
2018-11-27 02:15:58 DEBUG config-changed _run_apt_
2018-11-27 02:15:58 DEBUG config-changed File "/var/lib/
2018-11-27 02:15:58 DEBUG config-changed retry_message=
2018-11-27 02:15:58 DEBUG config-changed File "/var/lib/
2018-11-27 02:15:58 DEBUG config-changed result = subprocess.
2018-11-27 02:15:58 DEBUG config-changed File "/usr/lib/
2018-11-27 02:15:58 DEBUG config-changed raise CalledProcessEr
2018-11-27 02:15:58 DEBUG config-changed subprocess.
2018-11-27 02:15:58 ERROR juju.worker.
2018-11-27 02:15:58 INFO juju.worker.uniter resolver.go:115 awaiting error resolution for "config-changed" hook
tags: | added: openstack-upgrade |
Changed in charm-neutron-api: | |
importance: | Low → High |
Changed in charm-neutron-api: | |
assignee: | nobody → Robert Gildein (rgildein) |
status: | Triaged → In Progress |
global CONFIGS 'action- managed- upgrade' ): upgrade_ available( 'neutron- common' ):
status_ set('maintenanc e', 'Running openstack upgrade')
do_ openstack_ upgrade( CONFIGS)
if not config(
if openstack_
additional_ install_ locations(
config( 'neutron- plugin' ),
config( 'openstack- origin' ) set('maintenanc e', 'Installing apt packages') install( filter_ installed_ packages(
determine_ packages( config( 'openstack- origin' ))),
fatal= True)
)
status_
apt_