cancel
Showing results for 
Search instead for 
Did you mean: 

Veritas infoscale automation using ansible

gunasekhar
Level 0

Hi, 

i treied to automate veritas using ansible i failed at first strep my play is below.

---
- hosts: localhost
gather_facts: false
become: root
any_errors_fatal: true
tasks:
- name: Facters
veritas_infoscale:
module: site_facters
register: facts
- name: Install InfoScale
veritas_infoscale:
module: yum
repository_name: LocalRepository
repository_baseurl: ftp:/10.20.10.5/var/tmp/dvd1-redhatlinux/rhel8_x86_64
gpgcheck: 1
gpgkey: ftp://10.20.10.5/var/tmp/dvd1-redhatlinux/rhel8_x86_64
product: ENTERPRISE
product_version: 7.4.2
facters: "{{ groups['all'] |map('extract', hostvars, ['facts','infoscale_facts'])| select()|list }}"
state: present

gunasekhar_0-1629126016873.png

2) i copied my python modules provided by veritas in /usr/share/ansible/plugins/modules/

3) but im getting below errors while executing it 

"msg": "Python Exception has occurred. Please check Ansible logs saved in /opt/VRTS/install/ansible/logs/ansible_play_20210816123404/Test-VM1-yum-20210816123404.log",
"rc": 111

 

and the logs are below 

[root@Test-VM1 ~]# cat /opt/VRTS/install/ansible/logs/ansible_play_20210816123404/Test-VM1-yum-20210816123404.log
16 Aug 2021 12:34:04 ERROR Exception Type:<class 'KeyError'>
16 Aug 2021 12:34:04 ERROR Exception Message:'product'
16 Aug 2021 12:34:04 ERROR Exception Traceback: File "/tmp/ansible_veritas_infoscale_payload_uifsdbws/ansible_veritas_infoscale_payload.zip/ansible/modules/veritas_infoscale.py", line 90018, in main

File "/tmp/ansible_veritas_infoscale_payload_uifsdbws/ansible_veritas_infoscale_payload.zip/ansible/modules/veritas_infoscale.py", line 3495, in execute

File "/tmp/ansible_veritas_infoscale_payload_uifsdbws/ansible_veritas_infoscale_payload.zip/ansible/modules/veritas_infoscale.py", line 3552, in yum_state_present

 

 

 

1 REPLY 1

frankgfan
Level 6
   VIP   

first, upgrade to  the latest version (like 7.4.3) with the latest patch applied.

 

also check the following python files

16 Aug 2021 12:34:04 ERROR Exception Traceback: File "/tmp/ansible_veritas_infoscale_payload_uifsdbws/ansible_veritas_infoscale_payload.zip/ansible/modules/veritas_infoscale.py", line 90018, in main

File "/tmp/ansible_veritas_infoscale_payload_uifsdbws/ansible_veritas_infoscale_payload.zip/ansible/modules/veritas_infoscale.py", line 3495, in execute

File "/tmp/ansible_veritas_infoscale_payload_uifsdbws/ansible_veritas_infoscale_payload.zip/ansible/modules/veritas_infoscale.py", line 3552, in yum_state_present

 

these *.py files are text files and you should be able to get a rough idea of what might happened and try to rectiofy the problem.