charm hangs waiting for ovsdb
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-ovn-chassis |
New
|
Undecided
|
Unassigned |
Bug Description
Testing Openstack Charmers Next, there was an instance of the OVN chassis hanging waiting for ovsdb, stating the relation was incomplete.
The logs show that the database is connected, then goes forward to run a series of hooks. here is a snippet of output near the end of the log:
2021-01-12 11:16:53 DEBUG jujuc server.go:211 running hook tool "juju-log" for octavia-
2021-01-12 11:16:53 INFO juju-log ovsdb:196: CompletedProces
2021-01-12 11:16:53 DEBUG jujuc server.go:211 running hook tool "juju-log" for octavia-
2021-01-12 11:16:53 DEBUG jujuc server.go:211 running hook tool "juju-log" for octavia-
2021-01-12 11:16:53 DEBUG juju-log ovsdb:196: Writing file /etc/openvswitc
2021-01-12 11:16:53 DEBUG jujuc server.go:211 running hook tool "juju-log" for octavia-
2021-01-12 11:16:53 DEBUG juju-log ovsdb:196: tracer: set flag config.rendered
2021-01-12 11:16:53 DEBUG jujuc server.go:211 running hook tool "juju-log" for octavia-
2021-01-12 11:16:53 INFO juju-log ovsdb:196: Invoking reactive handler: reactive/
2021-01-12 11:16:53 DEBUG jujuc server.go:211 running hook tool "juju-log" for octavia-
2021-01-12 11:16:53 DEBUG juju-log ovsdb:196: BridgePortInter
2021-01-12 11:16:53 DEBUG jujuc server.go:211 running hook tool "juju-log" for octavia-
2021-01-12 11:16:53 INFO juju-log ovsdb:196: Creating bridge br-int
2021-01-12 11:16:54 WARNING ovsdb-relation-
2021-01-12 11:16:54 WARNING ovsdb-relation-
2021-01-12 11:17:26 DEBUG juju.worker.
from here it spends 4 hours running the update status hook, and not realizing that the database is connected.
Here is the version from juju status"
octavia-ovn-chassis 20.03.1 waiting 3 ovn-chassis jujucharms 46 ubuntu
The crashdump can be found at: https:/
and the testrun is available at https:/
Looking at the charm log I see: changed 2021-01- 12T11:16: 54Z|00002| jsonrpc| WARN|unix: /var/run/ openvswitch/ db.sock: receive error: Connection reset by peer changed 2021-01- 12T11:16: 54Z|00003| reconnect| WARN|unix: /var/run/ openvswitch/ db.sock: connection dropped (Connection reset by peer)
2021-01-12 11:16:54 WARNING ovsdb-relation-
2021-01-12 11:16:54 WARNING ovsdb-relation-
And looking at the Open vSwitch switch log: 12T11:16: 58.809Z| 00002|daemon_ unix|ERR| fork child died before signaling startup (killed (Aborted), core dumped) 12T11:16: 58.809Z| 00003|daemon_ unix|EMER| could not detach from foreground session
2021-01-
2021-01-
I also see that this is a case of the charm running in a container, this is a dup of bug 1906280