Under Python 3, the prefix of a firewall log message is not correctly decode:
2019-06-10 09:14:34 Unknown cookie packet_in pkt=ethernet(dst='fa:16:3e:c6:58:5e',ethertype=2048,src='fa:16:3e:e0:2c:be')ipv4(csum=51290,dst='10.5.0.10',flags=2,header_length=5,identification=37612,offset=0,option=None,proto=6,src='192.168.21.182',tos=16,total_length=52,ttl=63,version=4)tcp(ack=3151291228,bits=17,csum=23092,dst_port=57776,offset=8,option=[TCPOptionNoOperation(kind=1,length=1), TCPOptionNoOperation(kind=1,length=1), TCPOptionTimestamps(kind=8,length=10,ts_ecr=1574746440,ts_val=482688)],seq=2769917228,src_port=22,urgent=0,window_size=3120) 2019-06-10 09:14:34 {'prefix': "b'10612530182266949194'", 'msg': "ethernet(dst='fa:16:3e:c6:58:5e',ethertype=2048,src='fa:16:3e:e0:2c:be')ipv4(csum=51290,dst='10.5.0.10',flags=2,header_length=5,identification=37612,offset=0,option=None,proto=6,src='192.168.21.182',tos=16,total_length=52,ttl=63,version=4)tcp(ack=3151291228,bits=17,csum=23092,dst_port=57776,offset=8,option=[TCPOptionNoOperation(kind=1,length=1), TCPOptionNoOperation(kind=1,length=1), TCPOptionTimestamps(kind=8,length=10,ts_ecr=1574746440,ts_val=482688)],seq=2769917228,src_port=22,urgent=0,window_size=3120)"} 2019-06-10 09:14:34 {'0bf81ded-bf94-437d-ad49-063bba9be9bb': [<neutron_fwaas.services.logapi.agents.drivers.iptables.log.LogPrefix object at 0x7f7563079048>, <neutron_fwaas.services.logapi.agents.drivers.iptables.log.LogPrefix object at 0x7f756308abe0>]}
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.
Under Python 3, the prefix of a firewall log message is not correctly decode:
2019-06-10 09:14:34 Unknown cookie packet_in pkt=ethernet( dst='fa: 16:3e:c6: 58:5e', ethertype= 2048,src= 'fa:16: 3e:e0:2c: be')ipv4( csum=51290, dst='10. 5.0.10' ,flags= 2,header_ length= 5,identificatio n=37612, offset= 0,option= None,proto= 6,src=' 192.168. 21.182' ,tos=16, total_length= 52,ttl= 63,version= 4)tcp(ack= 3151291228, bits=17, csum=23092, dst_port= 57776,offset= 8,option= [TCPOptionNoOpe ration( kind=1, length= 1), TCPOptionNoOper ation(kind= 1,length= 1), TCPOptionTimest amps(kind= 8,length= 10,ts_ecr= 1574746440, ts_val= 482688) ],seq=276991722 8,src_port= 22,urgent= 0,window_ size=3120) 66949194' ", 'msg': "ethernet( dst='fa: 16:3e:c6: 58:5e', ethertype= 2048,src= 'fa:16: 3e:e0:2c: be')ipv4( csum=51290, dst='10. 5.0.10' ,flags= 2,header_ length= 5,identificatio n=37612, offset= 0,option= None,proto= 6,src=' 192.168. 21.182' ,tos=16, total_length= 52,ttl= 63,version= 4)tcp(ack= 3151291228, bits=17, csum=23092, dst_port= 57776,offset= 8,option= [TCPOptionNoOpe ration( kind=1, length= 1), TCPOptionNoOper ation(kind= 1,length= 1), TCPOptionTimest amps(kind= 8,length= 10,ts_ecr= 1574746440, ts_val= 482688) ],seq=276991722 8,src_port= 22,urgent= 0,window_ size=3120) "} bf94-437d- ad49-063bba9be9 bb': [<neutron_ fwaas.services. logapi. agents. drivers. iptables. log.LogPrefix object at 0x7f7563079048>, <neutron_ fwaas.services. logapi. agents. drivers. iptables. log.LogPrefix object at 0x7f756308abe0>]}
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.