policy.yaml should be installed instead of policy.json

Bug #2043718 reported by Takashi Kajinami
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
octavia (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Because json format of policy file was deprecated, Octavia changed the default policy file to policy.yaml in version 8.0.0.

https://github.com/openstack/octavia/commit/c5e59b5e9ef088de940deacac7d936573cb211cd

However the octavia-common package still installs policy.json, which is no longer used by the octavia processes.

The issue was initially found in octavia-common 1:13.0.0-0ubuntu1~cloud0 from UCA Bobcat.
However it seems the same problem exists in older versions, at least 1:10.0.0-0ubuntu1 in Ubuntu Jammy according to [1].

[1] https://packages.ubuntu.com/jammy/all/octavia-common/filelist

Revision history for this message
Takashi Kajinami (kajinamit) wrote :

While checking the current code for Jammy I noticed the postrm script has

rm -f /etc/octavia/vitrage.conf

but I don' know what this is... just leaving a note in case anyone else knows if this should be removed.

description: updated
Revision history for this message
Corey Bryant (corey.bryant) wrote :

Hi Takashi,

Thanks for reporting this. I will likely just fix this in Caracal+ as this is more cleanup than anything else. I plan to drop installation of /etc/octavia/policy* in favor of policy-in-code but will still generate the sample policy.yaml for /usr/share/octavia-common/policy.yaml.

Corey

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package octavia - 1:13.0.0+git2024011917.5750e451-0ubuntu1

---------------
octavia (1:13.0.0+git2024011917.5750e451-0ubuntu1) noble; urgency=medium

  * New upstream snapshot for OpenStack Caracal.
  * d/p/has-calls.patch: Fix has_calls -> assert_has_calls in unit
    tests.

 -- James Page <email address hidden> Tue, 23 Jan 2024 14:33:37 +0000

Changed in octavia (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.