fwaas netfilter_log: incorrect decode of log prefix under python 3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Cloud Archive |
Fix Released
|
Medium
|
Unassigned | ||
Rocky |
Won't Fix
|
Medium
|
Unassigned | ||
Stein |
Fix Released
|
Medium
|
Unassigned | ||
Train |
Fix Released
|
Medium
|
Unassigned | ||
neutron |
Fix Released
|
Medium
|
James Page | ||
neutron-fwaas (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Cosmic |
Won't Fix
|
Medium
|
James Page | ||
Disco |
Fix Released
|
Medium
|
James Page | ||
Eoan |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Under Python 3, the prefix of a firewall log message is not correctly decoded "b'106125301822
2019-06-10 09:14:34 Unknown cookie packet_in pkt=ethernet(
2019-06-10 09:14:34 {'prefix': "b'106125301822
2019-06-10 09:14:34 {'0bf81ded-
This results in the firewall log driver not being able to map the message to the associated port and log resources in neutron resulting in the 'unknown cookie packet_in' warning message.
description: | updated |
Changed in neutron: | |
importance: | Undecided → Medium |
tags: | added: py3 |
Changed in neutron-fwaas (Ubuntu Eoan): | |
status: | New → Fix Committed |
Changed in neutron-fwaas (Ubuntu Disco): | |
status: | New → Triaged |
Changed in neutron-fwaas (Ubuntu Cosmic): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in neutron-fwaas (Ubuntu Disco): | |
importance: | Undecided → Medium |
Changed in neutron-fwaas (Ubuntu Eoan): | |
importance: | Undecided → Medium |
Changed in cloud-archive: | |
status: | Fix Released → Fix Committed |
Changed in cloud-archive: | |
status: | Fix Committed → Fix Released |
Incorrect encoding:
https:/ /opendev. org/openstack/ neutron- fwaas/src/ branch/ master/ neutron_ fwaas/privilege d/netfilter_ log/libnetfilte r_log.py# L169
str(X) -> X.decode('UTF-8')