IBM-Cloud / ansible-collection-ibm

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs
Mozilla Public License 2.0
70 stars 73 forks source link

error looking for "terraform-provider-ibm_v1.38.2.pem" when using ibm_is_vpc #88

Closed kdelee closed 2 years ago

kdelee commented 2 years ago
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: FileNotFoundError: [Errno 2] No such file or directory: '/var/tmp/ansible/ibmcloud/terraform-provider-ibm_v1.38.2.pem'
fatal: [localhost]: FAILED! => changed=false 
  module_stderr: |-
    Traceback (most recent call last):
      File "/home/jenkins/.ansible/tmp/ansible-tmp-1645134337.7965276-334-64812123147787/AnsiballZ_ibm_is_vpc.py", line 100, in <module>
        _ansiballz_main()
      File "/home/jenkins/.ansible/tmp/ansible-tmp-1645134337.7965276-334-64812123147787/AnsiballZ_ibm_is_vpc.py", line 92, in _ansiballz_main
        invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
      File "/home/jenkins/.ansible/tmp/ansible-tmp-1645134337.7965276-334-64812123147787/AnsiballZ_ibm_is_vpc.py", line 41, in invoke_module
        run_name='__main__', alter_sys=True)
      File "/usr/lib64/python3.7/runpy.py", line 205, in run_module
        return _run_module_code(code, init_globals, run_name, mod_spec)
      File "/usr/lib64/python3.7/runpy.py", line 96, in _run_module_code
        mod_name, mod_spec, pkg_name, script_name)
      File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code
        exec(code, run_globals)
      File "/tmp/ansible_ibm.cloudcollection.ibm_is_vpc_payload_e98jpn5z/ansible_ibm.cloudcollection.ibm_is_vpc_payload.zip/ansible_collections/ibm/cloudcollection/plugins/modules/ibm_is_vpc.py", line 273, in <module>
      File "/tmp/ansible_ibm.cloudcollection.ibm_is_vpc_payload_e98jpn5z/ansible_ibm.cloudcollection.ibm_is_vpc_payload.zip/ansible_collections/ibm/cloudcollection/plugins/modules/ibm_is_vpc.py", line 269, in main
      File "/tmp/ansible_ibm.cloudcollection.ibm_is_vpc_payload_e98jpn5z/ansible_ibm.cloudcollection.ibm_is_vpc_payload.zip/ansible_collections/ibm/cloudcollection/plugins/modules/ibm_is_vpc.py", line 249, in run_module
      File "/tmp/ansible_ibm.cloudcollection.ibm_is_vpc_payload_e98jpn5z/ansible_ibm.cloudcollection.ibm_is_vpc_payload.zip/ansible_collections/ibm/cloudcollection/plugins/module_utils/ibmcloud.py", line 453, in ibmcloud_terraform
      File "/tmp/ansible_ibm.cloudcollection.ibm_is_vpc_payload_e98jpn5z/ansible_ibm.cloudcollection.ibm_is_vpc_payload.zip/ansible_collections/ibm/cloudcollection/plugins/module_utils/ibmcloud.py", line 718, in __init__
      File "/tmp/ansible_ibm.cloudcollection.ibm_is_vpc_payload_e98jpn5z/ansible_ibm.cloudcollection.ibm_is_vpc_payload.zip/ansible_collections/ibm/cloudcollection/plugins/module_utils/ibmcloud.py", line 751, in _install_ibmcloud_tf_provider
    FileNotFoundError: [Errno 2] No such file or directory: '/var/tmp/ansible/ibmcloud/terraform-provider-ibm_v1.38.2.pem'

Can anyone give me some clue why the module is looking for this file and what I can do to get around this?

jaywcarman commented 2 years ago

Hi @kdelee. A bunch of old PRs were merged before the v1.38.2 release. Included was #40 which is causing the errors you're seeing.

kdelee commented 2 years ago

@jaywcarman thanks for the insight. For now I'll try skipping v1.38.2 in my collection requirements file