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

Linode instance upsize with disk expansion at same time doesn't work #17

Closed
liejuntao001 opened this issue Dec 12, 2018 · 3 comments · Fixed by #119
Closed

Linode instance upsize with disk expansion at same time doesn't work #17

liejuntao001 opened this issue Dec 12, 2018 · 3 comments · Fixed by #119
Assignees

Comments

@liejuntao001
Copy link

Hi there,

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.

Terraform Version

Terraform v0.11.8

  • provider.linode v1.3.0
  • provider.null v1.0.0
  • provider.random v2.0.0

Affected Resource(s)

Please list the resources as a list, for example:

  • linode_instance

Terraform Configuration Files

I'm doing upsize for one instance, and the disk size expand at the same time.

Debug Output

~ module.newtest.linode_instance.bare
config.0.root_device: "/dev/root" => "/dev/sda"
disk.1.size: "17408" => "43008"
type: "g6-nanode-1" => "g6-standard-1"

module.newtest-workers.linode_instance.bare: Modifying... (ID: 11904746)
config.0.root_device: "/dev/root" => "/dev/sda"
module.cluster1-workers.linode_instance.bare[1]: Modifications complete after 1s (ID: 11763152)
module.cluster1-workers.linode_instance.bare[0]: Modifications complete after 1s (ID: 11763151)
module.cluster1-master.linode_instance.bare: Modifications complete after 1s (ID: 11763148)
module.newtest-workers.linode_instance.bare: Modifications complete after 1s (ID: 11904746)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 10s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 20s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 30s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 40s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 50s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 1m0s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 1m10s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 1m20s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 1m30s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 1m40s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 1m50s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 2m0s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 2m10s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 2m20s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 2m30s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 2m40s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 2m50s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 3m0s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 3m10s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 3m20s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 3m30s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 3m40s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 3m50s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 4m0s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 4m10s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 4m20s elapsed)
module.newtest.linode_instance.bare: Still modifying... (ID: 11904745, 4m30s elapsed)

Error: Error applying plan:

1 error(s) occurred:

  • module.newtest.linode_instance.bare: 1 error(s) occurred:

  • linode_instance.bare: Error resizing Disk 25076234: size exceeds disk size for Instance 11904745

Expected Behavior

The instance shall upsize first, then based on the new disk cap, allow the disk expansion.

Actual Behavior

First "terraform apply", the instance is upsized, then the apply failed.
I have to a 2nd time apply to make the disk expansion work.

@displague
Copy link
Contributor

Was this corrected in #55, @ellisbenjamin ?

@0xch4z
Copy link
Contributor

0xch4z commented Mar 4, 2020

Consolidating to #103

@0xch4z
Copy link
Contributor

0xch4z commented Mar 25, 2020

This was resolved in #119

@0xch4z 0xch4z closed this as completed Mar 25, 2020
LBGarber referenced this issue in LBGarber/terraform-provider-linode Mar 26, 2021
(WIP) Add README and documentation for plugins
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

Successfully merging a pull request may close this issue.

3 participants