This pull request resolves an issue that prevented disks from being resized and deleted on instances that have been running for more than 90 days. This is achieved by removing the booted config resolution logic from the linode_instance_disk resize logic and instead deferring it to the API during the subsequent boot.
Additionally, this PR moves the BootInstanceSync and ShutdownInstanceSync helper functions to the helper package, and adds a new WaitForInstanceNonTransientStatus helper.
✔️ How to Test
The following test steps assume you have pulled down this PR locally.
Integration Testing
make int-test PKG_NAME=linode/instance
make int-test PKG_NAME=linode/instancedisk
make int-test PKG_NAME=linode/instanceconfig
Manual Testing
In a terraform-provider-linode sandbox environment (e.g. dx-devenv), apply the following configuration:
📝 Description
This pull request resolves an issue that prevented disks from being resized and deleted on instances that have been running for more than 90 days. This is achieved by removing the booted config resolution logic from the
linode_instance_disk
resize logic and instead deferring it to the API during the subsequent boot.Additionally, this PR moves the
BootInstanceSync
andShutdownInstanceSync
helper functions to thehelper package
, and adds a newWaitForInstanceNonTransientStatus
helper.✔️ How to Test
The following test steps assume you have pulled down this PR locally.
Integration Testing
Manual Testing