在 Baremetal 服务器 systemctl 上安装 Devstack 失败:devstack@etcd.service 未启动

Installing Devstack on Baremetal server systemctl fails: devstack@etcd.service is not started

我正在尝试在 ubuntu 16.04 上从 ./stack.sh 安装 devstack。尝试启动服务 etcd 时安装失败。我也无法手动 运行 服务。

devstack@etcd.service - Devstack devstack@etcd.service
Loaded: loaded (/etc/systemd/system/devstack@etcd.service; enabled; vendor preset: enabled)
Active: failed (Result: start-limit-hit) since Sat 2019-04-20 09:01:06 UTC; 8s ago
Process: 28944 ExecStart=/opt/stack/bin/etcd --name scw-priceless-varahamihira --data-dir /opt/stack/data/etcd --initial-cluster-state new -
Main PID: 28944 (code=exited, status=1/FAILURE)

Apr 20 09:01:06 scw-priceless-varahamihira systemd[1]: Failed to start Devstack devstack@etcd.service.
Apr 20 09:01:06 scw-priceless-varahamihira systemd[1]: devstack@etcd.service: Unit entered failed state.
Apr 20 09:01:06 scw-priceless-varahamihira systemd[1]: devstack@etcd.service: Failed with result 'exit-code'.
Apr 20 09:01:06 scw-priceless-varahamihira systemd[1]: devstack@etcd.service: Service hold-off time over, scheduling restart.
Apr 20 09:01:06 scw-priceless-varahamihira systemd[1]: Stopped Devstack devstack@etcd.service.
Apr 20 09:01:06 scw-priceless-varahamihira systemd[1]: devstack@etcd.service: Start request repeated too quickly.
Apr 20 09:01:06 scw-priceless-varahamihira systemd[1]: Failed to start Devstack devstack@etcd.service.
Apr 20 09:01:06 scw-priceless-varahamihira systemd[1]: devstack@etcd.service: Unit entered failed state.
Apr 20 09:01:06 scw-priceless-varahamihira systemd[1]: devstack@etcd.service: Failed with result 'start-limit-hit'.

看起来错误 (Failed with result 'start-limit-hit') 是由缺少 /var/run/sshd.

引起的

Run

mkdir /var/run/sshd

then

systemctl restart ssh

https://askubuntu.com/questions/1089310/how-to-resolve-service-start-limit-hit