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

instances should be re-created when image_id changes #78

Closed
yongzhang opened this issue Jul 25, 2019 · 11 comments
Closed

instances should be re-created when image_id changes #78

yongzhang opened this issue Jul 25, 2019 · 11 comments

Comments

@yongzhang
Copy link

yongzhang commented Jul 25, 2019

provider version: 1.12
when image_id changed, instances should be re-created instead of "modify":


  ~ tencentcloud_instance.test_vm_tct_cn[0]
      image_id:                                  "img-mzbr88cf" => "img-axq9idj1"

  ~ tencentcloud_instance.test_vm_tct_cn[1]
      image_id:                                  "img-mzbr88cf" => "img-axq9idj1"

  ~ tencentcloud_instance.test_vm_tct_cn[2]
      image_id:                                  "img-mzbr88cf" => "img-axq9idj1"

  ~ tencentcloud_instance.test_vm_tct_eu[0]
      image_id:                                  "img-o77dd2jn" => "img-pi1pale7"

  ~ tencentcloud_instance.test_vm_tct_eu[1]
      image_id:                                  "img-o77dd2jn" => "img-pi1pale7"

  ~ tencentcloud_instance.test_vm_tct_eu[2]
      image_id:                                  "img-o77dd2jn" => "img-pi1pale7"


Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

tencentcloud_instance.test_vm_tct_cn[0]: Modifying... (ID: ins-1vv9a7er)
  image_id: "img-mzbr88cf" => "img-axq9idj1"
tencentcloud_instance.test_vm_tct_eu[2]: Modifying... (ID: ins-003b1pf2)
  image_id: "img-o77dd2jn" => "img-pi1pale7"
tencentcloud_instance.test_vm_tct_eu[0]: Modifying... (ID: ins-09od6vhg)
  image_id: "img-o77dd2jn" => "img-pi1pale7"
tencentcloud_instance.test_vm_tct_eu[1]: Modifying... (ID: ins-o9wbotcw)
  image_id: "img-o77dd2jn" => "img-pi1pale7"
tencentcloud_instance.test_vm_tct_cn[1]: Modifying... (ID: ins-ac71rjd5)
  image_id: "img-mzbr88cf" => "img-axq9idj1"
tencentcloud_instance.test_vm_tct_cn[2]: Modifying... (ID: ins-7kbqea89)
  image_id: "img-mzbr88cf" => "img-axq9idj1"
@likexian
Copy link
Contributor

Hello,
We support reset instance's image, re-create is unnecessary.

@yongzhang
Copy link
Author

Well, when users updated image_id, they probably want to re-create instances with the new image, why "unnecessary"?

@likexian
Copy link
Contributor

Re-create instance will change something, for example ip.
For most user, change image is expect as reinstall the system, but not re-create an instance.

@yongzhang
Copy link
Author

yongzhang commented Jul 25, 2019

Re-create instance will change something, for example ip.
For most user, change image is expect as reinstall the system, but not re-create an instance.

I agree with you if user manage instance by UI, but this is terraform, we treat infra as cattle not pets, at least we can have a switch to decide "recreate" or not.

@ausmartway
Copy link
Contributor

ausmartway commented Jul 25, 2019 via email

@likexian
Copy link
Contributor

李总,这个事情上我同意客户的意见,修改了imageid实际上是要求重新创建。
[…]

谢谢刘总,我们修改一下。

@likexian
Copy link
Contributor

Re-create instance will change something, for example ip.
For most user, change image is expect as reinstall the system, but not re-create an instance.

I agree with you if user manage instance by UI, but this is terraform, we treat infra as cattle not pets, at least we can have a switch to decide "recreate" or not.

Thanks for your advise.

@yongzhang
Copy link
Author

@likexian @ausmartway Cool, thanks.

@likexian
Copy link
Contributor

#101

@likexian
Copy link
Contributor

@hiscal2015
This has been fixed in v1.15.1, please upgrade and have a try.

@yongzhang
Copy link
Author

@hiscal2015
This has been fixed in v1.15.1, please upgrade and have a try.

Thanks for fixing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants