Skip to content

KVM: Enable SSL if keystore exists - #6200

Merged
nvazquez merged 2 commits into
apache:mainfrom
weizhouapache:4.17-kvm-enable-ssl
Apr 22, 2022
Merged

KVM: Enable SSL if keystore exists#6200
nvazquez merged 2 commits into
apache:mainfrom
weizhouapache:4.17-kvm-enable-ssl

Conversation

@weizhouapache

Copy link
Copy Markdown
Member

Description

This PR enables SSL in kvm agent if keystore exists.

This fixes the issue in URL check of direct-download templates

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • 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

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

@weizhouapacheweizhouapache added this to the 4.17.0.0 milestone Apr 4, 2022
@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@weizhouapache 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.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3067

@nvazquez

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3807)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 32581 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6200-t3807-kvm-centos7.zip
Smoke tests completed. 92 look OK, 0 have errors
Only failed tests results shown below:

TestResultTime (s)Test File

@nvazqueznvazquez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@weizhouapache
weizhouapache marked this pull request as ready for review April 12, 2022 11:10
@weizhouapacheweizhouapache self-assigned this Apr 12, 2022

@DaanHooglandDaanHoogland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. some refinements possible.

Comment threadagent/src/main/java/com/cloud/agent/AgentShell.java
Comment threadagent/src/main/java/com/cloud/agent/AgentShell.java
@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@blueorangutan package

@acs-robot

Copy link
Copy Markdown

Found UI changes, kicking a new UI QA build
@blueorangutan ui

@acs-robot

Copy link
Copy Markdown

Found Java/XML changes, kicking packaging job
@blueorangutan package

@acs-robot

Copy link
Copy Markdown

PR Coverage Report

CLASSINSTRUCTION MISSEDINSTRUCTION COVEREDBRANCH MISSEDBRANCH COVEREDLINE MISSEDLINE COVERED
StorageManager021100018
AgentAttache1042012402190
AgentManagerImpl3463038007140
ClusteredAgentManagerImpl2361024205360
NetworkOrchestrator963601176019010
VolumeOrchestrator5170056009770
NetworkDaoImpl3307011604670
SnapshotVO172581204820
SnapshotDaoImpl7680801280
Upgrade41610to4170082740232
DirectDownloadCertificateHostMapDaoImpl121000180
DirectDownloadCertificateHostMapVO54040190
AncientDataMotionStrategy145852170433810
DefaultSnapshotStrategy7582201001016437
SnapshotDataFactoryImpl152581553713
DefaultVMSnapshotStrategy4866775230100140
ScaleIOVMSnapshotStrategy106348002241
StorageStrategyFactoryImpl377715818
SnapshotDataStoreDaoImpl16836044229213
DefaultHostListener53704001010
LibvirtComputingResource8927196110961401992444
LibvirtVMDef37114641136
LibvirtReadyCommandWrapper83722110
LibvirtRevertSnapshotCommandWrapper3871302006916
LibvirtUtilitiesHelper1155842278
IscsiAdmStorageAdaptor98105201780
IscsiAdmStoragePool129000320
KVMStoragePoolManager92647601921
KVMStorageProcessor599249844822123971
LibvirtStorageAdaptor33761925707972
LibvirtStoragePool239891596429
LinstorStorageAdaptor107605002460
ManagedNfsStorageAdaptor44602001250
ScaleIOStorageAdaptor684121751315231
QemuImg67406401600
MockVmManagerImpl149509003380
VmwareServerDiscoverer1586018203780
VmwareManagerImpl261352829638615117
VmwareResource2006002242043300
VmwareStorageProcessor98869940021212
XcpServerDiscoverer1554101176634521
CitrixResourceBase145665571452343160122
CitrixReadyCommandWrapper5837311511
ListVMsMetricsCmd39000100
MetricsServiceImpl167309803370
NetScalerControlCenterResource1943014404680
NetscalerResource68820806016230
ElastistorHostListener1500140300
DateraPrimaryDataStoreDriver3195028307480
DateraHostListener63507401360
CloudStackPrimaryDataStoreDriverImpl903011402290
LinstorPrimaryDataStoreDriverImpl144209103480
ScaleIOPrimaryDataStoreDriver2537024605370
ScaleIOHostListener1960140430
SolidFirePrimaryDataStoreDriver3347028406970
SolidFireHostListener54506001120
SolidFireSharedHostListener4070300820
SAMLUtils202465411153108
ApiDBUtils2361020605880
ApiResponseHelper1187801242027110
ParamProcessWorker1027014702370
QueryManagerImpl1415301242023890
ViewResponseHelper1662015003050
UserVmJoinDaoImpl1531018403280
Config152516230642342
ConfigurationManagerImpl1809403042035710
LibvirtServerDiscoverer988011602180
ConfigDriveNetworkElement1466017303060
NetworkHelperImpl2019026404280
NetworkACLServiceImpl2698030205200
ResourceManagerImpl85120982016580
ManagementServerImpl1176401048023490
StatsCollector1875010403080
StorageManagerImpl85470974017040
VolumeApiServiceImpl1082601498020310
SnapshotManager10700090
SnapshotManagerImpl4186041007510
TaggedResourceManagerImpl4730580960
TemplateManagerImpl49960696010420
AccountManagerImpl64270900013480
UserVmManagerImpl2082402576038730
VMSnapshotManagerImpl3135029206230
BackupManagerImpl2776022404880
DirectDownloadManagerImpl1679018603610
UnmanagedVMsManagerImpl4881054208000
PremiumSecondaryStorageManagerImpl77506401160
SecondaryStorageManagerImpl34941493431162332

