Skip to content
Snippets Groups Projects
Commit d073cbe4 authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

Simplify start_ood_proxy job to debug yaml syntax error

- Remove unnecessary setup steps and variables
parent ad77b76d
No related branches found
No related tags found
1 merge request!91WIP: Create pipeline job for deploy ood proxy node
Pipeline #11399 failed
...@@ -186,7 +186,7 @@ build_gpu_image: ...@@ -186,7 +186,7 @@ build_gpu_image:
- packer validate openstack-gpu - packer validate openstack-gpu
- openstack server delete --wait $GPU_PLACEHOLDER_NAME - openstack server delete --wait $GPU_PLACEHOLDER_NAME
- packer build -machine-readable openstack-gpu | tee gpu_build.log || FAILED=true - packer build -machine-readable openstack-gpu | tee gpu_build.log || FAILED=true
- openstack server create --image $GPU_PLACEHOLDER_IMAGE --network cicd-net --flavor $GPU_PLACEHOLDER_FLAVOR $GPU_PLACEHOLDER_NAME
- | - |
if [ "$FAILED" = true ]; then if [ "$FAILED" = true ]; then
exit 1 exit 1
...@@ -403,32 +403,18 @@ stop_review: ...@@ -403,32 +403,18 @@ stop_review:
start_ood_proxy: start_ood_proxy:
stage: deploy stage: deploy
script:
- echo "Deploy OOD proxy"
environment: environment:
name: knightly name: knightly
tags: tags:
- build - build
variables:
PROXY_INSTANCE_NAME: "ood-proxy-${CI_COMMIT_REF_SLUG}"
PROXY_FLAVOR: "m1.small"
script: script:
- | - |
openstack server create \ - openstack server create --image $GPU_PLACEHOLDER_IMAGE --network cicd-net --flavor $GPU_PLACEHOLDER_FLAVOR $GPU_PLACEHOLDER_NAME
--image $BUILT_OOD_IMAGE_ID \
--flavor $PROXY_FLAVOR \
--network $OOD_INSTANCE_NETWORK \
--security-group ood-https-ports \
--security-group allow-ssh \
--wait \
$PROXY_INSTANCE_NAME
- export PROXY_IP=$(openstack server show $PROXY_INSTANCE_NAME -f value -c addresses | cut -d'=' -f2) - export PROXY_IP=$(openstack server show $PROXY_INSTANCE_NAME -f value -c addresses | cut -d'=' -f2)
- echo "OOD Proxy started with IP: $PROXY_IP" - echo "OOD Proxy started with IP: $PROXY_IP"
- | - |
ansible-playbook -i "$PROXY_IP," \
-u centos \
--private-key $SSH_PRIV_KEY \
-e "ood_portal_generator_ssl_cert=/etc/pki/tls/certs/ood.crt" \
-e "ood_portal_generator_ssl_key=/etc/pki/tls/private/ood.key" \
CRI_XCBC/ood.yml
when: manual when: manual
rules: rules:
- if: $CI_PIPELINE_SOURCE == "schedule" - if: $CI_PIPELINE_SOURCE == "schedule"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment