diff --git a/container-images/tcib/base/os/tempest/run_tempest.sh b/container-images/tcib/base/os/tempest/run_tempest.sh index 5ab81025..f902d131 100644 --- a/container-images/tcib/base/os/tempest/run_tempest.sh +++ b/container-images/tcib/base/os/tempest/run_tempest.sh @@ -228,7 +228,7 @@ function upload_extra_images { image_create_params=() [[ ! -f "${TEMPEST_EXTRA_IMAGES_NAME[image_index]}" ]] && \ - sudo curl -o "${TEMPEST_EXTRA_IMAGES_NAME[image_index]}" "${TEMPEST_EXTRA_IMAGES_URL[image_index]}" + curl -o "${HOMEDIR}/${TEMPEST_EXTRA_IMAGES_NAME[image_index]}" "${TEMPEST_EXTRA_IMAGES_URL[image_index]}" [[ ${TEMPEST_EXTRA_IMAGES_DISK_FORMAT[image_index]} != "-" ]] && \ image_create_params+=(--disk-format ${TEMPEST_EXTRA_IMAGES_DISK_FORMAT[image_index]}) @@ -240,7 +240,7 @@ function upload_extra_images { image_create_params+=(--id ${TEMPEST_EXTRA_IMAGES_ID[image_index]}) [[ ${TEMPEST_EXTRA_IMAGES_NAME[image_index]} != "-" ]] && \ - image_create_params+=(--file ${TEMPEST_EXTRA_IMAGES_NAME[image_index]}) + image_create_params+=(--file "${HOMEDIR}/${TEMPEST_EXTRA_IMAGES_NAME[image_index]}") [[ ${TEMPEST_EXTRA_IMAGES_CONTAINER_FORMAT[image_index]} != "-" ]] && \ image_create_params+=(--container-format ${TEMPEST_EXTRA_IMAGES_CONTAINER_FORMAT[image_index]}) @@ -406,9 +406,9 @@ fi if [ -f ${HOMEDIR}/id_ecdsa ]; then mkdir -p ${HOMEDIR}/.ssh cp ${HOMEDIR}/id_ecdsa ${HOMEDIR}/.ssh/id_ecdsa - sudo chmod 700 ${HOMEDIR}/.ssh - sudo chmod 600 ${HOMEDIR}/.ssh/id_ecdsa - sudo chown -R tempest:tempest ${HOMEDIR}/.ssh + chmod 700 ${HOMEDIR}/.ssh + chmod 600 ${HOMEDIR}/.ssh/id_ecdsa + chown -R tempest:tempest ${HOMEDIR}/.ssh fi if [ -z $TEMPEST_EXTERNAL_PLUGIN_GIT_URL ]; then diff --git a/container-images/tcib/base/os/tempest/tempest-all/tempest-all.yaml b/container-images/tcib/base/os/tempest/tempest-all/tempest-all.yaml index 2d85e92d..354a9301 100644 --- a/container-images/tcib/base/os/tempest/tempest-all/tempest-all.yaml +++ b/container-images/tcib/base/os/tempest/tempest-all/tempest-all.yaml @@ -4,8 +4,6 @@ tcib_envs: tcib_actions: - run: bash /usr/local/bin/uid_gid_manage {{ tcib_user }} - run: dnf -y install {{ tcib_packages['common'] | join(' ') }} && dnf clean all && rm -rf /var/cache/dnf -- run: cp /usr/share/tcib/container-images/tcib/base/os/tempest/tempest_sudoers /etc/sudoers.d/tempest_sudoers -- run: chmod 440 /etc/sudoers.d/tempest_sudoers - run: mkdir -p /var/lib/tempest/external_files - run: mkdir -p /var/lib/kolla/config_files - run: chown -R tempest.tempest /var/lib/tempest diff --git a/container-images/tcib/base/os/tempest/tempest.yaml b/container-images/tcib/base/os/tempest/tempest.yaml index d2faae9f..00ce642e 100644 --- a/container-images/tcib/base/os/tempest/tempest.yaml +++ b/container-images/tcib/base/os/tempest/tempest.yaml @@ -3,8 +3,6 @@ tcib_envs: tcib_actions: - run: bash /usr/local/bin/uid_gid_manage {{ tcib_user }} - run: dnf -y install {{ tcib_packages['common'] | join(' ') }} && dnf clean all && rm -rf /var/cache/dnf -- run: cp /usr/share/tcib/container-images/tcib/base/os/tempest/tempest_sudoers /etc/sudoers.d/tempest_sudoers -- run: chmod 440 /etc/sudoers.d/tempest_sudoers - run: mkdir -p /var/lib/tempest/external_files - run: mkdir -p /var/lib/kolla/config_files - run: chown -R tempest.tempest /var/lib/tempest diff --git a/container-images/tcib/base/os/tempest/tempest_sudoers b/container-images/tcib/base/os/tempest/tempest_sudoers deleted file mode 100644 index 0b7b4a87..00000000 --- a/container-images/tcib/base/os/tempest/tempest_sudoers +++ /dev/null @@ -1 +0,0 @@ -tempest ALL=(ALL) NOPASSWD: ALL