however when I try to get more information with "dellemc_unity_storagepool" spefifiying the pool id (pool_1)
I am getting this error:
TASK [Get Storage pool details using pool_id] ******************************************************************************************************************************* fatal: [localhost]: FAILED! => {"changed": false, "msg": "Storage pool not found - Creation of storage pool is not allowed through Ansible module"}
It is odd that you can't retrieve the details on the storage pool. There are a couple of things that we can try to help identify what the issue is here.
1. Perhaps start with trying to retrieve the details by using the pool_name instead of pool_id
2. You could try the following Python code and use the SDK directly to see if that is able to retireve the information when using the pool id
I successfully ran the .py script you posted with Python 3.6. we had issues on Python 2.7 we had to replace from requests import urllib3 from request with import request.
In Summary it seems to be an issue with Python 2.7 and urllib3.
TASK [Get Storage pool details using pool_id] ************************************************************************************************************************************************************** fatal: [localhost]: FAILED! => {"changed": false, "msg": "Storage pool not found - Creation of storage pool is not allowed through Ansible module"}
In your SDK output there is no "pool_fast_vp" field.
Two things that you can check. There should be a dellemc_ansible_provisioning.log file in the same directory as your playbook which may include more details (perhaps an exception trying to get the data above)
You can also try commenting out those three lines in the dellemc_unity_storagepool.py file to bypass the gathering of that info.
bmcfeeters
1 Rookie
•
72 Posts
917
0
Posted October 27th, 2020 07:00
Hi Resnik066,
It is odd that you can't retrieve the details on the storage pool. There are a couple of things that we can try to help identify what the issue is here.
1. Perhaps start with trying to retrieve the details by using the pool_name instead of pool_id
2. You could try the following Python code and use the SDK directly to see if that is able to retireve the information when using the pool id
Bryan