)]}'
{"devstack/lib/networking-ovn":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"bad4856da5c182f1b96199f37ff8040791fa969a","unresolved":false,"context_lines":[{"line_number":370,"context_line":"        sudo ovs-vsctl --no-wait set open_vswitch . external-ids:ovn-remote\u003d\"$OVN_SB_REMOTE\""},{"line_number":371,"context_line":"        sudo ovs-vsctl --no-wait set open_vswitch . external-ids:ovn-bridge\u003d\"br-int\""},{"line_number":372,"context_line":"        sudo ovs-vsctl --no-wait set open_vswitch . external-ids:ovn-encap-type\u003d\"geneve,vxlan\""},{"line_number":373,"context_line":"        sudo ovs-vsctl --no-wait set open_vswitch . external-ids:ovn-encap-ip\u003d\"$HOST_IP\""},{"line_number":374,"context_line":""},{"line_number":375,"context_line":"        ovn_base_setup_bridge br-int"},{"line_number":376,"context_line":"        sudo ovs-vsctl --no-wait set bridge br-int fail-mode\u003dsecure other-config:disable-in-band\u003dtrue"}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"3f4b6375_6abb3375","line":373,"updated":"2017-11-08 11:24:51.000000000","message":"Hi Dong,\n\nThe reason why we need sudo is because we are spawming the ovs-vswitchd process via systemd now, right ?\n\nWe probably could get rid of sudo by setting the User\u003d and Group\u003d in the system unit file to \"stack\", what do you think ?","commit_id":"71fabeb8f2cef8693a0f015ff6e7e39177e9e4ee"},{"author":{"_account_id":23458,"name":"Dong Jun","email":"dongjun.01@bytedance.com","username":"Dongj"},"change_message_id":"a73cd1a50f9e92649c3c88d82cce393de9573581","unresolved":false,"context_lines":[{"line_number":370,"context_line":"        sudo ovs-vsctl --no-wait set open_vswitch . external-ids:ovn-remote\u003d\"$OVN_SB_REMOTE\""},{"line_number":371,"context_line":"        sudo ovs-vsctl --no-wait set open_vswitch . external-ids:ovn-bridge\u003d\"br-int\""},{"line_number":372,"context_line":"        sudo ovs-vsctl --no-wait set open_vswitch . external-ids:ovn-encap-type\u003d\"geneve,vxlan\""},{"line_number":373,"context_line":"        sudo ovs-vsctl --no-wait set open_vswitch . external-ids:ovn-encap-ip\u003d\"$HOST_IP\""},{"line_number":374,"context_line":""},{"line_number":375,"context_line":"        ovn_base_setup_bridge br-int"},{"line_number":376,"context_line":"        sudo ovs-vsctl --no-wait set bridge br-int fail-mode\u003dsecure other-config:disable-in-band\u003dtrue"}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"3f4b6375_4a33d714","line":373,"in_reply_to":"3f4b6375_6abb3375","updated":"2017-11-08 11:37:02.000000000","message":"This is my fault, before I used root user for ovsdb-server service then I encountered permission issues due to the db file, and later I found it\u0027s not necessary to use root for ovsdb, but sudo I forgot to roll back.\nI will remove them, thanks a lot for pointing this out.","commit_id":"71fabeb8f2cef8693a0f015ff6e7e39177e9e4ee"},{"author":{"_account_id":23458,"name":"Dong Jun","email":"dongjun.01@bytedance.com","username":"Dongj"},"change_message_id":"2f2bddbf8effc8b9bf7455c6f123bd6954877c44","unresolved":false,"context_lines":[{"line_number":370,"context_line":"        sudo ovs-vsctl --no-wait set open_vswitch . external-ids:ovn-remote\u003d\"$OVN_SB_REMOTE\""},{"line_number":371,"context_line":"        sudo ovs-vsctl --no-wait set open_vswitch . external-ids:ovn-bridge\u003d\"br-int\""},{"line_number":372,"context_line":"        sudo ovs-vsctl --no-wait set open_vswitch . external-ids:ovn-encap-type\u003d\"geneve,vxlan\""},{"line_number":373,"context_line":"        sudo ovs-vsctl --no-wait set open_vswitch . external-ids:ovn-encap-ip\u003d\"$HOST_IP\""},{"line_number":374,"context_line":""},{"line_number":375,"context_line":"        ovn_base_setup_bridge br-int"},{"line_number":376,"context_line":"        sudo ovs-vsctl --no-wait set bridge br-int fail-mode\u003dsecure other-config:disable-in-band\u003dtrue"}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"3f4b6375_4ddf710c","line":373,"in_reply_to":"3f4b6375_6abb3375","updated":"2017-11-08 12:06:55.000000000","message":"stack user can be used for ovsdb-server service but can not be used for ovs-vswitchd service, because only root can add OVS datapath to kernel.\nI guess using \"sudo sh -c ... ovs-vswitchd\" in the old code \n to start ovs-vswitchd is for the same reason.","commit_id":"71fabeb8f2cef8693a0f015ff6e7e39177e9e4ee"},{"author":{"_account_id":23458,"name":"Dong Jun","email":"dongjun.01@bytedance.com","username":"Dongj"},"change_message_id":"468be4715ac9cf13812e512bde53a5a7042f6374","unresolved":false,"context_lines":[{"line_number":406,"context_line":""},{"line_number":407,"context_line":"        _ovn_run_process ovn-northd \"$cmd\""},{"line_number":408,"context_line":"        sudo ovs-appctl -t $OVS_RUNDIR/ovnnb_db.ctl vlog/set console:off syslog:info file:info"},{"line_number":409,"context_line":"        sudo ovs-appctl -t $OVS_RUNDIR/ovnnb_db.ctl vlog/set console:off syslog:info file:info"},{"line_number":410,"context_line":"    fi"},{"line_number":411,"context_line":""},{"line_number":412,"context_line":"    if is_ovn_service_enabled ovn-controller ; then"}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"3f4b6375_9e4c743f","line":409,"range":{"start_line":409,"start_character":39,"end_line":409,"end_character":51},"updated":"2017-11-08 08:40:25.000000000","message":"ovnsb_db.ctl","commit_id":"71fabeb8f2cef8693a0f015ff6e7e39177e9e4ee"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"bad4856da5c182f1b96199f37ff8040791fa969a","unresolved":false,"context_lines":[{"line_number":406,"context_line":""},{"line_number":407,"context_line":"        _ovn_run_process ovn-northd \"$cmd\""},{"line_number":408,"context_line":"        sudo ovs-appctl -t $OVS_RUNDIR/ovnnb_db.ctl vlog/set console:off syslog:info file:info"},{"line_number":409,"context_line":"        sudo ovs-appctl -t $OVS_RUNDIR/ovnnb_db.ctl vlog/set console:off syslog:info file:info"},{"line_number":410,"context_line":"    fi"},{"line_number":411,"context_line":""},{"line_number":412,"context_line":"    if is_ovn_service_enabled ovn-controller ; then"}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"3f4b6375_0aba7f6d","line":409,"range":{"start_line":409,"start_character":39,"end_line":409,"end_character":51},"in_reply_to":"3f4b6375_9e4c743f","updated":"2017-11-08 11:24:51.000000000","message":"++","commit_id":"71fabeb8f2cef8693a0f015ff6e7e39177e9e4ee"},{"author":{"_account_id":23458,"name":"Dong Jun","email":"dongjun.01@bytedance.com","username":"Dongj"},"change_message_id":"a46a5bde9d3237824a49d30e978f5063c7087c1f","unresolved":false,"context_lines":[{"line_number":215,"context_line":"        configure_root_helper_options $OVN_META_CONF"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"        iniset $OVN_META_CONF DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL"},{"line_number":218,"context_line":"        iniset $OVN_META_CONF DEFAULT nova_metadata_ip $SERVICE_HOST"},{"line_number":219,"context_line":"        iniset $OVN_META_CONF DEFAULT metadata_workers $API_WORKERS"},{"line_number":220,"context_line":"        iniset $OVN_META_CONF DEFAULT state_path $NEUTRON_STATE_PATH"},{"line_number":221,"context_line":"        iniset $OVN_META_CONF ovs ovsdb_connection unix:$OVS_RUNDIR/db.sock"}],"source_content_type":"application/x-shellscript","patch_set":4,"id":"ff82abbf_8b0a1588","line":218,"range":{"start_line":218,"start_character":38,"end_line":218,"end_character":54},"updated":"2017-11-20 09:32:26.000000000","message":"Replace deprecated nova_metadata_ip with nova_metadata_host","commit_id":"ec07feaa7d4f1612ee97ad641106d2af6d952748"},{"author":{"_account_id":23458,"name":"Dong Jun","email":"dongjun.01@bytedance.com","username":"Dongj"},"change_message_id":"a46a5bde9d3237824a49d30e978f5063c7087c1f","unresolved":false,"context_lines":[{"line_number":360,"context_line":""},{"line_number":361,"context_line":"        _ovn_run_process ovsdb-server \"$dbcmd\""},{"line_number":362,"context_line":""},{"line_number":363,"context_line":"        local ovscmd\u003d\"$OVS_SCRIPTDIR/ovs-ctl --no-ovsdb-server --no-monitor --system-id\u003drandom start\""},{"line_number":364,"context_line":"        _ovn_run_process ovs-vswitchd \"$ovscmd\" \"$STACK_USER\" \"root\""},{"line_number":365,"context_line":""},{"line_number":366,"context_line":"        echo \"Configuring OVS\""}],"source_content_type":"application/x-shellscript","patch_set":4,"id":"ff82abbf_eb02c13e","line":363,"range":{"start_line":363,"start_character":22,"end_line":363,"end_character":100},"updated":"2017-11-20 09:32:26.000000000","message":"Use ovs-vswitchd to simplify ovs-vswitchd service as original code.","commit_id":"ec07feaa7d4f1612ee97ad641106d2af6d952748"},{"author":{"_account_id":23458,"name":"Dong Jun","email":"dongjun.01@bytedance.com","username":"Dongj"},"change_message_id":"a46a5bde9d3237824a49d30e978f5063c7087c1f","unresolved":false,"context_lines":[{"line_number":416,"context_line":"    fi"},{"line_number":417,"context_line":""},{"line_number":418,"context_line":"    if is_ovn_service_enabled ovn-controller-vtep ; then"},{"line_number":419,"context_line":"        local cmd\u003d\"$OVS_SCRIPTDIR/ovn-ctl --no-monitor start_controller_vtep\""},{"line_number":420,"context_line":""},{"line_number":421,"context_line":"        _ovn_run_process ovn-controller-vtep \"$cmd\" \"$STACK_USER\" \"root\""},{"line_number":422,"context_line":"    fi"}],"source_content_type":"application/x-shellscript","patch_set":4,"id":"ff82abbf_c5bb2c0c","line":419,"range":{"start_line":419,"start_character":18,"end_line":419,"end_character":77},"updated":"2017-11-20 09:32:26.000000000","message":"Connect to OVN SB DB on remote chassis failed when testing multi chassis.\nThis is becasuse neither ovn-ctl provides ovn sb argument for ovn_controller_vtep nor vtep controller reads ovn-remote in openvswitch db, so revert service ovn-controller-vtep to use \"/usr/local/bin/ovn-controller-vtep\"","commit_id":"ec07feaa7d4f1612ee97ad641106d2af6d952748"},{"author":{"_account_id":24438,"name":"Guoshuai Li","email":"liguoshuai1989@gmail.com","username":"Guoshuai"},"change_message_id":"16065409b4bddf159a5e0c01d5aeb628f4881e29","unresolved":false,"context_lines":[{"line_number":340,"context_line":"        DB_SB_FILE\u003d\"$DATA_DIR/ovs/ovnsb.db\""},{"line_number":341,"context_line":"        OVN_SB_LOGFILE\u003d\"$LOGDIR/ovsdb-server-sb.log\""},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"        /usr/local/share/openvswitch/scripts/ovn-ctl start_ovsdb \\"},{"line_number":344,"context_line":"              --db-nb-file\u003d$DB_NB_FILE --ovn-nb-logfile\u003d$OVN_NB_LOGFILE \\"},{"line_number":345,"context_line":"              --db-sb-file\u003d$DB_SB_FILE --ovn-sb-logfile\u003d$OVN_SB_LOGFILE"},{"line_number":346,"context_line":""}],"source_content_type":"application/x-shellscript","patch_set":7,"id":"df87a7cf_8fe0d3fc","side":"PARENT","line":343,"updated":"2017-12-13 09:14:01.000000000","message":"This patch to solve such a problem, I found today, ovsdb failed to start.\n\n[stack @ controller devstack] $/usr/local/share/openvswitch/scripts/ovn-ctl start_ovsdb --db-nb-file \u003d ~/data/ovs/ovnnb_db.db --db-sb-file \u003d ~/data /ovs/ovnsb_db.db\novn-nbctl:tcp:10.157.0.204:6641:database connection failed (Connection refused)\novn-sbctl:tcp:10.157.0.204:6642:database connection failed (Connection refused)\n\nDue to the setting of environment variables:\nOVN_NB_DB \u003d tcp:10.157.0.204:6641\nOVN_SB_DB \u003d tcp:10.157.0.204:6642\nResulting in ovn-ctl script ovn-nbctl init failed\n\nThis will cause devstack to be broken","commit_id":"65c4e89f08c740d8686dbbde93b2c66c709828e7"}]}
