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
(cherry picked from commit 1ab7e66a82
)
This commit is contained in:
parent
a14520b83e
commit
7bb925055a
@ -664,6 +664,7 @@ function run_openshift_node {
|
|||||||
local command
|
local command
|
||||||
|
|
||||||
#install required CNI loopback driver
|
#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
|
curl -L "$OPENSHIFT_CNI_BINARY_URL" | sudo tar -C "$CNI_BIN_DIR" -xzvf - ./loopback
|
||||||
command="/usr/local/bin/openshift start node \
|
command="/usr/local/bin/openshift start node \
|
||||||
--kubeconfig=${OPENSHIFT_DATA_DIR}/master.kubelet-client.kubeconfig \
|
--kubeconfig=${OPENSHIFT_DATA_DIR}/master.kubelet-client.kubeconfig \
|
||||||
|
Loading…
Reference in New Issue
Block a user