From 6e98071f981a46c759f5935e26da3cad96227828 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Fri, 16 Dec 2016 13:41:07 -0800 Subject: [PATCH] Remove script-dir Script-dir was only used for snapshot building. Since that is no longer supported, remove it. It was also passed through to DIB as an evironment variable. However, the OpenStack infra element that used it defaults to a sensible value. Users who still want to use that can add it as an environment variable to appropriate diskimage entries. Change-Id: Ie72bb9675fdad6364589a6e3823f4ef9a0228e86 --- devstack/plugin.sh | 33 +++---------------- doc/source/configuration.rst | 13 -------- doc/source/scripts.rst | 33 ++----------------- nodepool/builder.py | 2 -- nodepool/cmd/config_validator.py | 1 - nodepool/config.py | 1 - .../tests/fixtures/config_validate/good.yaml | 1 - .../config_validate/schema_error.yaml | 1 - .../fixtures/config_validate/yaml_error.yaml | 1 - nodepool/tests/fixtures/integration.yaml | 1 - nodepool/tests/fixtures/integration_osc.yaml | 1 - nodepool/tests/fixtures/leaked_node.yaml | 1 - nodepool/tests/fixtures/node.yaml | 1 - nodepool/tests/fixtures/node_az.yaml | 1 - nodepool/tests/fixtures/node_cmd.yaml | 1 - .../tests/fixtures/node_disabled_label.yaml | 1 - .../tests/fixtures/node_diskimage_fail.yaml | 1 - .../tests/fixtures/node_diskimage_pause.yaml | 1 - .../fixtures/node_image_upload_pause.yaml | 1 - nodepool/tests/fixtures/node_ipv6.yaml | 1 - nodepool/tests/fixtures/node_net_name.yaml | 1 - nodepool/tests/fixtures/node_two_image.yaml | 1 - .../tests/fixtures/node_two_image_remove.yaml | 1 - .../tests/fixtures/node_two_provider.yaml | 1 - .../fixtures/node_two_provider_remove.yaml | 1 - nodepool/tests/fixtures/node_upload_fail.yaml | 1 - nodepool/tests/fixtures/node_vhd.yaml | 1 - .../tests/fixtures/node_vhd_and_qcow2.yaml | 1 - nodepool/tests/fixtures/subnodes.yaml | 1 - tools/fake-dib.yaml | 1 - tools/fake.yaml | 1 - 31 files changed, 7 insertions(+), 101 deletions(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 662242ae1..b3565c680 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -67,29 +67,7 @@ function nodepool_create_keypairs { fi } -function nodepool_write_prepare { - sudo mkdir -p $(dirname $NODEPOOL_CONFIG)/scripts - local pub_key=$(cat $NODEPOOL_PUBKEY) - - cat > /tmp/prepare_node_ubuntu.sh < tmp_authorized_keys << INNEREOF - $pub_key -INNEREOF -sudo mv tmp_authorized_keys /home/jenkins/.ssh/authorized_keys -sudo chmod 700 /home/jenkins/.ssh -sudo chmod 600 /home/jenkins/.ssh/authorized_keys -sudo chown -R jenkins:jenkins /home/jenkins -sleep 5 -sync -EOF - sudo mv /tmp/prepare_node_ubuntu.sh \ - $(dirname $NODEPOOL_CONFIG)/scripts/prepare_node_ubuntu.sh - - sudo chmod a+x $(dirname $NODEPOOL_CONFIG)/scripts/prepare_node_ubuntu.sh - +function nodepool_write_elements { sudo mkdir -p $(dirname $NODEPOOL_CONFIG)/elements/nodepool-setup/install.d cat > /tmp/01-nodepool-setup < /tmp/nodepool.yaml <