The ovs was configured by my colleague, I am trying to help with the mess-up. 
Took a deep dive, found two obsdb-server binary as you can see below:

# ls -al /usr/sbin/ovsdb-server
-rwxr-xr-x 1 root root 16172416 Apr 18 18:59 /usr/sbin/ovsdb-server
gnr-sp-03:~ # ls -al /usr/local/sbin/ovsdb-server
-rwxr-xr-x 1 root root 20026112 Apr 24 11:06 /usr/local/sbin/ovsdb-server

Mysterious to me where does /usr/sbin/ovsdb-server come from? None of them can 
be sourced to a rpm package, and both reports the same version number. I 
searched openvswitch keyword in /var/log/zypper.log and /var/log/zypp/history. 
Any insight what could be the reason? Appreciate it.

gnr-sp-03:~ # rpm -qif /usr/sbin/ovsdb-server
file /usr/sbin/ovsdb-server is not owned by any package
gnr-sp-03:~ # rpm -qif /usr/local/sbin/ovsdb-server
file /usr/local/sbin/ovsdb-server is not owned by any package

# /usr/sbin/ovsdb-server --version
ovsdb-server (Open vSwitch) 3.3.0
gnr-sp-03:~ # /usr/local/sbin/ovsdb-server --version
ovsdb-server (Open vSwitch) 3.3.0

-----Original Message-----
From: Ilya Maximets <i.maxim...@ovn.org> 
Sent: Wednesday, April 24, 2024 6:28 PM
To: Wang, Fei2 <fei2.w...@intel.com>; b...@openvswitch.org
Cc: i.maxim...@ovn.org
Subject: Re: [ovs-discuss] ovsdb-server fails to start and report one 
unreferenced file path doesn't exist

On 4/24/24 12:12, Ilya Maximets wrote:
> On 4/24/24 05:32, Wang, Fei2 via discuss wrote:
>> Hi all,
>>
>>  
>>
>> We are hitting below error when trying to start ovsdb-server 3.3.0 on SLES15 
>> SP5, I don’t tend to believe this issue is related to OS but not sure, we 
>> poked around and found similar issue 
>> https://bugzilla.redhat.com/show_bug.cgi?id=1785586 
>> <https://bugzilla.redhat.com/show_bug.cgi?id=1785586>, since we are using 
>> OVS built from source code with dpdk enabled so cannot reference to it 
>> directly, any idea how to narrow down this issue further? Thanks a lot.
>>
>> *Our OVS build and startup steps:*
>>
>> ./configure --with-dpdk=static
>> make
>> make install
>>
>> mkdir -p /usr/local/etc/openvswitch
>> rm -rf /usr/local/etc/openvswitch/conf.db
>> ovsdb-tool create /usr/local/etc/openvswitch/conf.db 
>> /usr/local/share/openvswitch/vswitch.ovsschema
>> mkdir -p /usr/local/var/run/openvswitch/
>>
>> # Start ovsdb-server
>>
>> ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock 
>> --remote=db:Open_vSwitch,Open_vSwitch,manager_options 
>> --private-key=db:Open_vSwitch,SSL,private_key 
>> --certificate=db:Open_vSwitch,SSL,certificate 
>> --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --pidfile --detach
> 
> For some reason the pidfile creation is happening in 
> /usr/var/run/openvswitch/ and not /usr/local/... .
> Sounds strange.

Also , make sure that you're running the same binary that you built.
i.e. check the 'which ovsdb-server', it should be in /usr/local/bin.


> 
> Try to run 'make distclean' and re-configure the build.
> 
> Or use explicit configuration to set up the prefixes:
> 
>  ./configure --prefix=/usr/local \
>              --localstatedir=/usr/local/var \
>              --sysconfdir=/usr/local/etc
> 
> Another option is to provide --pidfile option to ovsdb-server 
> specifying the desired location.
> 
> Best regards, Ilya Maximets.

_______________________________________________
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to