BookmarkSubscribeRSS Feed
ahmedaldorr
Fluorite | Level 6

#ansible-playbook system-assessment.yml

 

TASK [Add host connection results to stored data] *********************************************************************************************************************************************
fatal: [deployTarget]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'host_keys'. 'dict object' has no attribute 'host_keys'\n\nThe error appears to be in '/sas/install/sas_viya_playbook/internal/validate.yml': line 80, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n when: host_connection_register is defined and host_connection_register.failed is defined and host_connection_register.failed\n - name: Add host connection results to stored data\n ^ here\n"}

 

Considering the deployment on one host.

Please help

7 REPLIES 7
Chethandeepak
Calcite | Level 5

What is the ansible version using to deploy viya

ahmedaldorr
Fluorite | Level 6

[root@n2 ~]# ansible --version
ansible [core 2.16.5]
config file = None
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.10/site-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible
python version = 3.10.14 (main, Apr 3 2024, 20:06:34) [GCC 8.5.0 20210514 (Red Hat 8.5.0-20)] (/usr/local/bin/python3.10)
jinja version = 3.1.3
libyaml = True
[root@n2 ~]# python -version
bash: python: command not found...
^C
[root@n2 ~]# python3 --version
Python 3.10.14[root@n2 ~]# ansible --version
ansible [core 2.16.5]
config file = None
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.10/site-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible
python version = 3.10.14 (main, Apr 3 2024, 20:06:34) [GCC 8.5.0 20210514 (Red Hat 8.5.0-20)] (/usr/local/bin/python3.10)
jinja version = 3.1.3
libyaml = True

[root@n2 ~]# python3 --version
Python 3.10.14

JuanS_OCS
Amethyst | Level 16

Hello, could you get also the output for:

 

python3.10 -m pip show ansible

 

Or similar. The versions might be different of what you would expect.

 

https://documentation.sas.com/doc/en/calcdc/3.5/dplyml0phy0lax/p1puupgtsay2r5n1h6k11n6lpl97.htm 

ahmedaldorr
Fluorite | Level 6

[root@n2 ~]# python3 --version
Python 3.10.14
[root@n2 ~]# python3.10 -m pip show ansible
Name: ansible
Version: 9.4.0
Summary: Radically simple IT automation
Home-page: https://ansible.com/
Author: Ansible, Inc.
Author-email: info@ansible.com
License: GPL-3.0-or-later
Location: /usr/local/lib/python3.10/site-packages
Requires: ansible-core
Required-by:

JuanS_OCS
Amethyst | Level 16

I am personally not sure that your versions of ansible or Jinja are the right ones.

 

This is based on https://documentation.sas.com/doc/en/calcdc/3.5/dplyml0phy0lax/p1gclfomj2px4ln1094gh8tj52mj.htm#n0va...

 

Did you check those with SAS Technical Support?

Might be wise, to be sure.

 

These kind of errors normally come from invalid pre-requirements and/or incompatibilities between versions and Operating Systems.

ahmedaldorr
Fluorite | Level 6

My linux version is RHEL 8.6

Chethandeepak
Calcite | Level 5

try using ansible core -  2.12.x and deploy viya.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
Discussion stats
  • 7 replies
  • 1111 views
  • 1 like
  • 3 in conversation