sassoftware / viya4-deployment

This project contains Ansible code that creates a baseline in an existing Kubernetes environment for use with the SAS Viya Platform, generates the manifest for an order, and then can also deploy that order into the Kubernetes environment specified.
Apache License 2.0
71 stars 64 forks source link

503 when opening FQDN #120

Closed YuryShkoda closed 3 years ago

YuryShkoda commented 3 years ago

Install script:

cp ../viya4-iac-azure/terraform.tfstate ./

ansible-playbook \
  -e BASE_DIR=$HOME/viya4-deployment \
  -e CONFIG=$HOME/viya4-deployment/ansible-vars.yaml \
  -e TFSTATE=$HOME/viya4-deployment/terraform.tfstate \
  -e JUMP_SVR_PRIVATE_KEY=$HOME/viya4-deployment/keys/id_rsa \
  playbook.yaml --tags "baseline,viya,install" -vvv

Script summary (no errors in the log):

PLAY RECAP *********************************************************************
localhost                  : ok=86   changed=22   unreachable=0    failed=0    skipped=51   rescued=0    ignored=0   

Thursday 22 July 2021  12:09:28 +0000 (0:00:00.181)       0:02:29.616 ********* 
=============================================================================== 
vdm : manifest - deploy ------------------------------------------------ 96.06s
/home/yurshk/viya4-deployment/roles/vdm/tasks/deploy.yaml:39 ------------------
vdm : kustomize - Generate deployment manifest ------------------------- 19.30s
/home/yurshk/viya4-deployment/roles/vdm/tasks/kustomize.yaml:74 ---------------
vdm : prereqs - cluster-local deploy ------------------------------------ 3.95s
/home/yurshk/viya4-deployment/roles/vdm/tasks/deploy.yaml:27 ------------------
vdm : prereqs - cluster-wide -------------------------------------------- 2.48s
/home/yurshk/viya4-deployment/roles/vdm/tasks/deploy.yaml:14 ------------------
vdm : assets - Get License ---------------------------------------------- 2.15s
/home/yurshk/viya4-deployment/roles/vdm/tasks/assets.yaml:13 ------------------
vdm : copy - VDM transformers ------------------------------------------- 2.01s
/home/yurshk/viya4-deployment/roles/vdm/tasks/copy_overlay.yaml:13 ------------
vdm : assets - Download ------------------------------------------------- 1.92s
/home/yurshk/viya4-deployment/roles/vdm/tasks/assets.yaml:26 ------------------
vdm : copy - VDM generators --------------------------------------------- 1.62s
/home/yurshk/viya4-deployment/roles/vdm/tasks/copy_overlay.yaml:13 ------------
vdm : Download viya4-orders-cli ----------------------------------------- 1.56s
/home/yurshk/viya4-deployment/roles/vdm/tasks/assets.yaml:3 -------------------
jump-server : jump-server - create folders ------------------------------ 1.04s
/home/yurshk/viya4-deployment/roles/jump-server/tasks/main.yml:38 -------------
baseline : Deploy ingress-nginx ----------------------------------------- 0.87s
/home/yurshk/viya4-deployment/roles/baseline/tasks/ingress-nginx.yaml:2 -------
baseline : Deploy cert-manager ------------------------------------------ 0.86s
/home/yurshk/viya4-deployment/roles/baseline/tasks/cert-manager.yaml:2 --------
baseline : Deploy nfs-subdir-external-provisioner ----------------------- 0.84s
/home/yurshk/viya4-deployment/roles/baseline/tasks/nfs-subdir-external-provisioner.yaml:36 
vdm : assets - Extract downloaded assets -------------------------------- 0.84s
/home/yurshk/viya4-deployment/roles/vdm/tasks/assets.yaml:61 ------------------
Gathering Facts --------------------------------------------------------- 0.81s
/home/yurshk/viya4-deployment/playbook.yaml:1 ---------------------------------
baseline : Remove deprecated efs-provisioner namespace ------------------ 0.75s
/home/yurshk/viya4-deployment/roles/baseline/tasks/nfs-subdir-external-provisioner.yaml:24 
baseline : Check for metrics service ------------------------------------ 0.75s
/home/yurshk/viya4-deployment/roles/baseline/tasks/metrics-server.yaml:2 ------
vdm : template ---------------------------------------------------------- 0.71s
/home/yurshk/viya4-deployment/roles/vdm/tasks/main.yaml:60 --------------------
vdm : Create namespace -------------------------------------------------- 0.67s
/home/yurshk/viya4-deployment/roles/vdm/tasks/deploy.yaml:3 -------------------
common : tfstate - export kubeconfig ------------------------------------ 0.58s
/home/yurshk/viya4-deployment/roles/common/tasks/main.yaml:46 -----------------

Infra: image

Problem When opening FQDN, server responded with:

Status Code: 503 Service Temporarily Unavailable
thpang commented 3 years ago

That is correct. That's not an error. The ingress-nginx endpoint is there, but SAS Logon has not started. Can you verify that the Viya 4 system is active?

YuryShkoda commented 3 years ago

@thpang , how can I verify it?

thpang commented 3 years ago

You should start here with the SAS documentation on SAS Viya You will need to check your deployment and pods. There you can review the logs of the pods and see their status.