Uh oh!
There was an error while loading. Please reload this page.
agent: enable ssl only for kvm agent (not in system vms) - #6371
Conversation
weizhouapache
commented
May 10, 2022
@blueorangutan package |
blueorangutan
commented
May 10, 2022
@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
commented
May 10, 2022
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3383 |
nvazquez
commented
May 10, 2022
@blueorangutan test |
blueorangutan
commented
May 10, 2022
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
| if (!LIBVIRT_COMPUTING_RESOURCE.equalsIgnoreCase(resource)) { | ||
| s_logger.info("This is not a cloudstack kvm agent, ignoring"); | ||
| return; | ||
| } |
There was a problem hiding this comment.
@nvazquez@weizhouapache Could this cause an issue with (a) direct download, (b) ssl enabled cpvm and ssvm. Should we attempt to fix the issue by importing or referencing the system keystore too where java/ca certs are stored and imported (for x1/letsencrypt) @Pearl1594 ?
There was a problem hiding this comment.
@rohityadavcloud@nvazquez@Pearl1594
this part of code was introduced in #6200 which aims to fix an issue with direct download on KVM.
with this pr, SSL is still enabled on KVM hosts, but not in system VMs where Java process load key store realhostip.keystone (same as the behavior without #6200 )
There was a problem hiding this comment.
Makes sense if this was relatively newer code.
weizhouapache
commented
May 10, 2022
@blueorangutan ubuntu20 kvm-ubuntu20 |
nvazquez
commented
May 11, 2022
Verified HTTPS templates working on KVM env with this fix |
| return; | ||
| } | ||
| final String resource = getProperty(null, "resource"); | ||
| if (!LIBVIRT_COMPUTING_RESOURCE.equalsIgnoreCase(resource)) { |
There was a problem hiding this comment.
The use of LIBVIRT_COMPUTING_RESOURCE or com.cloud.hypervisor.kvm.resource.LibvirtComputingResource may be misleading (for ex. what if this isn't the resource name? for example, we do support lxc etc?).
Can you simply add a check if the agent is either is in systemvm (for ex. /etc/cloudstack-release would exist) or if we're on a KVM host (check for /dev/kvm exists or libvirt running)? (Depending on what we're trying to achieve here). The other option usually is to check the resource class via some method.
What do you think @weizhouapache@nvazquez ?
There was a problem hiding this comment.
@rohityadavcloud
I will move all these codes to LibvirtComputingResource which makes more sense.
I will verify the issue fixed by #6200 as well.
blueorangutan
commented
May 11, 2022
Trillian test result (tid-4158)
|
acs-robot
commented
May 11, 2022
Found UI changes, kicking a new UI QA build |
blueorangutan
commented
May 11, 2022
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
blueorangutan
commented
May 11, 2022
UI build: ✔️ |
weizhouapache
commented
May 11, 2022
@blueorangutan package |
blueorangutan
commented
May 11, 2022
@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. |
Kudos, SonarCloud Quality Gate passed! |
blueorangutan
commented
May 11, 2022
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3386 |
nvazquez
commented
May 11, 2022
@blueorangutan test |
blueorangutan
commented
May 11, 2022
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
blueorangutan
commented
May 11, 2022
Trillian test result (tid-4161)
|
nvazquez
commented
May 11, 2022
@blueorangutan test |
blueorangutan
commented
May 11, 2022
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
blueorangutan
commented
May 12, 2022
Trillian test result (tid-4166)
|
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>
…en enable SSL for kvm agent This was implemented in PR#6200 and apache#6371 , but broken in PR#6348
…en enable SSL for kvm agent This was implemented in PR#6200 and apache#6371 , but broken in PR#6348








Description
This PR fixes the issue that template cannot be downloaded from https site in 4.17.0.0 RC2.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?