Create CNI bin dir in OpenShift DevStack plugin

In case of containerized deployment we haven't been creating
$CNI_BIN_DIR directory. This made containerized deployments with
OpenShift to fail. This commit solves that by adding `mkdir` just before
the directory is needed as OpenShift installation should not depend on
Kuryr installation.

Change-Id: Iea797939fdb8dc6f0db4a4f128075b94f85c8073
Closes-Bug: 1759153
This commit is contained in:
Michał Dulko 2018-03-27 10:06:58 +02:00
parent e0b6d59c4e
commit 1ab7e66a82
1 changed files with 1 additions and 0 deletions

View File

@ -717,6 +717,7 @@ function run_openshift_node {
local command
#install required CNI loopback driver
sudo mkdir -p "$CNI_BIN_DIR"
curl -L "$OPENSHIFT_CNI_BINARY_URL" | sudo tar -C "$CNI_BIN_DIR" -xzvf - ./loopback
command="/usr/local/bin/openshift start node \
--kubeconfig=${OPENSHIFT_DATA_DIR}/master.kubelet-client.kubeconfig \