[ovs-discuss] OVS does not start without openvswitch log directory

Gurucharan Shetty shettyg at nicira.com
Fri Sep 25 17:31:43 UTC 2015


Any reasons to delete the directory? Directories are created during
package install and not during software start. In this case, wouldn't
it make more sense to re-create the directory by hand?

On Fri, Sep 25, 2015 at 5:10 AM, Balazs Nemeth
<balazs.nemeth at ericsson.com> wrote:
> Dear Andy,
>
> No, I deleted the folder and I started openvswitch-switch process. I built on branch v2.3 and installed the debs. I got this output:
> balazs at ubuntu:~> sudo service openvswitch-switch start
> /etc/init.d/openvswitch-switch: 65: /etc/init.d/openvswitch-switch: cannot create /var/log/openvswitch/ovs-ctl.log: Directory nonexistent
> tee: /var/log/openvswitch/ovs-ctl.log: No such file or directory
>  * Starting ovsdb-server
>  * Configuring Open vSwitch system IDs
>  * Starting ovs-vswitchd
>  * Enabling remote OVSDB managers
>
> I think a check would be enough if /var/log/openvswitch directory is existing or not. And if not, make a directory.
>
> BR,
> Balazs
>
> -----Original Message-----
> From: Andy Zhou [mailto:azhou at nicira.com]
> Sent: 22 September 2015 22:47
> To: Balazs Nemeth
> Cc: bugs at openvswitch.org
> Subject: Re: [ovs-discuss] OVS does not start without openvswitch log directory
>
> What solutions do you have in mind?
>
> In this case, it seems there is a script involved in starting ovs.  If true, I wonder if it possible to create the directory if necessary at the beginning of the script?
>
> On Tue, Sep 22, 2015 at 2:39 AM, Balazs Nemeth <balazs.nemeth at ericsson.com> wrote:
>> Dear All,
>>
>>
>>
>> I’m using OVS version 2.3.0. I wanted to delete ovs log files and
>> accidentally I deleted the whole folder /var/log/openvswitch/. I
>> noticed that openvswitch-switch service was unable to start because of
>> this. The error message was (I did not delete /var/run/openvswitch/):
>>
>> start: Job failed to start
>>
>> 2015-09-22T09:27:41Z|00001|daemon_unix|WARN|/var/run/openvswitch/ovs-vswitchd.pid:
>> open: No such file or directory
>>
>> ovs-appctl: cannot read pidfile
>> "/var/run/openvswitch/ovs-vswitchd.pid" (No such file or directory)
>>
>>
>>
>> If the log directory exists but empty, the openvswitch-switch service
>> will start. The problem comes up when the directory doesn’t exist.
>> Please investigate this bug.
>>
>> Best regards,
>>
>> Balazs Nemeth
>>
>>
>> _______________________________________________
>> discuss mailing list
>> discuss at openvswitch.org
>> http://openvswitch.org/mailman/listinfo/discuss
>>
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss



More information about the discuss mailing list