Closed bettswang closed 1 year ago
The search location depends on how the ovs-monitor-ipsec script was built, not where openvswitch itself was installed. I assume you're mixing a .deb package installation with a manual build somehow.
Oh, you may miss my words. I just want to know how it could be this. All I have done is following the offical manual. Why does the ovs-monitor-ipsec script search the wrong path which cause the ipsec daemon unable to start?
apt install openvswitch-ipsec
This operation would install four package which are openvswitch-common
, openvswitch-switch
, openvswitch-ipsec,
python3-openvswitch
. And there are no more any openvswitch related on the system.
Hi,everyone
I found the root cause of this issue. The ubuntu22.04 python3-openvswitch package define a wrong path for the openvswitch
defalut setting. Change the dirs to "/usr","/var"
root@ubuntu2204:/usr/lib/python3/dist-packages/ovs# cat /usr/lib/python3/dist-packages/ovs/dirs.py
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# The @variables@ in this file are replaced by default directories for
# use in python/ovs/dirs.py in the source directory and replaced by the
# configured directories for use in the installed python/ovs/dirs.py.
#
import os
# Note that the use of """ is to aid in dealing with paths with quotes in them.
PKGDATADIR = os.environ.get("OVS_PKGDATADIR", """/usr/share/openvswitch""")
RUNDIR = os.environ.get("OVS_RUNDIR", """/var/run/openvswitch""")
LOGDIR = os.environ.get("OVS_LOGDIR", """/var/log/openvswitch""")
BINDIR = os.environ.get("OVS_BINDIR", """/usr/local/bin""")
DBDIR = os.environ.get("OVS_DBDIR")
if not DBDIR:
sysconfdir = os.environ.get("OVS_SYSCONFDIR")
if sysconfdir:
DBDIR = "%s/openvswitch" % sysconfdir
else:
DBDIR = """/usr/local/etc/openvswitch"""
root@ubuntu2204:/usr/lib/python3/dist-packages/ovs#
Hi, maintainers
After installing ovs ipsec with
apt
on ubuntu22.04, failed to start withsystemctl start openvswitch-ipsec.service
. I check the syslog, found some error, but have no way to slove it. Could you help me please?There is an error on my installation. Is this related with the fail of starting ipsec daemon?
After installation , there are two processes related with openvswitch. The openvswitch ipsec daemon did not exist.
Also it produces some error messages on syslog. I don't know why it did not search the
vswitch.ovsschema
in/usr/share/openvswitch
instead of '/usr/local/share/openvswitch'. Cause of the installation dir of openvswitch is the former one.