-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with Downloading Entitlements File #548
Comments
does anyone has similar experience on why this could happen. k8 clusters is installed through iac and we are deploying sas through this git hub project. and we have sas images in private jfrog repo and we are using certmanager. we are really struck at this issue. |
Hi @SASCloudLearner , I have no experience with this specific configuration but it seems like SAS is trying to reach out to https://ses.sas.download/ses/entitlements.json and is blocked (by the proxy?). Not sure why it is reaching out to SAS CR is you are using JFrog. On the other hand, the parameters you posted here seem to be lacking. Not sure if this is just for masking sensitive data or this is really how you entered the values in ansible-vars.yaml. For example:
In addition you wrote |
Hello Eyal, Here are the details from ansible-vars file and we tried various options but with same results. Also, any idea about why ingress could not be able to pickup external ip. we are using kubevip. ClusterPROVIDER: custom #Requirememts, extra added MISCDEPLOY: true # Set to false to stop at generating the manifest JumpJUMP_SVR_HOST: 10.0.x.x RWX FilestoreV4_CFG_RWX_FILESTORE_ENDPOINT: 10.0.x.x StorageV4_CFG_MANAGE_STORAGE: true SAS API AccessV4_CFG_SAS_API_KEY: "xxxxxxxxxx" CR AccessV4_CFG_CR_USER:docker-user IngressV4_CFG_INGRESS_TYPE: "ingress" #V4_CFG_TLS_MODE: full-stack # [full-stack|front-door|ingress-only|disabled] #V4_CFG_INGRESS_MODE: public #INGRESS_NGINX_CONFIG: controller:service:externalTrafficPolicy: ClusterV4_CFG_POSTGRES_SERVERS: LDAPV4_CFG_EMBEDDED_LDAP_ENABLE: true Consul UIV4_CFG_CONSUL_ENABLE_LOADBALANCER: false SAS/CONNECTV4_CFG_CONNECT_ENABLE_LOADBALANCER: false TLSV4_CFG_TLS_GENERATOR: "cert-manager" #CAS MPP Settings Monitoring and Logginguncomment and update the below values when deploying the viya4-monitoring-kubernetes stackV4M_BASE_DOMAIN: <base_domain>Viya Start and Stop Scheduleuncomment and update the values below with CronJob schedule expressions if you wouldlike to start and stop your Viya Deployment on a scheduleV4_CFG_VIYA_START_SCHEDULE: "0 7 * * 1-5"V4_CFG_VIYA_STOP_SCHEDULE: "0 19 * * 1-5" |
Hi @SASCloudLearner , Here's what I think is happening. I am not 100% sure perhaps others can chime in. Since you provided values for V4_CFG_DEPLOYMENT_ASSETS and V4_CFG_CERTS parameters so it means you downloaded them yourself before running this project but you did not provide value for V4_CFG_LICENSE parameter then the project tries to download the license file by itself (using V4_CFG_SAS_API_KEY and V4_CFG_SAS_API_SECRET that you provided) as explained here: https://github.com/sassoftware/viya4-deployment/blob/main/docs/CONFIG-VARS.md#sas-software-order and probably then the proxy error happens. Can you try to manually download the license file as well and point to it using the V4_CFG_LICENSE parameter like you pointed to the assets file and the certs file? Note that if you run the project using Docker, you need to read this as well: https://github.com/sassoftware/viya4-deployment/blob/main/docs/user/DockerVolumeMounts.md Update 1: Examine the contents of this file in the deployment folder: "site-config/cr_access.json" does it point to JFrog correctly? You should have this file generated for you. Do you also have in "kustomization.yaml" a reference to a file named "sas-image-pull-secrets.yaml"? Update 2: Verify you have in your "kustomization.yaml" reference to a file named "mirror.yaml" and that this file contains correct references to your JFrog CR. I assume you mirrored SAS LTS 2023.10 to JFrog using the SAS Mirror Manager utility, right? |
Hey @SASCloudLearner, Just to verify, you stated your cluster was behind a proxy and it looks like connection is blocked to external hosts? You can verify if this is true by whether or not the The deployment operator pod will download the entitlements from ses.sas.download during it's execution unless the "repositoryWarehouse" URL is specified in the We have an open feature request, #372 to add support for this repositoryWarehouse option to better support theses dark site/air gapped type deployments Also thanks @miaeyg for providing some additional areas to look into to debug this issue. |
Hi @jarpat I believe you are correct, I forgot about this... I recall the workaround is to avoid using the deployment operator by setting: V4_DEPLOYMENT_OPERATOR_ENABLED: false I also used: DEPLOY: false And then I deployed manually using "kubectl". This was done with the advice of Josh Coburn! |
Hi Eyal, Thanks Again for your reponse. Thanks, |
Hi @jarpat, Thank you for reference to the open feature. I will keep an eye on that, incase there is any update as this option would be really helpful while deploying at most of the customer location where access to internet is limited. Thanks, |
Have you tried to add/modify your ansible-vars.yaml to include these two lines? V4_DEPLOYMENT_OPERATOR_ENABLED: false If not, please try and re-run the "viya,install" again pointing to a new folder so it will create new kustomization.yaml and then try to install this kustomization.yaml manually with kubectl commands using the instructions here for LTS 2023.10: https://documentation.sas.com/doc/en/itopscdc/v_045/dplyml0phy0dkr/p127f6y30iimr6n17x2xe9vlt54q.htm#p0n0x0jvog312an1wggpgnam1jsw . I suggest you also delete all created objects in the K8S cluster and also the SAS Viya namespace so you start fresh. This worked for me in an air gapped deploy in AWS with ECR used as the Container Registry (equivalent of your JFrog). I hope this helps. |
Hi @miaeyg |
Closing as duplicate of #372, |
Viya4 Deployment Version Details
2023.10 LTS on on prem k8 cluster
Ansible Variable File Details
SAS API Access
V4_CFG_SAS_API_KEY: ""
V4_CFG_SAS_API_SECRET: ""
V4_CFG_ORDER_NUMBER: ""
V4_CFG_CADENCE_VERSION: "2023.10"
V4_CFG_CADENCE_NAME: "lts"
CR Access
V4_CFG_CR_USER:
V4_CFG_CR_PASSWORD:
V4_CFG_CR_URL: jfrog
Steps to Reproduce
deploy infra thorugh k8 iac on vpshere
deploy viya through sas deployment project.
proxy exists
Expected Behavior
sas pods should be starting
Actual Behavior
we see that no pods are created in sas namespace and when i run kubectl describe sasdeployment -n viyaontw i see below error
Messages:
Error loading entitlements file: "https://ses.sas.download/ses/entitlements.json"
Failed to get 'https://ses.sas.download/ses/entitlements.json'
Get "https://ses.sas.download/ses/entitlements.json": dial tcp 149.173.160.82:443: connect: connection timed
Additional Context
No response
References
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: