default release selector function and subordinates
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charms.openstack |
Fix Released
|
High
|
Frode Nordahl |
Bug Description
The fallback for the default release selector function in charms.openstack is to consult the charms install source configuration option (typically ``openstack-
Subordinate charms typically defer this configuration to their principle charm, and subsequently do not have it available as a configuration option of its own.
At present this makes it impossible to make use of the default release selector function for a subordinate charm. While the framework provides means for the charm to provide its own default release selector function I think it would be generally applicable to all subordinate charms to fix this in the default one provided by the framework.
One way to go about it could be to combine lookup of packages available in the APT cache (not installed packages) with the charm provided package codename map. A working version of this can be viewed in [0]
0: https:/
https:/ /review. opendev. org/#/c/ 713788/