Hi,
I am getting following error which deploying SAS Viya 3.5 on a Red Hat Linux 8 using Ansible on the same host. I haven't edited the repo-setup.yml file which is referenced in the error message. Any hint?
================
[root@sildevdeapetan05 sas_viya_playbook]# ansible-playbook system-assessment.yml
ERROR! couldn't resolve module/action 'zypper'. This often indicates a misspelling, missing collection, or incorrect module path.
The error appears to be in '/sas/install/sas_viya_playbook/internal/repo-setup.yml': line 33, column 5, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Install sas-cleanutils
^ here
==================
Thanks.
Zypper is the command in Suse Linux Eneterprise Server (SLES) corresponding to in Red Hat Enterprise linux.
It would be good if you can make sure that you are using the procedures / files for RHEL an not SLES.
Sajid,
Thank you for replying and clarifying that zypper is for SLES; however, I have mirrored repository only for Red Hat and installing on Red Hat as well.
# ./mirrormgr mirror --deployment-data SAS_Viya_deployment_data.zip -p /mnt/gfs/temp/sas_repos/ --platform x64-redhat-linux-6
Mirroring 1/16 repos/shipped/depentviya/136/depentviya-136-x64_redhat_linux_6-yum
Mirroring 2/16 repos/shipped/espcasvcf/135/espcasvcf-135-x64_redhat_linux_6-yum
Mirroring 3/16 repos/shipped/odbc/125/odbc-125-x64_redhat_linux_6-yum
Mirroring 4/16 repos/shipped/oracle/125/oracle-125-x64_redhat_linux_6-yum
Mirroring 5/16 repos/shipped/pcfile/125/pcfile-125-x64_redhat_linux_6-yum
Mirroring 6/16 repos/shipped/statviya/125/statviya-125-x64_redhat_linux_6-yum
Mirroring 7/16 repos/shipped/va/125/va-125-x64_redhat_linux_6-yum
Mirroring 8/16 repos/shipped/vcmnfnd/126/vcmnfnd-126-x64_redhat_linux_6-yum
45.24 GiB / 45.24 GiB [=========================================================] 100.00% 117.05 MiB/s 6m35s
Mirroring 9/16 sasmd/shipped/depentviya/136/depentviya-136-x64_redhat_linux_6-yumsasmd
147.05 KiB / 147.05 KiB [===========================================================] 100.00% 57.87 KiB/s 2s
Mirroring 10/16 sasmd/shipped/espcasvcf/135/espcasvcf-135-x64_redhat_linux_6-yumsasmd
253.67 KiB / 253.67 KiB [===========================================================] 100.00% 67.03 KiB/s 3s
Mirroring 11/16 sasmd/shipped/odbc/125/odbc-125-x64_redhat_linux_6-yumsasmd
128.88 KiB / 128.88 KiB [===========================================================] 100.00% 53.63 KiB/s 2s
Mirroring 12/16 sasmd/shipped/oracle/125/oracle-125-x64_redhat_linux_6-yumsasmd
137.40 KiB / 137.40 KiB [===========================================================] 100.00% 56.92 KiB/s 2s
Mirroring 13/16 sasmd/shipped/pcfile/125/pcfile-125-x64_redhat_linux_6-yumsasmd
28.78 KiB / 28.78 KiB [=============================================================] 100.00% 38.88 KiB/s 0s
Mirroring 14/16 sasmd/shipped/statviya/125/statviya-125-x64_redhat_linux_6-yumsasmd
2.40 MiB / 2.40 MiB [=============================================================] 100.00% 125.89 KiB/s 19s
Mirroring 15/16 sasmd/shipped/va/125/va-125-x64_redhat_linux_6-yumsasmd
5.63 MiB / 5.63 MiB [=============================================================] 100.00% 161.56 KiB/s 35s
Mirroring 16/16 sasmd/shipped/vcmnfnd/126/vcmnfnd-126-x64_redhat_linux_6-yumsasmd
3.37 MiB / 3.37 MiB [=============================================================] 100.00% 127.74 KiB/s 27s
Done
@gwootton Thank you for solving the mystery. I was able to narrow down that zypper error is coming if I run the deployment as root and does not get the error if deployment is run as the account created for SAS processes/admin. Your answer clarified about the reason - the difference is Ansible versions - root is using v2.10.17 and SAS admin account is using 2.9.27 (as 2.10.17 available at the system level did not pass the assessment test). Thank you so much for your help.
How its been resolved than, im using RHEL8.5 but its rediredting to zypper when I'm running system-assesment.yml . can you please explain how its been resolved?
We had to downgrade Ansible to before 2.8.4 as per a suggestion from SAS support.
Correction - had to downgrade to 2.12.
im using RHEL 8.5 so we installed ansible-core-2.12.2 .is it works for this ?
Yes, that resolved the issue for me.
# rpm -qa | grep ansible
ansible-core-2.12.2-4.el8_6.x86_64
# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.7 (Ootpa)
Did you uninstall other version(s), if any?
As per my understandig, yum vs pip will not make any difference as long as you get the correct ansible version.
It seems Ansible had zypper module in earlier versions but it has been removed in some recent releases. SAS playbook uses zypper and is not found in recent Ansible versions. So, don't have any other workaround in mind as in my case just downgrading Ansible resolved the issue.
The community.general ansible package that includes the zypper plugin is not in ansible-core. You may want to install ansible using pip instead.
For clarity: use pip install --user ansible, not pip install --user ansible-core.
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
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.