Pearl1594 opened a new pull request #4957:
URL: https://github.com/apache/cloudstack/pull/4957
### Description
This PR prevents k8s cluster nodes' root disks from being resized on VMware
if root disk size isn't provided.
```
2021-04-27 06:26:28,971 ERROR [c.c.k.c.a.KubernetesClusterActionWorker]
(API-Job-Executor-8:ctx-8126598d job-803 ctx-9a6a3ae2) (logid:f9bfd370)
Provisioning the master VM failed in the Kubernetes cluster : k8s
com.cloud.exception.InvalidParameterValueException: Going from existing size
of 4756340736 to size of 0 would shrink the volume.Need to sign off by
supplying the shrinkok parameter with value of true.
at
com.cloud.storage.VolumeApiServiceImpl.resizeVolume(VolumeApiServiceImpl.java:1077)
at
com.cloud.storage.VolumeApiServiceImpl.resizeVolume(VolumeApiServiceImpl.java:192)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
```
### Types of changes
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] New feature (non-breaking change which adds functionality)
- [X] Bug fix (non-breaking change which fixes an issue)
- [ ] Enhancement (improves an existing feature and functionality)
- [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
### Feature/Enhancement Scale or Bug Severity
#### Bug Severity
- [ ] BLOCKER
- [ ] Critical
- [X] Major
- [ ] Minor
- [ ] Trivial
### Screenshots (if appropriate):
### How Has This Been Tested?
Deployed a Kubernetes cluster without passing any root disk size - and it
deployed successfully
<!-- Please read the
[CONTRIBUTING](https://github.com/apache/cloudstack/blob/master/CONTRIBUTING.md)
document -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]