Fix SQL query for uuid wrong format#6654
Conversation
|
Found UI changes, kicking a new UI QA build |
|
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
@nvazquez the question is - could it break on vmware too? |
|
@rohityadavcloud 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. |
|
UI build: ✔️ |
|
@rohityadavcloud the original fix was for Vmware, in some cases datastore clusters seem to get the UUID in a wrong format, but needs checking for other cases in Vmware in which the same thing can happen cc.@DK101010. In my testing of the original fix I was using Vmware but didn't get pools in the wrong uuid format, and this logic was not executed |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 4009 |
Codecov Report
@@ Coverage Diff @@
## 4.17 #6654 +/- ##
=======================================
Coverage ? 5.87%
Complexity ? 3936
=======================================
Files ? 2454
Lines ? 242669
Branches ? 37977
=======================================
Hits ? 14265
Misses ? 226825
Partials ? 1579 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Hi @shwstppr @nvazquez We discussed at the time in which format uuids should be stored in the database and that it should always be the same format. That's why we created the sql back then. Therefore, the code for the storage plugin and local storage should be adapted and not the uuids in the database should be used with the wrong format or am I missing something? |
|
Thanks @DK101010 - I've updated the PR to restrict the SQL to datastore cluster only. |
|
Found UI changes, kicking a new UI QA build |
|
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
@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. |
|
UI build: ✔️ |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 4019 |
|
@blueorangutan test |
|
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
SonarCloud Quality Gate failed. |
@DK101010 I guess it is not just the code for the storage plugins and local storage. Like @slavkap pointed out in her issue it could be manually set or could be already set and used in production env where upgrades would fail. Using pool_type filter would be safer for now. Can you please review the changes? |
|
would this be particular to the concept of "DataCluster" or could there be implementations of the concept that handle things differenty @nvazquez @shwstppr ? (cc @harikrishna-patnala ) Reason for my question: it seems vmware specific but I don´t see a check for that in the code. |
|
@DaanHoogland yes it seems particular to the Vmware implementation but its the only supported for the type 'DatastoreCluster' |
clear, i´d say it is maybe a bit early to amend this for a hypothetical future enhancement, just wondering. CLTGM |
|
I am a little confused. I developed this because all storage (in VMware) uuids were stored with separators. But datastore cluster uuids was stored without separator. @shwstppr |
|
Trillian test result (tid-4730)
|









Description
Fixes: #6652
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?