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 2018/11/29 14:52:16 UTC
[GitHub] falcon78921 opened a new issue #3067: CloudStack 4.11 Agent SSL
Errors
falcon78921 opened a new issue #3067: CloudStack 4.11 Agent SSL Errors
URL: https://github.com/apache/cloudstack/issues/3067
<!--
Verify first that your issue/request is not already reported on GitHub.
Also test if the latest release and master branch are affected too.
Always add information AFTER of these HTML comments, but no need to delete the comments.
-->
##### ISSUE TYPE
<!-- Pick one below and delete the rest -->
* Bug Report
##### COMPONENT NAME
<!--
Categorize the issue, e.g. API, VR, VPN, UI, etc.
-->
~~~
Apache CloudStack 4.11.1 Agent
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on master branch.
-->
~~~
Apache CloudStack 4.11.1
~~~
##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network, advanced networking, etc. N/A otherwise
-->
~~~
Advanced Zone
~~~
##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
~~~
Ubuntu 16.04.5 LTS
~~~
##### SUMMARY
<!-- Explain the problem/feature briefly -->
On a clean installation of Apache CloudStack 4.11.1, ```cloudstack-setup-agent``` doesn't generate the needed SSL information (e.g. ```cloud.jks```) in ```/etc/cloudstack/agent```. Similar to what Rohit says in: http://mail-archives.apache.org/mod_mbox/cloudstack-users/201803.mbox/%3CAM4PR07MB349069E1BA5FBD73FD97B1CCE9D00@AM4PR07MB3490.eurprd07.prod.outlook.com%3E
##### STEPS TO REPRODUCE
<!--
For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.
For new features, show how the feature would be used.
-->
<!-- Paste example playbooks or commands between quotes below -->
~~~
Running cloudstack-setup-agent on a fresh installation of cloudstack-agent.
~~~
<!-- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
The host should generate SSL information in order to communicate with management server. When adding hosts via CloudStack management, oddly enough, the hosts register. This is, however, after many attempts and SSL errors. CloudStack management also duplicates the host. I just removed the additional host record.
##### ACTUAL RESULTS
<!-- What actually happened? -->
Instead, these errors occur:
~~~
2018-11-29 09:24:41,003 INFO [utils.exception.CSExceptionErrorCode] (main:null) (logid:) Could not find exception: com.cloud.utils.exception.NioConnectionException in error code list for exceptions
2018-11-29 09:24:41,004 WARN [cloud.agent.Agent] (main:null) (logid:) NIO Connection Exception com.cloud.utils.exception.NioConnectionException: SSL Handshake failed while connecting to host: 10.10.13.180 port: 8250
2018-11-29 09:24:41,004 INFO [cloud.agent.Agent] (main:null) (logid:) Attempted to connect to the server, but received an unexpected exception, trying again...
2018-11-29 09:24:46,004 INFO [cloud.agent.Agent] (main:null) (logid:) Connecting to host:10.10.13.180
2018-11-29 09:24:46,005 INFO [utils.nio.NioClient] (main:null) (logid:) Connecting to 10.10.13.180:8250
2018-11-29 09:24:46,007 INFO [utils.nio.Link] (main:null) (logid:) Conf file found: /etc/cloudstack/agent/agent.properties
2018-11-29 09:24:46,009 WARN [utils.nio.Link] (main:null) (logid:) Failed to load keystore, using trust all manager
2018-11-29 09:24:46,096 ERROR [utils.nio.Link] (main:null) (logid:) SSL error caught during unwrap data: Received fatal alert: bad_certificate, for local address=/10.10.15.26:49420, remote address=/10.10.13.180:8250. The client may have invalid ca-certificates.
2018-11-29 09:24:46,096 ERROR [utils.nio.NioClient] (main:null) (logid:) SSL Handshake failed while connecting to host: 10.10.13.180 port: 8250
2018-11-29 09:24:46,096 ERROR [utils.nio.NioConnection] (main:null) (logid:) Unable to initialize the threads.
java.io.IOException: SSL Handshake failed while connecting to host: 10.10.13.180 port: 8250
at com.cloud.utils.nio.NioClient.init(NioClient.java:67)
at com.cloud.utils.nio.NioConnection.start(NioConnection.java:95)
at com.cloud.agent.Agent.start(Agent.java:294)
at com.cloud.agent.AgentShell.launchNewAgent(AgentShell.java:455)
at com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:422)
at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:406)
at com.cloud.agent.AgentShell.start(AgentShell.java:512)
at com.cloud.agent.AgentShell.main(AgentShell.java:547)
~~~
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services