conntrack system call error when deleting vm

Bug #1799630 reported by gospring
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DragonFlow
New
Undecided
Unassigned

Bug Description

when I delete a vm,

df-local-controller.log

ERROR neutron.agent.linux.utils [-] Exit code: 2; Stdin: ; Stdout: ; Stderr: conntrack v1.4.3 (conntrack-tools): mismatched address family
Try `conntrack -h' or 'conntrack --help' for more information.

ERROR dragonflow.controller.common.utils [-] Failed execute conntrack command ['conntrack', '-D', '-f', u'ipv4', '-s', 'fdb4:a003:f182:0:f816:3eff:fe84:c6b5', '-d', '10.0.0.8', '-w', '1']: ProcessExecutionError: Exit code: 2; Stdin: ; Stdout: ; Stderr: conntrack v1.4.3 (conntrack-tools): mismatched address family
Try `conntrack -h' or 'conntrack --help' for more information.
ERROR dragonflow.controller.common.utils Traceback (most recent call last):
ERROR dragonflow.controller.common.utils File "/opt/stack/dragonflow/dragonflow/controller/common/utils.py", line 57, in delete_conntrack_entries_by_filter
ERROR dragonflow.controller.common.utils extra_ok_codes=[1])
ERROR dragonflow.controller.common.utils File "/opt/stack/neutron/neutron/agent/linux/utils.py", line 151, in execute
ERROR dragonflow.controller.common.utils raise ProcessExecutionError(msg, returncode=returncode)
ERROR dragonflow.controller.common.utils ProcessExecutionError: Exit code: 2; Stdin: ; Stdout: ; Stderr: conntrack v1.4.3 (conntrack-tools): mismatched address family
ERROR dragonflow.controller.common.utils Try `conntrack -h' or 'conntrack --help' for more information.
ERROR dragonflow.controller.common.utils
ERROR dragonflow.controller.common.utils

def _delete_conntrack_entries_process(self, port_info, rule,
                                      remote_address_list=None):
    ethertype = rule.ethertype
    if DIRECTION_INGRESS == rule.direction:
        nw_match_mark = 'nw_dst'
        remote_match_mark = 'nw_src'
    else:
        nw_match_mark = 'nw_src'
        remote_match_mark = 'nw_dst'
    for port_ip in port_info['removed_ips']:
        if port_ip.version == utils.ethertype_to_ip_version(ethertype):
            entries_filter = {
                'ethertype': ethertype,
                nw_match_mark: port_ip,
                'zone': port_info['zone_id']
            }
            protocol = rule.protocol
            if protocol:
                entries_filter['protocol'] = protocol
            if remote_address_list:
                for remote_address in remote_address_list:
                    entries_filter_tmp = entries_filter.copy()
                    entries_filter_tmp[remote_match_mark] = remote_address
                    utils.delete_conntrack_entries_by_filter(
                        **entries_filter_tmp)
            else:
                utils.delete_conntrack_entries_by_filter(**entries_filter)

ipv4 ingress rule, but remote_address_list contains ipv6 address, this error happends.

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.