You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a EVS disk using opentelekomcloud_blockstorage_volume_v2 with metadata (for KMS encryption) and attaching this disk to an VBS Backup policy using opentelekomcloud_vbs_backup_policy_v2 after the second terraform apply, the disk is removed from the VBS policy. This is due to the fact, the OTC sets a metadata parameter "policy" with the ID of the VBS-Policy, the disk is attached to. Terraform does not have this parameter in his resource, and therefore removes it with the second apply.
opentelekomcloud_vbs_backup_policy_v2 is not recognizing this because it seems it does not refresh its state.
The problem does not occur when using: opentelekomcloud_evs_volume_v3 because it does not use metadata
When creating a EVS disk using opentelekomcloud_blockstorage_volume_v2 with metadata (for KMS encryption) and attaching this disk to an VBS Backup policy using opentelekomcloud_vbs_backup_policy_v2 after the second terraform apply, the disk is removed from the VBS policy. This is due to the fact, the OTC sets a metadata parameter "policy" with the ID of the VBS-Policy, the disk is attached to. Terraform does not have this parameter in his resource, and therefore removes it with the second apply.
opentelekomcloud_vbs_backup_policy_v2 is not recognizing this because it seems it does not refresh its state.
The problem does not occur when using: opentelekomcloud_evs_volume_v3 because it does not use metadata
Terraform Version
terraform version
Terraform v0.12.28
Affected Resource(s)
opentelekomcloud_vbs_backup_policy_v2
opentelekomcloud_blockstorage_volume_v2
Terraform Configuration Files
Debug Output
as visible on the screenshot, on the second apply, the 'metadata: policy' is removed. Therefore the Disk is not attached to the vbs policy anymore
Expected Behavior
disk should be still attached to the vbs policy
Actual Behavior
disk is removed from vbs policy
Steps to Reproduce
The text was updated successfully, but these errors were encountered: