os_release() uses default release in install hook
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Neutron Open vSwitch Charm |
Fix Released
|
Undecided
|
Corey Bryant |
Bug Description
os_release determines the OpenStack release in this order:
1) based on an installed package
2) based on openstack-origin
3) default
def os_release(package, base='essex', reset_cache=False):
...
_os_rel = (
base)
return _os_rel
Since neutron-openvswitch is a subordinate charm, it doesn't have an openstack-origin config option. Therefore, when called via determine_
cmp_release = CompareOpenStac
the order results in:
1) None (because 'neutron-common' isn't yet installed)
2) None (because neutron-openvswitch doesn't have openstack-origin)
3) icehouse (because it's the default/base)
This causes the charm to attempt to install the old neutron-
if cmp_release >= 'mitaka' and 'neutron-
description: | updated |
description: | updated |
Changed in charm-neutron-openvswitch: | |
assignee: | nobody → Corey Bryant (corey.bryant) |
Changed in charm-neutron-openvswitch: | |
status: | New → In Progress |
Changed in charm-neutron-openvswitch: | |
milestone: | none → 18.08 |
Changed in charm-neutron-openvswitch: | |
status: | Fix Committed → Fix Released |
Change abandoned by Corey Bryant (<email address hidden>) on branch: master /review. openstack. org/594516 /review. openstack. org/#/c/ 592343/
Review: https:/
Reason: There's already a fix in progress for this at: https:/