Closed lpossamai closed 5 years ago
@lpossamai: Greetings! Thanks for taking the time to open this issue. In order for the community to handle your issue effectively, we need a bit more information.
Here are the items we could not find in your description:
Please set the description of this issue with this template: https://raw.githubusercontent.com/ansible/ansible/devel/.github/ISSUE_TEMPLATE.md
!component =lib/ansible/modules/storage/purestorage/purefa_snap.py
So.. doing some digging.
The Playbook I'm using is:
---
- name: Oracle Database Snapshots
hosts: dbservers
remote_user: oracle
sudo: true
sudo_user: root
vars_files:
- vars/arrays.yaml
- vars/database.yaml
tasks:
# Take Snapshot of database volumes
- include: tasks/take_snapshot.yaml
run_once: yes
tasks/take_snapshot.yaml:
---
# Perform PURE Flasharray Database snapshots
- name: perform PURE volume snapshot
purefa_snap:
name: db2-prod-oracledb
suffix: snap
fa_url: "{{ fa_url }}"
api_token: "{{ apiToken }}"
Now, if I replace "hosts: dbservers" for "hosts: localhost", it works. So that means it was indeed trying to connect to "dbservers" and then running the commands. I did check the dbservers host and I can see purestorage sdk is also installed there.
oracle[DR]@db2:~$pip freeze |grep purestorage
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
purestorage==1.16.0
How can I fix the missing purestorage sdk error? It is an RHEL 6.7. Thanks!
This has been solved.
This is an issue with Python and not ansible.
Hi guys. Not sure if this is the right place for this.
I am trying to use the Pure Storage Snap Module, but I'm getting the following error:
yaml file:
I already have the purestorage python module installed; and I am not running this remotlely:
Ansible version: