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

Power VSI destroy/delete does not work #46

Closed azhararain closed 2 years ago

azhararain commented 3 years ago

Hi,

I am not able to delete a PowerVSI instance using this collection. No error is thrown the VSI is not deleted either.

I am calling the following module: ibm.cloudcollection.ibm_pi_instance with state: absent

PLAY [Delete PowerVS VM] ******************************************************************************************************************************

TASK [Gathering Facts] ********************************************************************************************************************************
ok: [localhost]

TASK [Delete POWER Virtual Server Instance] ***********************************************************************************************************
ok: [localhost]

TASK [Debug Output of Delete POWER VSI] ***************************************************************************************************************
ok: [localhost] => {
    "pi_instance_delete_output": {
        "changed": false, 
        "failed": false, 
        "rc": 0, 
        "resource": {}, 
        "stderr": "", 
        "stderr_lines": [], 
        "stdout": "", 
        "stdout_lines": []
    }
}

PLAY RECAP ********************************************************************************************************************************************
localhost                  : ok=3    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0  

Regards, Azhar Ali

jaywcarman commented 3 years ago

@Anil-CM I bet this is caused by the need to combine the power_instance_id and id values when retrieving existing pi resources.