-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
api,ui: multi arch improvements #10289
base: 4.20
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #10289 +/- ##
==========================================
Coverage 15.99% 16.00%
- Complexity 13081 13105 +24
==========================================
Files 5649 5651 +2
Lines 495648 496179 +531
Branches 60006 60088 +82
==========================================
+ Hits 79265 79399 +134
- Misses 407537 407915 +378
- Partials 8846 8865 +19
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
ca5dd68
to
f74355f
Compare
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@blueorangutan package |
@shwstppr a [SL] 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 [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12726 |
New zone-scope config added system.vm.preferred.architecture to allow deployment using specific architecture for system VMs including VRs. Refactor and added checks for deployements Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@blueorangutan package |
@shwstppr a [SL] 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. |
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12736 |
@blueorangutan test |
@shwstppr a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
ConfigKey<String> SystemVmPreferredArchitecture = new ConfigKey<>("Advanced" | ||
, String.class | ||
, "system.vm.preferred.architecture" | ||
, "" | ||
, "Preferred architecture for the system VMs including virtual routers" | ||
, true | ||
, ConfigKey.Scope.Zone); |
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.
Can we have the commas at the end of each line instead of at the begginning?
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.
Is it possible to use this constructor to define the configKey with kind: Select and specify options which probably would be helpful in the UI.
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.
Done
public List<Pair<HypervisorType, CPU.CPUArch>> listDistinctHypervisorArchTypes(final Long zoneId) { | ||
List<Pair<HypervisorType, CPU.CPUArch>> hypervisorArchList = new ArrayList<>(); | ||
String selectSql = "SELECT DISTINCT hypervisor_type, arch FROM cloud.host WHERE removed IS NULL"; | ||
if (zoneId != null) { | ||
selectSql += " AND data_center_id=" + zoneId; | ||
} | ||
TransactionLegacy txn = TransactionLegacy.currentTxn(); | ||
try { | ||
PreparedStatement stmt = txn.prepareAutoCloseStatement(selectSql); | ||
ResultSet rs = stmt.executeQuery(); | ||
while (rs.next()) { | ||
HypervisorType hypervisorType = HypervisorType.valueOf(rs.getString("hypervisor_type")); | ||
CPU.CPUArch arch = CPU.CPUArch.fromType(rs.getString("arch")); | ||
hypervisorArchList.add(new Pair<>(hypervisorType, arch)); | ||
} | ||
} catch (SQLException ex) { | ||
logger.error("DB exception {}", ex.getMessage(), ex); | ||
return Collections.emptyList(); | ||
} | ||
return hypervisorArchList; | ||
} | ||
|
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.
If possible can we include this method on GenericDaoBase
accepting a table as parameter so then it can be invoked on ClusterDaoImpl and here just passing the different table to query from?
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.
@nvazquez moving a method with specific columns in GenericDaoBase doesn't sound right to me.
I've refactored the code use SearchBuilder and SearchCriteria instead.
return templateName; | ||
} | ||
|
||
protected DomainRouterVO createOrUpdateInternalLb(DomainRouterVO internalLbVm, final long id, |
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.
Looks like this method is unused?
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.
fixed
[SF] Trillian Build Failed (tid-12650) |
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.
Largely lgtm, left a small comment.
ConfigKey<String> SystemVmPreferredArchitecture = new ConfigKey<>("Advanced" | ||
, String.class | ||
, "system.vm.preferred.architecture" | ||
, "" | ||
, "Preferred architecture for the system VMs including virtual routers" | ||
, true | ||
, ConfigKey.Scope.Zone); |
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.
Is it possible to use this constructor to define the configKey with kind: Select and specify options which probably would be helpful in the UI.
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@blueorangutan package |
@shwstppr a [SL] 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 [SF]: ✔️ el8 ✔️ el9 ✖️ debian ✔️ suse15. SL-JID 12749 |
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Based on changes from apache#10289 s390x support was added paritally with apache#10038 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Description
This PR adds the following changes concerning multi-arch support:
system.vm.preferred.architecture
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?