Hash Ring: Race condition during service initialization
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-ovn |
Fix Released
|
High
|
Lucas Alvares Gomes |
Bug Description
During the service initialization the Hash Ring code cleans up any existing node that matches the host's hostname (in case it wasn't cleaned when the service was shutdown, e.g SIGKILL), this operation is done in the pre_fork_
While many processes are being spawned, the pre_fork_
()[root@
DELETE FROM ovn_hash_ring WHERE ovn_hash_
INSERT INTO ovn_hash_ring (node_uuid, hostname, created_at, updated_at) VALUES ('1583fecf-
INSERT INTO ovn_hash_ring (node_uuid, hostname, created_at, updated_at) VALUES ('ab46e47e-
INSERT INTO ovn_hash_ring (node_uuid, hostname, created_at, updated_at) VALUES ('1f461ff0-
INSERT INTO ovn_hash_ring (node_uuid, hostname, created_at, updated_at) VALUES ('514013bc-
DELETE FROM ovn_hash_ring WHERE ovn_hash_
INSERT INTO ovn_hash_ring (node_uuid, hostname, created_at, updated_at) VALUES ('2ad8d643-
INSERT INTO ovn_hash_ring (node_uuid, hostname, created_at, updated_at) VALUES ('86fa3549-
INSERT INTO ovn_hash_ring (node_uuid, hostname, created_at, updated_at) VALUES ('a61f24a6-
Changed in networking-ovn: | |
assignee: | nobody → Lucas Alvares Gomes (lucasagomes) |
importance: | Undecided → High |
status: | New → Confirmed |
tags: | added: networking-ovn-proactive-backport-potential |
tags: | removed: networking-ovn-proactive-backport-potential |
Fix proposed to branch: master /review. opendev. org/665720
Review: https:/