<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>hello, everyone!</div><div>&nbsp;&nbsp;&nbsp; I try to run JsonRpcClient to call "Host.getCapabilities" without a running ovirt engine but with a running vdsm, so I write a case to run this file:<br></div><div>backend/manager/modules/vdsbroker/src/test/java/org/ovirt/engine/core/vdsbroker/jsonrpc/JsonRpcIntegrationTest.java</div><div>&nbsp;</div><div>&nbsp;but it's seems failed, logs follows:</div><div>&nbsp;</div><div> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Loaded file '/home/pencc/eclipse-workspace/engine_rpc_test/src/main/resources/engine.conf.defaults'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - The file '/etc/ovirt-engine/engine.conf' doesn't exist or isn't readable. Will return an empty set of properties.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - The file '/etc/ovirt-engine/engine.conf.d/10-setup-database.conf' doesn't exist or isn't readable. Will return an empty set of properties.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Loaded file '/etc/ovirt-engine/engine.conf.d/10-setup-java.conf'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Loaded file '/etc/ovirt-engine/engine.conf.d/10-setup-jboss.conf'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - The file '/etc/ovirt-engine/engine.conf.d/10-setup-pki.conf' doesn't exist or isn't readable. Will return an empty set of properties.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Loaded file '/etc/ovirt-engine/engine.conf.d/10-setup-protocols.conf'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - The file '/etc/ovirt-engine/engine.conf.d/11-setup-sso.conf' doesn't exist or isn't readable. Will return an empty set of properties.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Loaded file '/etc/ovirt-engine/engine.conf.d/20-setup-jboss-overlay.conf'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_AJP_ENABLED' is 'false'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_AJP_PORT' is 'None'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_DB_CHECK_INTERVAL' is '0'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_DB_CONNECTION_TIMEOUT' is '0'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_DEBUG_ADDRESS' is '127.0.0.1:8787'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_DEPLOYMENT_SCANNER' is 'true'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_ETC' is './'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_FQDN' is 'ovirt.linx.com'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_HEAP_MAX' is '3979M'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_HEAP_MIN' is '3979M'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_HTTPS_ENABLED' is 'true'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_HTTPS_PORT' is '8443'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_HTTP_ENABLED' is 'true'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_HTTP_PORT' is '8080'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_JAVA_MODULEPATH' is '/usr/share/ovirt-engine-wildfly-overlay/modules:'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_LOG_TO_CONSOLE' is 'true'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_PKI_ENGINE_STORE' is 'src/main/resources/key.p12'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_PKI_ENGINE_STORE_ALIAS' is '1'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_PKI_ENGINE_STORE_PASSWORD' is 'NoSoup4U'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_PKI_ENGINE_STORE_TYPE' is 'PKCS12'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_PKI_TRUST_STORE' is 'src/main/resources/truststore'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_PKI_TRUST_STORE_PASSWORD' is ''.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_PKI_TRUST_STORE_TYPE' is 'JKS'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_PROXY_ENABLED' is 'false'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_PROXY_HTTPS_PORT' is '443'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_PROXY_HTTP_PORT' is '80'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'ENGINE_USR' is './'.<br>[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of property 'JBOSS_HOME' is '/usr/share/ovirt-engine-wildfly'.<br>Exception:java.lang.RuntimeException: Failed to local keystore '/home/pencc/eclipse-workspace/engine_rpc_test/src/main/resources/truststore'<br></div><div><br></div><div>but but i coped /etc/pki/ovirt-engine/.truststore to there, so this file is exist:</div><div>$ ls /home/pencc/eclipse-workspace/engine_rpc_test/src/main/resources/truststore -l<br>-rw-rw-r-- 1 pencc pencc 1003 9ÔÂ&nbsp;&nbsp; 7 13:26 /home/pencc/eclipse-workspace/engine_rpc_test/src/main/resources/truststore<br></div><div><br></div><div>maybe ENGINE_PKI_TRUST_STORE is not .truststore or truststore is not right?</div><div><br></div><div>I use this in test to set property:</div><div>&nbsp;&nbsp;&nbsp; static {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.setProperty("ovirt-engine.config.defaults", "src/main/resources/engine.conf.defaults");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //System.setProperty("ovirt-engine.conf", "src/main/resources/ovirt-engine.conf");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; catch (Exception e) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; throw new RuntimeException(e);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }</div><div><br></div><div>then in engine.conf.defaults:</div><div>ENGINE_PKI_TRUST_STORE_TYPE=JKS<br>ENGINE_PKI_TRUST_STORE=src/main/resources/truststore<br></div><div><br></div><div><br></div><div><br></div></div><br><br><span title="neteasefooter"><p>&nbsp;</p></span>