Can not init dragonflow in multi-node

Bug #1662546 reported by Yuli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DragonFlow
Fix Released
High
Yuli

Bug Description

When running stack in multi-node environment (not the main server) I am getting the following error:

/opt/stack/dragonflow/devstack/ovs_setup.sh:configure_ovs:163 echo 'Setup external bridge for DNAT'
Setup external bridge for DNAT
/opt/stack/dragonflow/devstack/ovs_setup.sh:configure_ovs:164 sudo ovs-vsctl add-br br-ex
ovs-vsctl: cannot create a bridge named br-ex because a bridge named br-ex already exists
/opt/stack/dragonflow/devstack/ovs_setup.sh:configure_ovs:164 true
/opt/stack/dragonflow/devstack/ovs_setup.sh:configure_ovs:167 _neutron_ovs_base_setup_bridge br-int
lib/neutron_plugins/ovs_base:_neutron_ovs_base_setup_bridge:32 local bridge=br-int
lib/neutron_plugins/ovs_base:_neutron_ovs_base_setup_bridge:33 neutron-ovs-cleanup --config-file /etc/neutron/neutron.conf
Guru meditation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports.
Traceback (most recent call last):
   File "/usr/local/bin/neutron-ovs-cleanup", line 10, in <module>
     sys.exit(main())
   File "/opt/stack/neutron/neutron/cmd/ovs_cleanup.py", line 75, in main
    conf()
   File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2352, in __call__
     raise ConfigFilesNotFoundError(self._namespace._files_not_found)

I have no q-svc installed on the server and hence no /etc/neutron/neutron.conf file

Revision history for this message
Yuli (stremovsky) wrote :

this is problematic code:

_neutron_ovs_base_setup_bridge $INTEGRATION_BRIDGE

The full code:

function configure_ovs {
    if is_service_enabled df-controller ; then
        # setup external bridge if necessary
        check_dnat=$(echo $DF_APPS_LIST | grep "DNATApp")
        if [[ "$check_dnat" != "" ]]; then
            echo "Setup external bridge for DNAT"
            sudo ovs-vsctl add-br $PUBLIC_BRIDGE || true
        fi

        _neutron_ovs_base_setup_bridge $INTEGRATION_BRIDGE
        sudo ovs-vsctl --no-wait set bridge $INTEGRATION_BRIDGE fail-mode=secure other-config:disable-in-band=true
        if [ -n "$OVS_INTEGRATION_BRIDGE_PROTOCOLS" ]; then
            sudo ovs-vsctl set bridge $INTEGRATION_BRIDGE protocols=$OVS_INTEGRATION_BRIDGE_PROTOCOLS
        fi
    fi

    if [ -n "$OVS_MANAGER" ]; then
        sudo ovs-vsctl set-manager $OVS_MANAGER
    fi

    cd $_pwd
}

Changed in dragonflow:
importance: Undecided → High
Omer Anson (omer-anson)
Changed in dragonflow:
assignee: nobody → Yuli (stremovsky)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to dragonflow (master)

Fix proposed to branch: master
Review: https://review.openstack.org/431368

Changed in dragonflow:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to dragonflow (master)

Reviewed: https://review.openstack.org/431368
Committed: https://git.openstack.org/cgit/openstack/dragonflow/commit/?id=7536e28798ccd9960ee808faeed9d626e72230a0
Submitter: Jenkins
Branch: master

commit 7536e28798ccd9960ee808faeed9d626e72230a0
Author: yuli <email address hidden>
Date: Thu Feb 9 10:12:13 2017 +0200

    Install default neutron config

    Change-Id: I22ba03d5fc0f619458be2352a2f12045830d53fc
    Closes-bug: #1662546

Changed in dragonflow:
status: In Progress → Fix Released
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.