deprecated call warnings in configure-resources action output
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Octavia Charm |
Invalid
|
Undecided
|
Unassigned | ||
charms.openstack |
Fix Released
|
Medium
|
DUFOUR Olivier |
Bug Description
Usually those warnings are not harmful, but it's visible to user interactions as follows:
DEPRECATION WARNING: Function maybe_do_
Aug 13 01:47:31 + juju run-action --wait octavia/leader configure-resources
Aug 13 01:49:03 unit-octavia-0:
Aug 13 01:49:03 UnitId: octavia/0
Aug 13 01:49:03 id: "6"
Aug 13 01:49:03 results:
Aug 13 01:49:03 Stderr: |
Aug 13 01:49:03 ovs-vsctl: no row "o-hm0" in table Interface
Aug 13 01:49:03 Synchronizing state of octavia-api.service with SysV service script with /lib/systemd/
Aug 13 01:49:03 Executing: /lib/systemd/
Aug 13 01:49:03 Unit /etc/systemd/
Aug 13 01:49:03 Warning: Stopping systemd-
Aug 13 01:49:03 systemd-
Aug 13 01:49:03 Stdout: |
Aug 13 01:49:03 Hit:1 http://
Aug 13 01:49:03 Hit:2 http://
Aug 13 01:49:03 Hit:3 http://
Aug 13 01:49:03 Hit:4 http://
Aug 13 01:49:03 Reading package lists...
Aug 13 01:49:03 Adding user systemd-network to group octavia
Aug 13 01:49:03 inactive
Aug 13 01:49:03 octavia-api (enabled by site administrator)
Aug 13 01:49:03 active
Aug 13 01:49:03 active
Aug 13 01:49:03 active
Aug 13 01:49:03 active
Aug 13 01:49:03 DEPRECATION WARNING: Function maybe_do_
Aug 13 01:49:03 status: completed
Aug 13 01:49:03 timing:
Aug 13 01:49:03 completed: 2021-08-13 01:49:02 +0000 UTC
Aug 13 01:49:03 enqueued: 2021-08-13 01:47:34 +0000 UTC
Aug 13 01:49:03 started: 2021-08-13 01:47:34 +0000 UTC
Changed in charm-octavia: | |
assignee: | nobody → DUFOUR Olivier (odufourc) |
Changed in charm-octavia: | |
status: | New → In Progress |
Changed in charms.openstack: | |
status: | In Progress → Fix Committed |
I've located the origin of the issue. It was slightly more complicated as it doesn't come directly from Octavia's charm but from a call within the module charms_openstack.
There is also another fix ongoing for a deprecated call used in the configure-resources action that would lead to this warning on juju debug-logs whenever an action fails :
2021-11-17 12:52:57 INFO unit.octavia/ 0.juju- log server.go:327 DEPRECATION WARNING: Function action_fail is being removed : moved to function_fail()