Updated Branches:
refs/heads/master 8ed3788ad -> 67490f75e
Display the reason which failed certificate generation fails
within cloud.server.ConfigurationServerImpl.generateDefaultKeystore
Description:
The reason which failed in generation of the certificate is not displayed now.
At that time, IOException which does not include the reason is raised.
In order to solve the problem quickly, the reason should be included in the
message.
(Now)
WARN [cloud.server.ConfigurationServerImpl] (main:) Would use fail-safe
keystore to continue.
java.io.IOException: Fail to generate certificate!
at
com.cloud.server.ConfigurationServerImpl.generateDefaultKeystore(ConfigurationServerImpl.java:490)
(Fix)
WARN [cloud.server.ConfigurationServerImpl] (main:) Would use fail-safe
keystore to continue.
java.io.IOException: Fail to generate certificate!: sudo: sorry, you must have
a tty to run sudo
at
com.cloud.server.ConfigurationServerImpl.generateDefaultKeystore(ConfigurationServerImpl.java:490)
Testing Completed:
mvn clean install
mvn -pl :cloud-client-ui jetty:run
And generation of the certificate was made to fail, checked it.
Signed-off-by: Chip Childers <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit:
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/67490f75
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/67490f75
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/67490f75
Branch: refs/heads/master
Commit: 67490f75e63689e53aaa43b30faddc4f22bef7a4
Parents: cfecd20
Author: Satoshi Kobayashi <[email protected]>
Authored: Fri Nov 9 14:25:44 2012 -0500
Committer: Chip Childers <[email protected]>
Committed: Fri Nov 9 14:25:44 2012 -0500
----------------------------------------------------------------------
.../com/cloud/server/ConfigurationServerImpl.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/67490f75/server/src/com/cloud/server/ConfigurationServerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/server/ConfigurationServerImpl.java
b/server/src/com/cloud/server/ConfigurationServerImpl.java
index 420b172..513dbbf 100755
--- a/server/src/com/cloud/server/ConfigurationServerImpl.java
+++ b/server/src/com/cloud/server/ConfigurationServerImpl.java
@@ -473,7 +473,7 @@ public class ConfigurationServerImpl implements
ConfigurationServer {
script.add("-dname", dname);
String result = script.execute();
if (result != null) {
- throw new IOException("Fail to generate certificate!");
+ throw new IOException("Fail to generate certificate!: " + result);
}
}