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

Feature/vsphere disk resizing #11137

Merged
merged 4 commits into from
Jan 23, 2020
Merged

Conversation

ycliuhw
Copy link
Member

@ycliuhw ycliuhw commented Jan 22, 2020

Please provide the following details to expedite Pull Request review:

Checklist

  • Checked if it requires a pylibjuju change?
  • Added integration tests for the PR?
  • Added or updated doc.go related to packages changed?
  • Do comments answer the question of why design decisions were made?

Description of change

Changed to use Reconfigure API for disk resizing;

QA steps

# bootstrap to vSphere
# then add-machine
juju add-machine --constraints root-disk=25G

# ssh into the machine to check disk size
df -h

Documentation changes

No(Internal change);

Bug reference

No

@ycliuhw ycliuhw changed the title Feature/v sphere disk resizing Feature/vsphere disk resizing Jan 22, 2020
@ycliuhw
Copy link
Member Author

ycliuhw commented Jan 22, 2020

vSphere resizing disk

@ycliuhw ycliuhw marked this pull request as ready for review January 23, 2020 01:28
@ycliuhw ycliuhw force-pushed the feature/vSphere-disk-resizing branch from 83d653b to d7c8ac2 Compare January 23, 2020 01:30
Copy link
Contributor

@babbageclunk babbageclunk left a comment

Choose a reason for hiding this comment

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

Thanks, this looks great! Hopefully it works without the global read-only permission?

@@ -398,7 +398,7 @@ func (c *Client) extendVMRootDisk(
sizeMB uint64,
taskWaiter *taskWaiter,
) error {
disk, backing, err := c.getDiskWithFileBacking(ctx, vm)
disk, _, err := c.getDiskWithFileBacking(ctx, vm)
Copy link
Contributor

Choose a reason for hiding this comment

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

Might as well change this method to getDisk and drop the backing return value, it doesn't look like anything else uses it.

@ycliuhw
Copy link
Member Author

ycliuhw commented Jan 23, 2020

!!build!!

@ycliuhw
Copy link
Member Author

ycliuhw commented Jan 23, 2020

$$merge$$

@jujubot jujubot merged commit 5a5aa42 into juju:2.7 Jan 23, 2020
@ycliuhw ycliuhw deleted the feature/vSphere-disk-resizing branch January 23, 2020 05:50
@babbageclunk babbageclunk mentioned this pull request Jan 26, 2020
4 tasks
jujubot added a commit that referenced this pull request Jan 26, 2020
#11151

### Checklist

 - [x] Checked if it requires a [pylibjuju](https://github.com/juju/python-libjuju) change?
 - [x] Added [integration tests](https://github.com/juju/juju/tree/develop/tests) for the PR?
 - [x] Added or updated [doc.go](https://discourse.jujucharms.com/t/readme-in-packages/451) related to packages changed?
 - [x] Do comments answer the question of why design decisions were made?

----

## Description of change

This pulls the latest changes in the 2.7 branch into develop.
Brings in:
- #11139 from jameinel/2.7-detach-volume-state-changing-1860542
- #11141 from howbazaar/2.7-fix-provisioner-leak
- #11144 from babbageclunk/2.7-fix-destroy-test
- #11137 from ycliuhw/feature/vSphere-disk-resizing
- #11146 from manadart/2.7-provisioner-worker-test
- #11147 from manadart/relocate-systemd-files
- #11150 from manadart/2.7-controller-integration-test
- #11149 from manadart/2.7-systemd-upgrades

(No conflicts when merging.)
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.

3 participants