You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/05/10 20:02:56 UTC
[GitHub] [cloudstack] rohityadavcloud commented on a diff in pull request #6371: agent: enable ssl only for kvm agent (not in system vms)
rohityadavcloud commented on code in PR #6371:
URL: https://github.com/apache/cloudstack/pull/6371#discussion_r869634355
##########
agent/src/main/java/com/cloud/agent/AgentShell.java:
##########
@@ -399,12 +401,17 @@ public void init(String[] args) throws ConfigurationException {
_backoff.configure("ConstantTimeBackoff", new HashMap<String, Object>());
}
- private void enableSSL() {
+ private void enableSSLForKvmAgent() {
final File agentFile = PropertiesUtil.findConfigFile("agent.properties");
if (agentFile == null) {
s_logger.info("Failed to find agent.properties file");
return;
}
+ final String resource = getProperty(null, "resource");
+ if (!LIBVIRT_COMPUTING_RESOURCE.equalsIgnoreCase(resource)) {
+ s_logger.info("This is not a cloudstack kvm agent, ignoring");
+ return;
+ }
Review 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 ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org