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
vmware: encode disk path for URL based access #6989
Conversation
During disk operations VMware plugin tries to connect to VMware datacenter datastore using URL based on disk path and datastore name. This PR encodes disk path to prevent any failure from server due to bad URL. Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
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.
LGTM, the general idea that we should URL encode all params that can have issue character such as space, + etc.
SonarCloud Quality Gate failed. |
Codecov Report
@@ Coverage Diff @@
## 4.17 #6989 +/- ##
=========================================
Coverage 10.36% 10.36%
- Complexity 6631 6633 +2
=========================================
Files 2453 2453
Lines 242385 242385
Branches 37927 37927
=========================================
+ Hits 25126 25130 +4
+ Misses 214156 214151 -5
- Partials 3103 3104 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@shwstppr would this cover the case for:
|
@blueorangutan package |
@shwstppr a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5110 |
@blueorangutan test rocky8 vmware-7u3 |
@DaanHoogland unsupported parameters provided. Supported mgmt server os are: |
@blueorangutan test rocky8 vmware-70u3 keepEnv |
@DaanHoogland a Trillian-Jenkins test job (rocky8 mgmt + vmware-70u3) has been kicked to run smoke tests |
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.
clgtm
Trillian test result (tid-5718)
|
@blueorangutan package |
@shwstppr a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5220 |
Tested, ready for review |
@blueorangutan package |
@DaanHoogland a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5243 |
@blueorangutan test rocky8 vmware-70u3 |
@DaanHoogland a Trillian-Jenkins test job (rocky8 mgmt + vmware-70u3) has been kicked to run smoke tests |
tested; successfully attached, migrated and detached a volume called "has space". |
Trillian test result (tid-5813)
|
Description
Fixes: #6992
During disk operations, the VMware plugin tries to connect to the VMware datacenter datastore using a URL based on the disk path and datastore name. This PR encodes the disk path to prevent any failure from the server due to a bad URL.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Without change,
With change,
Tested following:
6989.mp4