-
Notifications
You must be signed in to change notification settings - Fork 162
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
add compute_instace extend system disk support #527
Conversation
|
||
err = volumeactions.ExtendSize(blockStorageClient, systemDiskID, extendOpts).ExtractErr() | ||
if err != nil { | ||
return fmt.Errorf("Error extending huaweicloud_blockstorage_volume_v2 %s size: %s", systemDiskID, err) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use TimeoutUpdate instead.
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
e305cc0
to
2dd2567
Compare
No description provided.