openvswitch bridges are not created

Bug #1639303 reported by Vance Morris
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Nova Compute Proxy Charm
Fix Released
Undecided
Unassigned

Bug Description

Even though the proxy charm unit is in an active idle, and ready state, the openvswitch bridges are not created.

On the KVM host:
[root@zs93k24 nova]# ovs-vsctl show
1f0b19e7-b780-4166-9b07-edb6078595f4
    ovs_version: "2.5.0"

I observed the following messages in the juju debug-log:

unit-nova-compute-proxy-11: 12:09:45 INFO unit.nova-compute-proxy/11.config-changed [10.20.95.79] Executing task 'add_bridge'
unit-nova-compute-proxy-11: 12:09:45 INFO unit.nova-compute-proxy/11.config-changed [10.20.95.79] sudo: ovs-vsctl -- --may-exist add-br br-int
unit-nova-compute-proxy-11: 12:09:45 INFO unit.nova-compute-proxy/11.config-changed [10.20.95.79] out: ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)
unit-nova-compute-proxy-11: 12:09:45 INFO unit.nova-compute-proxy/11.config-changed [10.20.95.79] out:
unit-nova-compute-proxy-11: 12:09:45 INFO unit.nova-compute-proxy/11.config-changed
unit-nova-compute-proxy-11: 12:09:45 INFO unit.nova-compute-proxy/11.config-changed Warning: sudo() received nonzero return code 1 while executing 'ovs-vsctl -- --may-exist add-br br-int'!
unit-nova-compute-proxy-11: 12:09:45 INFO unit.nova-compute-proxy/11.config-changed
unit-nova-compute-proxy-11: 12:09:45 INFO unit.nova-compute-proxy/11.config-changed
unit-nova-compute-proxy-11: 12:09:45 INFO unit.nova-compute-proxy/11.config-changed [10.20.95.79] Executing task 'add_bridge'
unit-nova-compute-proxy-11: 12:09:45 INFO unit.nova-compute-proxy/11.config-changed [10.20.95.79] sudo: ovs-vsctl -- --may-exist add-br br-data
unit-nova-compute-proxy-11: 12:09:45 INFO unit.nova-compute-proxy/11.config-changed [10.20.95.79] out: ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)
unit-nova-compute-proxy-11: 12:09:45 INFO unit.nova-compute-proxy/11.config-changed [10.20.95.79] out:
unit-nova-compute-proxy-11: 12:09:45 INFO unit.nova-compute-proxy/11.config-changed
unit-nova-compute-proxy-11: 12:09:45 INFO unit.nova-compute-proxy/11.config-changed Warning: sudo() received nonzero return code 1 while executing 'ovs-vsctl -- --may-exist add-br br-data'!

And the following observed in the journalctl output:

Nov 04 12:09:45 zs93k24 sshd[63344]: pam_unix(sshd:session): session opened for user root by (uid=0)
Nov 04 12:09:45 zs93k24 sudo[63348]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/bash -l -c ovs-vsctl -- --may-exist add-br br-int
Nov 04 12:09:45 zs93k24 ovs-vsctl[63360]: ovs|00001|vsctl|INFO|Called as ovs-vsctl -- --may-exist add-br br-int
Nov 04 12:09:45 zs93k24 ovs-vsctl[63360]: ovs|00002|db_ctl_base|ERR|unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)
Nov 04 12:09:45 zs93k24 sudo[63374]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/bash -l -c ovs-vsctl -- --may-exist add-br br-data
Nov 04 12:09:45 zs93k24 ovs-vsctl[63386]: ovs|00001|vsctl|INFO|Called as ovs-vsctl -- --may-exist add-br br-data
Nov 04 12:09:45 zs93k24 ovs-vsctl[63386]: ovs|00002|db_ctl_base|ERR|unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)

Revision history for this message
Vance Morris (vmorris) wrote :

Manually adding these bridges once the unit is ready works:

[root@zs93k24 nova]# ovs-vsctl show
1f0b19e7-b780-4166-9b07-edb6078595f4
    ovs_version: "2.5.0"
[root@zs93k24 nova]# ovs-vsctl -- --may-exist add-br br-int
[root@zs93k24 nova]# ovs-vsctl -- --may-exist add-br br-data
[root@zs93k24 nova]# ovs-vsctl show
1f0b19e7-b780-4166-9b07-edb6078595f4
    Bridge br-int
        Port br-int
            Interface br-int
                type: internal
    Bridge br-data
        Port br-data
            Interface br-data
                type: internal
    ovs_version: "2.5.0"

Revision history for this message
Vance Morris (vmorris) wrote :

This issue is not showing up with the charm code in https://review.openstack.org/#/c/394922/

Vance Morris (vmorris)
Changed in charm-nova-compute-proxy:
status: New → 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.