CHINMAYA DEHURY
CHINMAYA DEHURY

Reputation: 135

openstacksdk is not found in ansible 2.9

My environment:

python --version  
Python 3.5.2  

pip --version    
pip 19.3.1 from /home/chinmaya/.local/lib/python3.5/site-packages/pip (python 3.5)

ansible --version
ansible 2.9.2
  config file = None  
  configured module search path = ['/home/chinmaya/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']  
  ansible python module location = /usr/local/lib/python3.5/dist-packages/ansible  
  executable location = /usr/local/bin/ansible  
  python version = 3.5.2 (default, Oct  8 2019, 13:06:37) [GCC 5.4.0 20160609]  

Installed and upgrade openstacksdk with following code
pip install --user --upgrade openstacksdk
This installed following packages
Successfully installed certifi-2019.11.28 chardet-3.0.4 decorator-4.4.1 dogpile.cache-0.9.0 idna-2.8 jmespath-0.9.4 jsonpatch-1.24 keystoneauth1-3.18.0 munch-2.5.0 openstacksdk-0.39.0 os-service-types-1.7.0 pbr-5.4.4 requests-2.22.0 requestsexceptions-1.4.0 stevedore-1.31.0 urllib3-1.25.7

Now executed a playbook ansible-playbook installNifiCentos.yml
This gave following error:
enter image description here

Now I am getting no clue to solve this issue.

Upvotes: 2

Views: 2931

Answers (2)

Sanka Sathyaji
Sanka Sathyaji

Reputation: 526

I have removed python 2.7 and done the upgrade. Then installed openstack client using pip3. This worked for me.

sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install -y python3-pip

Upvotes: 0

CHINMAYA DEHURY
CHINMAYA DEHURY

Reputation: 135

I was getting all such conflicts probably due to both python versions. I decided to remove the python 2.7 and keep only one Python 3.5.2. After removing Python 2.7, this started working. Still, I don't know where was the problem.

Upvotes: 1

Related Questions