dell / ansible-powerflex

Ansible Modules for Dell PowerFlex
Other
22 stars 15 forks source link

[QUESTION]:failed to run PowerFlex ansible modules #49

Closed LeoHu1985 closed 4 months ago

LeoHu1985 commented 5 months ago

How can the Team help you today?

followed installation steps to complete module installation but failed to run PowerFlex ansible modules reporting errors as below

Details: ? fatal: [localhost]: FAILED! => {"changed": false, "msg": "Create volume sample_ansible_volume_1 operation failed with error Failed to create PowerFlex Volume. Error: {'message': 'Request header Content-Type should be application/json', 'httpStatusCode': 400, 'errorCode': 0}"}

anupamaloke commented 5 months ago

@LeoHu1985, could you please share details of your playbook, ansible version, and powerflex version?

LeoHu1985 commented 4 months ago

root@S1Ans:/home/lab/Hackathon-Workshop/vm-ps-auto# ansible --version ansible [core 2.14.1] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /root/.local/lib/python3.9/site-packages/ansible ansible collection location = /home/lab/Hackathon-Workshop/vm-ps-auto:/home/lab:/home/lab executable location = /root/.local/bin/ansible python version = 3.9.16 (main, Dec 13 2022, 12:53:19) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] (/usr/local/bin/python3.9) jinja version = 3.1.2 libyaml = True

PowerFlex version 3.6

Playbook as below

root@S1Ans:/home/lab/PowerFlex-Playbook/powerflex-demo-playbooks# cat dellemc_powerflex_volume_demo.yml

Pause so we can see this in the UI

anupamaloke commented 4 months ago

Closing this issue as this has been fixed in the latest v2.4.0