google / cloud-forensics-utils

Python library to carry out DFIR analysis on the Cloud
Apache License 2.0
452 stars 89 forks source link

Return responses back for instance.attachDisk() and instance.detachDisk() #463

Closed wajihyassine closed 1 year ago

wajihyassine commented 1 year ago

We are currently having an issue in Turbinia mounting GoogleCloudDisks see: https://github.com/google/turbinia/issues/1249

Troubleshooting the issue we believe it's due to the instance.attackDisk method not successfully attaching the disk to the VM but are unable to see the response code so filing to see if we can get it returned (as well as instance.detachDisk so we can do same check).

Referring to this method: https://github.com/google/cloud-forensics-utils/blob/a71b13c3a7108e4d37879007617203c5e34170ff/libcloudforensics/providers/gcp/internal/compute.py#L1423

wajihyassine commented 1 year ago

From more testing, do see an error that gets sent back when something goes wrong and our problem is not due to the API call itself after more troubleshooting so closing this out as a non issue