)]}'
{"ansible/roles/ovn-db/defaults/main.yml":[{"author":{"_account_id":13252,"name":"Dr. Jens Harbott","display_name":"Jens Harbott (frickler)","email":"frickler@offenerstapel.de","username":"jrosenboom"},"change_message_id":"1268bca1cd618356bedca55c8cc8c62d0b152f8f","unresolved":true,"context_lines":[{"line_number":95,"context_line":"  --db-sb-file\u003d/var/lib/openvswitch/ovn-sb/ovnsb.db"},{"line_number":96,"context_line":"  --ovn-sb-logfile\u003d/var/log/kolla/openvswitch/ovn-sb-db.log"},{"line_number":97,"context_line":"# Workaround: pause after restarting containers to allow for leader election."},{"line_number":98,"context_line":"ovn_leader_election_pause_s: 5"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"f7e26b84_f436b2c6","line":98,"range":{"start_line":98,"start_character":0,"end_line":98,"end_character":27},"updated":"2024-07-18 12:24:54.000000000","message":"Can you drop the `_s` from the var name? add \"number of seconds to pause ...\" to the comment if you think that that is needed","commit_id":"10ff5a34553fd5ac754138c862ebed2a62d9e45c"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"e3afe5e00715a7795ca0feca6ba18576f972b5be","unresolved":false,"context_lines":[{"line_number":95,"context_line":"  --db-sb-file\u003d/var/lib/openvswitch/ovn-sb/ovnsb.db"},{"line_number":96,"context_line":"  --ovn-sb-logfile\u003d/var/log/kolla/openvswitch/ovn-sb-db.log"},{"line_number":97,"context_line":"# Workaround: pause after restarting containers to allow for leader election."},{"line_number":98,"context_line":"ovn_leader_election_pause_s: 5"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"d96cf9fb_c425fa21","line":98,"range":{"start_line":98,"start_character":0,"end_line":98,"end_character":27},"in_reply_to":"f7e26b84_f436b2c6","updated":"2024-07-18 13:22:06.000000000","message":"Done","commit_id":"10ff5a34553fd5ac754138c862ebed2a62d9e45c"}],"ansible/roles/ovn-db/tasks/bootstrap-db.yml":[{"author":{"_account_id":32553,"name":"Sven Kieske","email":"sven_oss@posteo.de","username":"skieske"},"change_message_id":"5298f2b1032ee34422d3053f1b4b4915836eb78a","unresolved":true,"context_lines":[{"line_number":9,"context_line":"    seconds: \"{{ ovn_leader_election_pause_s }}\""},{"line_number":10,"context_line":"  when: ovn_nb_db_cluster_exists | default(false) or ovn_sb_db_cluster_exists | default(false)"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"- name: Get OVN_Northbound cluster leader"},{"line_number":13,"context_line":"  become: true"},{"line_number":14,"context_line":"  command: \"{{ kolla_container_engine }} exec ovn_nb_db ovs-appctl -t /var/run/ovn/ovnnb_db.ctl cluster/status OVN_Northbound\""},{"line_number":15,"context_line":"  changed_when: False"},{"line_number":16,"context_line":"  register: ovn_nb_cluster_status"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"- name: Configure OVN NB connection settings"},{"line_number":19,"context_line":"  vars:"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"d546f6db_38cf2ee5","line":16,"range":{"start_line":12,"start_character":0,"end_line":16,"end_character":33},"updated":"2024-07-18 11:53:15.000000000","message":"another solution would be to retry the \"Get OVN_Northbound cluster leader\" for x seconds, or until it changes once (indicating a leader election).\n\nThis way we could theoretically save some seconds in some scenarios and don\u0027t need an additional task, what do you think?","commit_id":"10ff5a34553fd5ac754138c862ebed2a62d9e45c"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"e3afe5e00715a7795ca0feca6ba18576f972b5be","unresolved":false,"context_lines":[{"line_number":9,"context_line":"    seconds: \"{{ ovn_leader_election_pause_s }}\""},{"line_number":10,"context_line":"  when: ovn_nb_db_cluster_exists | default(false) or ovn_sb_db_cluster_exists | default(false)"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"- name: Get OVN_Northbound cluster leader"},{"line_number":13,"context_line":"  become: true"},{"line_number":14,"context_line":"  command: \"{{ kolla_container_engine }} exec ovn_nb_db ovs-appctl -t /var/run/ovn/ovnnb_db.ctl cluster/status OVN_Northbound\""},{"line_number":15,"context_line":"  changed_when: False"},{"line_number":16,"context_line":"  register: ovn_nb_cluster_status"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"- name: Configure OVN NB connection settings"},{"line_number":19,"context_line":"  vars:"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"39ab144b_6d1d50ba","line":16,"range":{"start_line":12,"start_character":0,"end_line":16,"end_character":33},"in_reply_to":"d546f6db_38cf2ee5","updated":"2024-07-18 13:22:06.000000000","message":"I think we\u0027d be optimising for a corner case (generally it does not change otherwise this method would rarely work).\n\nI\u0027m also not sure how we would track the previous result using an ansible until loop.","commit_id":"10ff5a34553fd5ac754138c862ebed2a62d9e45c"}]}
