12 Commits

Author SHA1 Message Date
6004ccf96b chore: Added definition to create pvc 2024-07-19 01:33:01 -06:00
9a8088d1fd Merge pull request 'fix rabbit queue initialization on slow server' (#5) from fix/allow-for-failed-rabbit-queue-initialization into main 2024-07-10 20:55:52 +00:00
35296158fd chore: update helm dependencies 2024-07-10 14:54:32 -06:00
c10ad33ced chore: increased retry to accomodate slow server 2024-07-10 14:51:40 -06:00
ed9066e945 Merge pull request 'chore: work-around rabbit config issues on slow servers' (#4) from fix/allow-for-failed-rabbit-queue-initialization into main 2024-07-03 07:25:50 +00:00
ed99e2cca4 chore: add code to retry rabbit configuration 2024-07-03 01:24:53 -06:00
9311df661e Merge pull request 'fix: added retry for slow rabbit api initilization' (#3) from fix/slow-rabbitmq-api into main 2024-07-03 03:26:46 +00:00
f01717e9c8 chore: increased retry due to slow rabbit ui startup 2024-07-02 21:25:55 -06:00
f27e2054c9 Merge pull request 'chore: update chart dependencies' (#2) from fix/update-chart-deps into main 2024-07-02 19:42:38 +00:00
3d71f41308 updated chart deps 2024-07-02 13:42:05 -06:00
6e00fe5013 Merge pull request 'chore: updated cluster name' (#1) from feature/update-cluster-name into main 2024-07-02 19:37:36 +00:00
d806de4713 chore: updated cluster name 2024-07-02 13:36:57 -06:00
4 changed files with 43 additions and 12 deletions

View File

@@ -53,7 +53,7 @@ spec:
- name: githost - name: githost
value: $(params.githost) value: $(params.githost)
- name: statusurl - name: statusurl
value: https://console-openshift-console.apps.ocp.endofday.com/pipelines/ns/goghvideo-cicd-pipeline/pipeline-runs value: https://console-openshift-console.apps.snoballs.endofday.com/pipelines/ns/goghvideo-cicd-pipeline/pipeline-runs
- name: revision - name: revision
value: $(params.revision) value: $(params.revision)
- name: repofullname - name: repofullname
@@ -191,19 +191,50 @@ spec:
RABBITPASS=$(oc -n goghvideo-test-${RANDOMID} get secret/rabbitmq-default-user -o template='{{ "{{" }} .data.password | base64decode {{ "}}" }}') RABBITPASS=$(oc -n goghvideo-test-${RANDOMID} get secret/rabbitmq-default-user -o template='{{ "{{" }} .data.password | base64decode {{ "}}" }}')
oc -n goghvideo-test-${RANDOMID} create secret generic amqp --from-literal=url=amqp://${RABBITUSER}:${RABBITPASS}@${RABBITHOST}/ oc -n goghvideo-test-${RANDOMID} create secret generic amqp --from-literal=url=amqp://${RABBITUSER}:${RABBITPASS}@${RABBITHOST}/
curl -O http://${RABBITHOST}:15672/cli/rabbitmqadmin curl --retry 12 --retry-connrefused --retry-delay 10 -O http://${RABBITHOST}:15672/cli/rabbitmqadmin
chmod +x rabbitmqadmin chmod +x rabbitmqadmin
./rabbitmqadmin -H ${RABBITHOST} -u ${RABBITUSER} -p ${RABBITPASS} declare exchange name=conversion type=topic x=0; until [[ -n $( ./rabbitmqadmin -H ${RABBITHOST} -u ${RABBITUSER} -p ${RABBITPASS} declare exchange name=conversion type=topic 2>/dev/null ) || $x -eq 10 ]]; do echo "waiting for exchange to be created" && sleep 5 && ((x++)); done
./rabbitmqadmin -H ${RABBITHOST} -u ${RABBITUSER} -p ${RABBITPASS} declare queue name=transcode durable=true queue_type=quorum if [[ "${x}" -eq 10 ]]; then exit 1; fi
./rabbitmqadmin -H ${RABBITHOST} -u ${RABBITUSER} -p ${RABBITPASS} declare queue name=notification durable=true queue_type=quorum
./rabbitmqadmin -H ${RABBITHOST} -u ${RABBITUSER} -p ${RABBITPASS} declare queue name=upload-nextcloud durable=true queue_type=quorum
./rabbitmqadmin -H ${RABBITHOST} -u ${RABBITUSER} -p ${RABBITPASS} declare queue name=complete durable=true queue_type=quorum
./rabbitmqadmin -H ${RABBITHOST} -u ${RABBITUSER} -p ${RABBITPASS} declare binding source="conversion" destination_type="queue" destination="transcode" routing_key="transcode" x=0; until [[ -n $( ./rabbitmqadmin -H ${RABBITHOST} -u ${RABBITUSER} -p ${RABBITPASS} declare queue name=transcode durable=true queue_type=quorum ) || $x -eq 10 ]]; do echo "waiting for exchange to be created" && sleep 5 && ((x++)); done
./rabbitmqadmin -H ${RABBITHOST} -u ${RABBITUSER} -p ${RABBITPASS} declare binding source="conversion" destination_type="queue" destination="notification" routing_key="notification" if [[ "${x}" -eq 10 ]]; then exit 1; fi
./rabbitmqadmin -H ${RABBITHOST} -u ${RABBITUSER} -p ${RABBITPASS} declare binding source="conversion" destination_type="queue" destination="upload-nextcloud" routing_key="upload-nextcloud"
./rabbitmqadmin -H ${RABBITHOST} -u ${RABBITUSER} -p ${RABBITPASS} declare binding source="conversion" destination_type="queue" destination="complete" routing_key="complete" x=0; until [[ -n $( ./rabbitmqadmin -H ${RABBITHOST} -u ${RABBITUSER} -p ${RABBITPASS} declare queue name=notification durable=true queue_type=quorum ) || $x -eq 10 ]]; do echo "waiting for exchange to be created" && sleep 5 && ((x++)); done
if [[ "${x}" -eq 10 ]]; then exit 1; fi
x=0; until [[ -n $( ./rabbitmqadmin -H ${RABBITHOST} -u ${RABBITUSER} -p ${RABBITPASS} declare queue name=upload-nextcloud durable=true queue_type=quorum ) || $x -eq 10 ]]; do echo "waiting for exchange to be created" && sleep 5 && ((x++)); done
if [[ "${x}" -eq 10 ]]; then exit 1; fi
x=0; until [[ -n $( ./rabbitmqadmin -H ${RABBITHOST} -u ${RABBITUSER} -p ${RABBITPASS} declare queue name=complete durable=true queue_type=quorum ) || $x -eq 10 ]]; do echo "waiting for exchange to be created" && sleep 5 && ((x++)); done
if [[ "${x}" -eq 10 ]]; then exit 1; fi
x=0; until [[ -n $( ./rabbitmqadmin -H ${RABBITHOST} -u ${RABBITUSER} -p ${RABBITPASS} declare binding source="conversion" destination_type="queue" destination="transcode" routing_key="transcode" ) || $x -eq 10 ]]; do echo "waiting for exchange to be created" && sleep 5 && ((x++)); done
if [[ "${x}" -eq 10 ]]; then exit 1; fi
x=0; until [[ -n $( ./rabbitmqadmin -H ${RABBITHOST} -u ${RABBITUSER} -p ${RABBITPASS} declare binding source="conversion" destination_type="queue" destination="notification" routing_key="notification" ) || $x -eq 10 ]]; do echo "waiting for exchange to be created" && sleep 5 && ((x++)); done
if [[ "${x}" -eq 10 ]]; then exit 1; fi
x=0; until [[ -n $( ./rabbitmqadmin -H ${RABBITHOST} -u ${RABBITUSER} -p ${RABBITPASS} declare binding source="conversion" destination_type="queue" destination="upload-nextcloud" routing_key="upload-nextcloud" ) || $x -eq 10 ]]; do echo "waiting for exchange to be created" && sleep 5 && ((x++)); done
if [[ "${x}" -eq 10 ]]; then exit 1; fi
x=0; until [[ -n $( ./rabbitmqadmin -H ${RABBITHOST} -u ${RABBITUSER} -p ${RABBITPASS} declare binding source="conversion" destination_type="queue" destination="complete" routing_key="complete" ) || $x -eq 10 ]]; do echo "waiting for exchange to be created" && sleep 5 && ((x++)); done
if [[ "${x}" -eq 10 ]]; then exit 1; fi
oc apply -f - <<EOF
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-conversion
namespace: goghvideo-test-${RANDOMID}
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 5Gi
storageClassName: nfs-client
volumeMode: Filesystem
echo -n "goghvideo-test-${RANDOMID}" > $(results.namespace.path) echo -n "goghvideo-test-${RANDOMID}" > $(results.namespace.path)
runAfter: runAfter:
@@ -375,7 +406,7 @@ spec:
- name: quayhost - name: quayhost
value: {{ .Values.quayHostname }} value: {{ .Values.quayHostname }}
- name: statusurl - name: statusurl
value: https://console-openshift-console.apps.ocp.endofday.com/pipelines/ns/goghvideo-cicd-pipeline/pipeline-runs value: https://console-openshift-console.apps.snoballs.endofday.com/pipelines/ns/goghvideo-cicd-pipeline/pipeline-runs
- name: revision - name: revision
value: $(params.revision) value: $(params.revision)
- name: repofullname - name: repofullname