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

add compute_instace extend system disk support #527

Conversation

Jason-Zhang9309
Copy link
Collaborator

No description provided.


err = volumeactions.ExtendSize(blockStorageClient, systemDiskID, extendOpts).ExtractErr()
if err != nil {
return fmt.Errorf("Error extending huaweicloud_blockstorage_volume_v2 %s size: %s", systemDiskID, err)
Copy link
Member

Choose a reason for hiding this comment

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

Error extending huaweicloud_compute_instance system disk size

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

Pending: []string{"extending"},
Target: []string{"available", "in-use"},
Refresh: VolumeV2StateRefreshFunc(blockStorageClient, systemDiskID),
Timeout: d.Timeout(schema.TimeoutCreate),
Copy link
Member

Choose a reason for hiding this comment

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

use TimeoutUpdate instead.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

_, err = stateConf.WaitForState()
if err != nil {
return fmt.Errorf(
"Error waiting for huaweicloud_blockstorage_volume_v2 %s to become ready: %s", systemDiskID, err)
Copy link
Member

Choose a reason for hiding this comment

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

Error waiting for volume %s ...

@@ -229,7 +229,8 @@ The following arguments are supported:
* `co-p1`: high I/O(performance-optimized) disk type.
* `uh-l1`: ultra-high I/O(latency-optimized) disk type.

* `system_disk_size` - (Optional) The system disk size in GB, The value range is 1 to 1024. Changing this creates a new server.
* `system_disk_size` - (Optional) The system disk size in GB, The value range is 1 to 1024. Changing this parameter will update the disk.
You can extend the disk by setting this parameter to a new value, which must be between current size and the max size. Shrinking the disk is not supported.
Copy link
Member

Choose a reason for hiding this comment

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

need to be more specified for the max size, or just not mention it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@Jason-Zhang9309 Jason-Zhang9309 force-pushed the dev-compute-instance-sysdisk-extend branch from e305cc0 to 2dd2567 Compare September 15, 2020 09:48
@niuzhenguo niuzhenguo merged commit 1009ed7 into huaweicloud:master Sep 16, 2020
@Jason-Zhang9309 Jason-Zhang9309 deleted the dev-compute-instance-sysdisk-extend branch September 19, 2020 02:09
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 this pull request may close these issues.

None yet

2 participants