-
Notifications
You must be signed in to change notification settings - Fork 117
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
Resizing disk with enable_cpi_resize_disk option gets error "<disk> contains a partition created by bosh. No partitioning is allowed" #221
Comments
Hi Beyhan, Neither the story you references about growing the file system nor issue #154 is directly related to this problem. The bosh agent code explicitly disallows resizing the partitions that it created. So, with the introduction of this restriction, neither case would occur. |
Yes, this restriction in bosh agent has to change for the resizing use case. This has been analyzed in https://www.pivotaltracker.com/n/projects/1456570/stories/161478343, which is referenced in the top story linked in my previous comment. Thank you for bringing this up. I'm trying to collect all the context around resize issue |
I contributed a fix for that here: |
This issue was marked as |
This issue was closed because it has been labeled |
Parted partioner checks added into BOSH agent in Xenial appear to be incompatible with enable_cpi_resize_disk CPI option.
Attempting to resize a disk with enable_cpi_resize_disk will fail with error:
enable_cpi_resize_disk flag previously was able to successfully resize disk in trusty though BOSH agent did not have logic to grow filesystem. Now the disk will fail attaching because agent will find partition with name "bosh-partition" when mounting the disk and fail the BOSH task.
It seems checks added in parted_partitioner.go has made it so resizing disk in place via enable_cpi_resize_disk flag cannot work.
The text was updated successfully, but these errors were encountered: