summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorShireesh Anjal <shireesh@gluster.com>2011-07-30 19:51:48 +0530
committerShireesh Anjal <shireesh@gluster.com>2011-07-30 20:05:21 +0530
commit4b601688b66d365cc02b3684a9e66b5e0b3eb2da (patch)
tree35db86b3d847de7a7d1e2ba66e0afc978710ce8c /src
parent6a6cdc52e31eafaf7900a73fe8166f4d048d9327 (diff)
Changes related to packaging.
Diffstat (limited to 'src')
-rw-r--r--src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/ChartViewerComposite.java3
-rw-r--r--src/com.gluster.storage.management.server/src/com/gluster/storage/management/server/utils/SshUtil.java21
2 files changed, 13 insertions, 11 deletions
diff --git a/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/ChartViewerComposite.java b/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/ChartViewerComposite.java
index 95f0277c..e4d00f75 100644
--- a/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/ChartViewerComposite.java
+++ b/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/utils/ChartViewerComposite.java
@@ -276,7 +276,8 @@ public final class ChartViewerComposite extends Composite implements PaintListen
xAxisPrimary.getTitle().setVisible(false);
xAxisPrimary.getTitle().getInsets().set(1, 1, 1, 1);
xAxisPrimary.getLabel().getInsets().set(1, 1, 1, 1);
- xAxisPrimary.getLabel().getCaption().setFont(createChartFont());
+ //xAxisPrimary.getLabel().getCaption().setFont(createChartFont());
+ xAxisPrimary.getLabel( ).getCaption( ).getFont( ).setSize(8);
xAxisPrimary.getLabel( ).getCaption( ).getFont( ).setRotation( 75 );
xAxisPrimary.setFormatSpecifier( JavaDateFormatSpecifierImpl.create( timestampFormat ) );
return xAxisPrimary;
diff --git a/src/com.gluster.storage.management.server/src/com/gluster/storage/management/server/utils/SshUtil.java b/src/com.gluster.storage.management.server/src/com/gluster/storage/management/server/utils/SshUtil.java
index b874b98e..bf82bc6c 100644
--- a/src/com.gluster.storage.management.server/src/com/gluster/storage/management/server/utils/SshUtil.java
+++ b/src/com.gluster.storage.management.server/src/com/gluster/storage/management/server/utils/SshUtil.java
@@ -54,7 +54,7 @@ public class SshUtil {
private static final String SSH_AUTHORIZED_KEYS_PATH_REMOTE = SSH_AUTHORIZED_KEYS_DIR_REMOTE + SSH_AUTHORIZED_KEYS_FILE;
public static final File PRIVATE_KEY_FILE = new File(SSH_AUTHORIZED_KEYS_DIR_LOCAL + "id_rsa");
public static final File PUBLIC_KEY_FILE = new File(SSH_AUTHORIZED_KEYS_DIR_LOCAL + "id_rsa.pub");
- private static final String SCRIPT_DISABLE_SSH_PASSWORD_AUTH = "disable-ssh-password-auth.sh";
+// private static final String SCRIPT_DISABLE_SSH_PASSWORD_AUTH = "disable-ssh-password-auth.sh";
private static final String PRIVATE_KEY_PASSPHRASE = "gluster";
private LRUCache<String, Connection> sshConnCache = new LRUCache<String, Connection>(10);
@@ -119,7 +119,7 @@ public class SshUtil {
byte[] publicKeyData;
try {
- publicKeyData = new FileUtil().readFileAsByteArray(PUBLIC_KEY_FILE);
+ publicKeyData = FileUtil.readFileAsByteArray(PUBLIC_KEY_FILE);
} catch (Exception e) {
throw new GlusterRuntimeException("Couldn't load public key file [" + PUBLIC_KEY_FILE + "]", e);
}
@@ -140,16 +140,17 @@ public class SshUtil {
throw new GlusterRuntimeException("Couldn't add public key to server [" + serverName + "]", e);
}
- disableSshPasswordLogin(serverName, scpClient);
+ // It was decided NOT to disable password login as this may not be acceptable in a bare-metal environment
+ // disableSshPasswordLogin(serverName, scpClient);
}
- private void disableSshPasswordLogin(String serverName, SCPClient scpClient) {
- ProcessResult result = executeRemote(serverName, SCRIPT_DISABLE_SSH_PASSWORD_AUTH);
- if(!result.isSuccess()) {
- throw new GlusterRuntimeException("Couldn't disable SSH password authentication on [" + serverName
- + "]. Error: " + result);
- }
- }
+// private void disableSshPasswordLogin(String serverName, SCPClient scpClient) {
+// ProcessResult result = executeRemote(serverName, SCRIPT_DISABLE_SSH_PASSWORD_AUTH);
+// if(!result.isSuccess()) {
+// throw new GlusterRuntimeException("Couldn't disable SSH password authentication on [" + serverName
+// + "]. Error: " + result);
+// }
+// }
private Connection getConnectionWithPassword(String serverName) {
Connection conn = createConnection(serverName);