From 96f3c731e18737bcd3606b1821369238d6c067a3 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Tue, 11 Apr 2017 12:13:17 -0400 Subject: [PATCH] Add functional test for key-name and glean Validate that glean will properly use the key-name from nodepool, and allow a root user to ssh into the node. Change-Id: I8e50caed4541ae31e61fb0b84c1b285f7baa4c6b Signed-off-by: Paul Belanger --- devstack/plugin.sh | 18 ++++++++++++++++++ tools/check_devstack_plugin.sh | 20 ++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 2bd4b76..f41756b 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -15,6 +15,7 @@ # under the License. NODEPOOL_KEY=$HOME/.ssh/id_nodepool +NODEPOOL_KEY_NAME=root NODEPOOL_PUBKEY=$HOME/.ssh/id_nodepool.pub NODEPOOL_INSTALL=$HOME/nodepool-venv NODEPOOL_CACHE_GET_PIP=/opt/stack/cache/files/get-pip.py @@ -78,6 +79,13 @@ function nodepool_create_keypairs { if [[ ! -f $NODEPOOL_KEY ]]; then ssh-keygen -f $NODEPOOL_KEY -P "" fi + + cat > /tmp/ssh_wrapper <