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
66
forks
source link
The playbook is stuck forever at the step "TASK [jump-server : jump-server - group nogroup]" #560
## Cluster
PROVIDER: custom
# CLUSTER_NAME normally comes from TF output...here we make it consistent with the existing cluster name.
CLUSTER_NAME: GEL-k8s-oss
NAMESPACE: dac
## MISC
DEPLOY: true # Set to false to stop at generating the manifest
## Storage - we let the tool create the SC for us
V4_CFG_MANAGE_STORAGE: true
# keep JUMP_SVR_RWX_FILESTORE_PATH default value that corresponds to the mount point created by the IaC tool
V4_CFG_RWX_FILESTORE_ENDPOINT: pdcesx02215.race.sas.com # we need to set this because this information can not be pulled from a TF state.
## JUMP VM ACCESS TO PREPARE NFS DIRECTORIES
JUMP_SVR_PRIVATE_KEY: '~/.ssh/id_rsa'
JUMP_SVR_USER: cloud-user # mandatory for V4_CFG_MANAGE_STORAGE to trigger
JUMP_SVR_HOST: sasnode01 # mandatory for V4_CFG_MANAGE_STORAGE to trigger
## SAS Order API Access
V4_CFG_SAS_API_KEY: 'XXXX'
V4_CFG_SAS_API_SECRET: 'XXXX'
V4_CFG_ORDER_NUMBER: 9CYNLY
## CR Access
# V4_CFG_CR_USER: <container_registry_user>
# V4_CFG_CR_PASSWORD: <container_registry_password>
## Ingress
V4_CFG_INGRESS_TYPE: ingress
V4_CFG_INGRESS_FQDN: "dac.osk-ing-stud3.gelenable.sas.com"
V4_CFG_TLS_MODE: "full-stack" # [full-stack|front-door|disabled]
## Postgres
#V4_CFG_POSTGRES_SERVERS:
# default:
# internal: true
## Postgres
V4_CFG_POSTGRES_SERVERS:
default:
internal: false
admin: postgres
password: "XXXXX"
fqdn: rext03-0072.race.sas.com
ssl_enforcement_enabled: true
database: SharedServices
# CA cert for Postgres (to be added in the trustore)
V4_CFG_TLS_TRUSTED_CA_CERTS: /etc/ssl/certs/ssl-cert-sas-rext03-0072.pem
## LDAP
V4_CFG_EMBEDDED_LDAP_ENABLE: true
## Consul UI
#V4_CFG_CONSUL_ENABLE_LOADBALANCER: false
## SAS/CONNECT
V4_CFG_CONNECT_ENABLE_LOADBALANCER: false
## Cadence and version
V4_CFG_CADENCE_NAME: 'stable'
V4_CFG_CADENCE_VERSION: '2024.03'
## CAS Configuration
V4_CFG_CAS_WORKER_COUNT: '1'
V4_CFG_CAS_ENABLE_BACKUP_CONTROLLER: false
V4_CFG_CAS_ENABLE_LOADBALANCER: false
# Monitoring and logging tools
# for upstream open-source K8s it must be set
V4M_STORAGECLASS: sas
V4M_BASE_DOMAIN: "osk-ing-stud3.gelenable.sas.com"
V4M_GRAFANA_PASSWORD: "Lnxsas!2021"
V4M_KIBANA_PASSWORD: "Lnxsas!2021"
# allow ELASTIC SEARCH to be properly configured
V4_CFG_ELASTICSEARCH_ENABLE: true
# required when we have used viya4-iac-k8s
## 3rd Party
# Ingress Controller
INGRESS_NGINX_CONFIG:
controller:
service:
externalTrafficPolicy: Cluster
# loadBalancerIP: # Optional : Assigns a static IP to the SAS Viya ingress controller
loadBalancerSourceRanges: [] # Not supported on open source kubernetes
annotations:
# Metrics server is already pre-installed with IaC for Upstream Open Source
METRICS_SERVER_ENABLED: false
# NFS Subdir External Provisioner - SAS default storage class
# Updates to support open source Kubernetes
NFS_CLIENT_NAME: nfs-subdir-external-provisioner-sas
NFS_CLIENT_CHART_VERSION: 4.0.16
Steps to Reproduce
deploy K8s with the viya4-iac-k8s tool, then run the viya4-deployment project's playbook:
cd ~/viya4-deployment
ansible-playbook \
-e BASE_DIR=~/project/deploy/dac-working \
-e KUBECONFIG=~/.kube/config \
-e CONFIG=~/project/deploy/dac-working/ansible-vars.yaml \
-e JUMP_SVR_PRIVATE_KEY=$HOME/.ssh/id_rsa \
-e PROVIDER=custom \
playbooks/playbook.yaml --tags "viya, install"
Expected Behavior
the playbook should complete
Actual Behavior
the playbook remained blocked after this task :
TASK [jump-server : jump-server - group nogroup]
Additional Context
the playbook remained blocked after this task :
TASK [jump-server : jump-server - group nogroup]
Viya4 Deployment Version Details
6.20.1 (latest)
Ansible Variable File Details
Steps to Reproduce
deploy K8s with the viya4-iac-k8s tool, then run the viya4-deployment project's playbook: cd ~/viya4-deployment ansible-playbook \ -e BASE_DIR=~/project/deploy/dac-working \ -e KUBECONFIG=~/.kube/config \ -e CONFIG=~/project/deploy/dac-working/ansible-vars.yaml \ -e JUMP_SVR_PRIVATE_KEY=$HOME/.ssh/id_rsa \ -e PROVIDER=custom \ playbooks/playbook.yaml --tags "viya, install"
Expected Behavior
the playbook should complete
Actual Behavior
the playbook remained blocked after this task : TASK [jump-server : jump-server - group nogroup]
Additional Context
the playbook remained blocked after this task : TASK [jump-server : jump-server - group nogroup]
there are no error in the previous tasks.
Here is the ansible debug log (-vvvv) :
References
No response
Code of Conduct