@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@weizhouapache 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.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3221

@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@blueorangutan test ubuntu20 kvm-ubuntu20

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a Trillian-Jenkins test job (ubuntu20 mgmt + kvm-ubuntu20) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian Build Failed (tid-3939)

@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@blueorangutan test ubuntu20 kvm-ubuntu20

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a Trillian-Jenkins test job (ubuntu20 mgmt + kvm-ubuntu20) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3940)
Environment: kvm-ubuntu20 (x2), Advanced Networking with Mgmt server u20
Total time taken: 40036 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6200-t3940-kvm-ubuntu20.zip
Smoke tests completed. 93 look OK, 3 have errors
Only failed tests results shown below:

TestResultTime (s)Test File
test_01_add_primary_storage_disabled_hostError0.69test_primary_storage.py
test_01_primary_storage_nfsError0.19test_primary_storage.py
ContextSuite context=TestStorageTags>:setupError0.32test_primary_storage.py
test_01_deploy_vm_on_specific_hostError1.22test_vm_deployment_planner.py
test_02_deploy_vm_on_specific_clusterError0.16test_vm_deployment_planner.py
test_03_deploy_vm_on_specific_podError0.20test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_clusterError1.26test_vm_deployment_planner.py
test_05_deploy_vm_on_cluster_override_podError0.18test_vm_deployment_planner.py
test_hostha_enable_ha_when_host_in_maintenanceError305.17test_hostha_kvm.py

@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@blueorangutan test ubuntu20 kvm-ubuntu20

@nvazquez

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@weizhouapache 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.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3264

@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@nvazquez

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3977)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 41440 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6200-t3977-kvm-centos7.zip
Smoke tests completed. 96 look OK, 0 have errors
Only failed tests results shown below:

TestResultTime (s)Test File

@nvazquez
nvazquez merged commit 4525f8c into apache:mainApr 22, 2022
weizhouapache added a commit to weizhouapache/cloudstack that referenced this pull request May 11, 2022
nvazquez pushed a commit that referenced this pull request May 12, 2022
* agent: enable ssl only for kvm agent (not in system vms)
* Revert "agent: enable ssl only for kvm agent (not in system vms)"
This reverts commit b2d76ba.
* Revert "KVM: Enable SSL if keystore exists (#6200)"
This reverts commit 4525f8c.
* KVM: Enable SSL if keystore exists in LibvirtComputingResource.java
shwstppr pushed a commit to shapeblue/cloudstack that referenced this pull request May 17, 2022
* KVM: Enable SSL if keystore exists
* Update apache#6200: add logs if no passphrase or no keystore
Co-authored-by: Wei Zhou <weizhou@apache.org>
Pearl1594 pushed a commit to shapeblue/cloudstack that referenced this pull request Sep 6, 2022
apache#151)
* agent: enable ssl only for kvm agent (not in system vms)
* Revert "agent: enable ssl only for kvm agent (not in system vms)"
This reverts commit b2d76ba.
* Revert "KVM: Enable SSL if keystore exists (apache#6200)"
This reverts commit 4525f8c.
* KVM: Enable SSL if keystore exists in LibvirtComputingResource.java
Co-authored-by: Wei Zhou <weizhou@apache.org>
@weizhouapache
weizhouapache deleted the 4.17-kvm-enable-ssl branch December 9, 2022 10:08
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants

@weizhouapache@blueorangutan@nvazquez@acs-robot@DaanHoogland