LoginSignup
0
0

More than 1 year has passed since last update.

OpenVSwitchが動かなくなったので直した

Posted at

OpenStackを再インストールしたりしてる内に、OpenVSwitchが動かなくなった。。。

Setting up openvswitch-switch (2.17.0-0ubuntu1) ...
Could not execute systemctl:  at /usr/bin/deb-systemd-invoke line 142.
A dependency job for openvswitch-switch.service failed. See 'journalctl -xe' for details.
invoke-rc.d: initscript openvswitch-switch, action "start" failed.
○ openvswitch-switch.service - Open vSwitch
     Loaded: loaded (/lib/systemd/system/openvswitch-switch.service; enabled; vendor preset: enabled)
     Active: inactive (dead) since Sun 2022-07-24 02:25:44 UTC; 6h ago
   Main PID: 1237 (code=exited, status=0/SUCCESS)
        CPU: 5ms

Jul 24 08:23:23 master-node systemd[1]: Dependency failed for Open vSwitch.
Jul 24 08:23:23 master-node systemd[1]: openvswitch-switch.service: Job openvswitch-switch.service/start failed with result 'dependency'.
Jul 24 08:25:33 master-node systemd[1]: Dependency failed for Open vSwitch.
Jul 24 08:25:33 master-node systemd[1]: openvswitch-switch.service: Job openvswitch-switch.service/start failed with result 'dependency'.
Jul 24 08:28:00 master-node systemd[1]: Dependency failed for Open vSwitch.
Jul 24 08:28:00 master-node systemd[1]: openvswitch-switch.service: Job openvswitch-switch.service/start failed with result 'dependency'.
Jul 24 09:03:29 master-node systemd[1]: Dependency failed for Open vSwitch.
Jul 24 09:03:29 master-node systemd[1]: openvswitch-switch.service: Job openvswitch-switch.service/start failed with result 'dependency'.
Jul 24 09:04:03 master-node systemd[1]: Dependency failed for Open vSwitch.
Jul 24 09:04:03 master-node systemd[1]: openvswitch-switch.service: Job openvswitch-switch.service/start failed with result 'dependency'.
dpkg: error processing package openvswitch-switch (--configure):
 installed openvswitch-switch package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 openvswitch-switch

ので以下の通りに修正した。

$sudo vim  /usr/lib/systemd/system/ovsdb-server.service
[Unit]
Description=Open vSwitch Database Unit
After=syslog.target network-pre.target dpdk.service local-fs.target
Before=network.target networking.service
PartOf=openvswitch-switch.service
DefaultDependencies=no

[Service]
LimitNOFILE=1048576
Type=forking
Restart=on-failure
EnvironmentFile=-/etc/default/openvswitch-switch
ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \
          --no-ovs-vswitchd --no-monitor --system-id=random \
          --no-record-hostname \
          --remote=punix:/var/run/openvswitch/db.sock \
          start $OVS_CTL_OPTS
ExecStop=/usr/share/openvswitch/scripts/ovs-ctl --no-ovs-vswitchd stop
ExecReload=/usr/share/openvswitch/scripts/ovs-ctl --no-ovs-vswitchd \
          --no-record-hostname \
          --no-monitor restart $OVS_CTL_OPTS
RuntimeDirectory=openvswitch
RuntimeDirectoryMode=0755
RuntimeDirectoryPreserve=yes
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0