default_enabled_filters nova.conf updates don't get written on openstack upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Nova Cloud Controller Charm |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
While testing https:/
default_
On the upgrade from antelope->bobcat, the following call to os_release() is returning a cached version of "antelope".
def default_
os_rel = ch_utils.
if cmp_os_rel >= 'bobcat':
return _bobcat_
if cmp_os_rel >= 'victoria':
return _victoria_
if cmp_os_rel >= 'pike':
There's a reset_cache parameter for os_release(), but in this case it didn't change anything because os_release() calls into other functions that don't account for that parameter.
On down the line os_release() ends up getting the release from get_installed_
@cached
def openstack_
"""Return /etc/os-release in a dict."""
d = {}
try:
with open('/
for l in lsb:
s = l.split('=')
if len(s) != 2:
except FileNotFoundError:
pass
return d
Removing the @cached decorator from this function allows "bobcat" to get returned and the nova.conf rendered correctly. I don't know that the caching is really necessary here since there is already caching at a higher level function.
description: | updated |
description: | updated |
Changed in charm-nova-cloud-controller: | |
status: | New → In Progress |
summary: |
- default_enabled_filters nova.conf updates don't get written on opentack + default_enabled_filters nova.conf updates don't get written on openstack upgrade |
Changed in charm-guide: | |
status: | New → In Progress |
no longer affects: | charm-guide |
See testing performed for this bug at https:/ /bugs.launchpad .net/charm- nova-cloud- controller/ +bug/2036766/ comments/ 1