Closed nbarriere closed 3 weeks ago
@nbarriere please check if #289 fixes your issue and let me know.
Yes, it fix the issue.
But I have a new problem when I run the same playbook a second time.
└─$ ansible-playbook test/fs_test.yaml
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [Pure FlashBlade Filesystems Configuration] **************************************************************************************
TASK [Gathering Facts] ****************************************************************************************************************
ok: [localhost]
TASK [Filesystem - test_ansible] ******************************************************************************************************
changed: [localhost]
PLAY RECAP ****************************************************************************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
┌──(nbarriere㉿nb-laptop)-[/mnt/c/git/pure-fb-automation]
└─$ ansible-playbook test/fs_test.yaml
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [Pure FlashBlade Filesystems Configuration] **************************************************************************************
TASK [Gathering Facts] ****************************************************************************************************************
ok: [localhost]
TASK [Filesystem - test_ansible] ******************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: UnboundLocalError: cannot access local variable 'change_go' where it is not associated with a value
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/home/nbarriere/.ansible/tmp/ansible-tmp-1719851161.2152703-1182-80025412614354/AnsiballZ_purefb_fs.py\", line 107, in <module>\n _ansiballz_main()\n File \"/home/nbarriere/.ansible/tmp/ansible-tmp-1719851161.2152703-1182-80025412614354/AnsiballZ_purefb_fs.py\", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/nbarriere/.ansible/tmp/ansible-tmp-1719851161.2152703-1182-80025412614354/AnsiballZ_purefb_fs.py\", line 47, in invoke_module\n runpy.run_module(mod_name='ansible_collections.purestorage.flashblade.plugins.modules.purefb_fs', init_globals=dict(_module_fqn='ansible_collections.purestorage.flashblade.plugins.modules.purefb_fs', _modlib_path=modlib_path),\n File \"<frozen runpy>\", line 226, in run_module\n File \"<frozen runpy>\", line 98, in _run_module_code\n File \"<frozen runpy>\", line 88, in _run_code\n File \"/tmp/ansible_purestorage.flashblade.purefb_fs_payload_0bqhdvnh/ansible_purestorage.flashblade.purefb_fs_payload.zip/ansible_collections/purestorage/flashblade/plugins/modules/purefb_fs.py\", line 1150, in <module>\n File \"/tmp/ansible_purestorage.flashblade.purefb_fs_payload_0bqhdvnh/ansible_purestorage.flashblade.purefb_fs_payload.zip/ansible_collections/purestorage/flashblade/plugins/modules/purefb_fs.py\", line 1139, in main\n File \"/tmp/ansible_purestorage.flashblade.purefb_fs_payload_0bqhdvnh/ansible_purestorage.flashblade.purefb_fs_payload.zip/ansible_collections/purestorage/flashblade/plugins/modules/purefb_fs.py\", line 957, in modify_fs\nUnboundLocalError: cannot access local variable 'change_go' where it is not associated with a value\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
PLAY RECAP ****************************************************************************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
We receive an error during the filesystem creation with the module purefb_fs but the filesystem is created.
playbook:
Error:
Versions:
FlashBlade//S Multi-chassis: 4.3.8
purestorage.flashblade:1.17.0