terraform-provider-huaweicloud icon indicating copy to clipboard operation
terraform-provider-huaweicloud copied to clipboard

An error msg that is not easy to understand during the status check

Open Lance52259 opened this issue 3 years ago • 0 comments

Hi team,

When an unexpected state occurs, the provider throws an error message that is not easy to understand. Mainly beceuse this unexpected status does not appear in the targetStatus array of the status check function. In addition, these states are normal intermediate states, so no exception is thrown. In this case, the following response with a nil error is generated. e.g.:

unexpected state 'Unregistering', wanted target 'DELETED'. last error: %!s(<nil>)

Currently, the following resources have found this problem:

Number Resource Name Unexpected status CRUD Has fixed
1 huaweicloud_apig_instance Unregistering D N
2 huaweicloud_sfs_access_rule error C N
3 huaweicloud_cce_node Synchronized C N
4 huaweicloud_vpnaas_site_connection_v2 DELETING D N
4 huaweicloud_dms_kafka_instance ERROR D N

Note: Do not close this issue until all resources are repaired.

Best regards!

Lance52259 avatar Jan 07 '22 03:01 Lance52259