Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore thin_provisioned and eagerly_scrub during DiskPostCloneOperation #1161

Merged
merged 1 commit into from
Aug 14, 2020

Conversation

mtnbikenc
Copy link
Contributor

Description

In some environments the disk provisioning type can change silently when cloning due to vSphere storage policies.  Thin provisioning cannot be managed by Terraform and therefore should not attempt to set these value after cloning.

Error message:

ERROR                                              
ERROR Error: error reconfiguring virtual machine: error processing disk changes post-clone: disk.0: cannot change the value of "thin_provisioned" - (old: false new: true) 
ERROR                                              
ERROR   on ../../../../../tmp/openshift-install-068412821/master/main.tf line 1, in resource "vsphere_virtual_machine" "vm": 
ERROR    1: resource "vsphere_virtual_machine" "vm" { 
ERROR                                              

Attempting to ignore these changes have been unsuccessful using the following:

lifecycle {
    ignore_changes = [
      disk.0.eagerly_scrub,
      disk.0.thin_provisioned,
      ]
  }

Acceptance tests

  • Have you added an acceptance test for the functionality being added?
  • Have you run the acceptance tests on this branch? (If so, please include the test log in a gist)

References

#1028
#1075
#1125

In some environments the disk provisioning type can change silently when
cloning due to vSphere storage policies.  Thin provisioning cannot be
managed by terraform and therefore should not attempt to set this value
after cloning.
Copy link
Contributor

@bill-rich bill-rich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense. Thanks for the contribution!

@bill-rich bill-rich merged commit 116caf5 into hashicorp:master Aug 14, 2020
@mtnbikenc mtnbikenc deleted the postclone-skip branch August 17, 2020 13:02
@ghost
Copy link

ghost commented Sep 14, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Sep 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
size/xs Relative Sizing: Extra-Small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants