Comment 19 for bug 1906280

Revision history for this message
Corey Bryant (corey.bryant) wrote : Re: Charm stuck waiting for ovsdb 'no key "ovn-remote" in Open_vSwitch record'

On the package level, it appears the ovs-vswitchd and ovsdb-server systemd unit files are sourcing the wrong environment file and using the wrong environment variable.

I think it should look like this:

[Service]
LimitNOFILE=1048576
Type=forking
Restart=on-failure
Environment=HOME=/var/run/openvswitch
EnvironmentFile=-/etc/default/openvswitch-switch
ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \
          --no-ovsdb-server --no-monitor --system-id=random \
          start $OVS_CTL_OPTS
ExecStop=/usr/share/openvswitch/scripts/ovs-ctl --no-ovsdb-server stop
ExecReload=/usr/share/openvswitch/scripts/ovs-ctl --no-ovsdb-server \
          --no-monitor --system-id=random \
          restart $OVS_CTL_OPTS
TimeoutSec=300

That'll allow setting OVS_CTL_OPTS=--no-mlockall in the existing /etc/default/openvswitch-switch file.