BookmarkSubscribeRSS Feed
MYAKKALA
Calcite | Level 5

Dear All,

I have SAS Viya 3.5 installed in multi-tenant environment (1.micro services, 2.cas server) in RHEL 7.9 and license got expired. Received new license renewal and followed the steps to renew the license. 

 

  1. Taken backup for current license files into a backup location.
  2. copy new license files (a .txt file and a .jwt file) in "/opt/sas/sas_viya_playbook/" location.
  3. Taken backup for vars.yml file
  4. Modified Ansible playbook to point to the new license files in sas_viya_playbook/vars.yml, locate LICENSE_FILENAME and LICENSE_COMPOSITE_FILENAME, and replace the current license filename with the corresponding new license filename.
  5. Make sure that license files (a .txt file and a .jwt file) reside on your CAS controller machine in the following directory: /opt/sas/viya/config/etc/cas/default/.
  6. Update the symbolic link for sas_license.txt to point to the new CAS license file. (This should be the .jwt file.

        cd /opt/sas/viya/config/etc/cas/default

        ln -sf  SASViyaV0300_xxxxxxx_xxxxxx_Linux_x86-64.jwt sas_license.txt

 

    7.  Run the following command under the path using sas user  /opt/sas/sas_viya_playbook/  

             ansible-playbook -i  inventory.ini apply-license.yml

Did i missed any steps before running apply-license command.  

 

After running this command I am getting the following errors. 

 

TASK [create-snapshot : Copy system information to the snapshot directory] ************************************************************************************
[WARNING]: sftp transfer mechanism failed on [casserver.com]. Use ANSIBLE_DEBUG=1 to see detailed information
[WARNING]: scp transfer mechanism failed on [casserver.com]. Use ANSIBLE_DEBUG=1 to see detailed information
fatal: [casserver]: FAILED! => {"changed": false, "checksum": "c515bc4bb8bdf51b6c947b5f22f4ca9061d81745", "dest": "/opt/sas/sas_viya_playbook/snapshot/16467177 77/casserver.out", "file": "/tmp/casserver.out", "md5sum": "784418cee27fa1f0bb1a0eb5fe12cbdd", "msg": "checksum mismatch", "remote_checksum": "2785712f1b0877e6 dcba1dc475f4505d91cb565c", "remote_md5sum": null}
changed: [microservices]

NO MORE HOSTS LEFT ********************************************************************************************************************************************

PLAY RECAP ****************************************************************************************************************************************************
casserver : ok=15 changed=2 unreachable=0 failed=1 skipped=5 rescued=0 ignored=0
microservices : ok=24 changed=6 unreachable=0 failed=0 skipped=7 rescued=0 ignored=0

 

1 REPLY 1
gwootton
SAS Super FREQ
The steps to update the license are here: https://go.documentation.sas.com/doc/en/calcdc/3.5/callicense/n03000saslicensing00000admin.htm#n0300...

After saving the new license files in sas_viya_playbook/ and updating vars.yaml to reference those new files, you should be able to just run the apply_license.yaml playbook. So I don't know that you needed to perform your steps 5 and 6...
The error you're getting in ansible is saying it's trying to use scp to copy the license file for you and this is failing. Does running "ansible -m ping all -i inventory.ini" show you are able to successfully communicate with all the hosts in your inventory.ini file?
--
Greg Wootton | Principal Systems Technical Support Engineer

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1244 views
  • 2 likes
  • 2 in conversation