Forum Discussion

ADC18's avatar
ADC18
Icon for Nimbostratus rankNimbostratus
Apr 28, 2020

bigip_software_install ansible command is erroring out -AttributeError: 'dict' object has no attribute 'status'

I am trying to install this IOS image to HD1.2 directory. Image is already uploaded to /shared/images.

 

<localhost> EXEC /bin/sh -c 'rm -f -r /home/jboss/.ansible/tmp/ansible-tmp-1588043388.19-245079184378425/ > /dev/null 2>&1 && sleep 0'

The full traceback is:

Traceback (most recent call last):

 File "/home/jboss/.ansible/tmp/ansible-tmp-1588043388.19-245079184378425/AnsiballZ_bigip_software_install.py", line 102, in <module>

  _ansiballz_main()

 File "/home/jboss/.ansible/tmp/ansible-tmp-1588043388.19-245079184378425/AnsiballZ_bigip_software_install.py", line 94, in _ansiballz_main

  invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)

 File "/home/jboss/.ansible/tmp/ansible-tmp-1588043388.19-245079184378425/AnsiballZ_bigip_software_install.py", line 40, in invoke_module

  runpy.run_module(mod_name='ansible_collections.f5networks.f5_modules.plugins.modules.bigip_software_install', init_globals=None, run_name='__main__', alter_sys=True)

 File "/usr/lib64/python2.7/runpy.py", line 176, in run_module

  fname, loader, pkg_name)

 File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code

  mod_name, mod_fname, mod_loader, pkg_name)

 File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code

  exec code in run_globals

 File "/tmp/ansible_bigip_software_install_payload_SyS7Wt/ansible_bigip_software_install_payload.zip/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_software_install.py", line 549, in <module>

 File "/tmp/ansible_bigip_software_install_payload_SyS7Wt/ansible_bigip_software_install_payload.zip/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_software_install.py", line 542, in main

 File "/tmp/ansible_bigip_software_install_payload_SyS7Wt/ansible_bigip_software_install_payload.zip/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_software_install.py", line 297, in exec_module

 File "/tmp/ansible_bigip_software_install_payload_SyS7Wt/ansible_bigip_software_install_payload.zip/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_software_install.py", line 315, in present

 File "/tmp/ansible_bigip_software_install_payload_SyS7Wt/ansible_bigip_software_install_payload.zip/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_software_install.py", line 342, in exists

AttributeError: 'dict' object has no attribute 'status'

 

fatal: [10.40.208.19 -> localhost]: FAILED! => {

 

Yaml file

  - name: Ensure an existing image is installed in specified volume

   bigip_software_install:

    image: BIGIP-11.6.2.0.0.495.iso

    volume: HD1.2

    state: installed

    provider: "{{ provider }}"

   delegate_to: localhost

 

Not sure what is this error - AttributeError: 'dict' object has no attribute 'status'

No RepliesBe the first to reply