Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0FBEC200C41 for ; Thu, 9 Mar 2017 15:28:44 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0CADE160B64; Thu, 9 Mar 2017 14:28:44 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 56B91160B67 for ; Thu, 9 Mar 2017 15:28:43 +0100 (CET) Received: (qmail 95564 invoked by uid 500); 9 Mar 2017 14:28:42 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 95553 invoked by uid 99); 9 Mar 2017 14:28:42 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Mar 2017 14:28:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 166C2C047B for ; Thu, 9 Mar 2017 14:28:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.652 X-Spam-Level: X-Spam-Status: No, score=0.652 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id suO1eMKnUVLK for ; Thu, 9 Mar 2017 14:28:41 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A0A6560DFC for ; Thu, 9 Mar 2017 14:28:40 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D0C58E095F for ; Thu, 9 Mar 2017 14:28:38 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 43052243B0 for ; Thu, 9 Mar 2017 14:28:38 +0000 (UTC) Date: Thu, 9 Mar 2017 14:28:38 +0000 (UTC) From: "Stefan Podkowinski (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-12773) cassandra-stress error for one way SSL MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 09 Mar 2017 14:28:44 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-12773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15903117#comment-15903117 ] Stefan Podkowinski commented on CASSANDRA-12773: ------------------------------------------------ Patch has been updated and CI results are in. ||2.2||3.0||3.11||trunk|| |[branch|https://github.com/spodkowinski/cassandra/tree/CASSANDRA-12733-2.2]|[branch|https://github.com/spodkowinski/cassandra/tree/CASSANDRA-12733-3.0]|[branch|https://github.com/spodkowinski/cassandra/tree/CASSANDRA-12733-3.11]|[branch|https://github.com/spodkowinski/cassandra/tree/CASSANDRA-12733-trunk]| |[dtest|http://cassci.datastax.com/view/Dev/view/spodkowinski/job/spodkowinski-CASSANDRA-12733-2.2-dtest/]|[dtest|http://cassci.datastax.com/view/Dev/view/spodkowinski/job/spodkowinski-CASSANDRA-12733-3.0-dtest/]|[dtest|http://cassci.datastax.com/view/Dev/view/spodkowinski/job/spodkowinski-CASSANDRA-12733-3.11-dtest/]|| |[testall|http://cassci.datastax.com/view/Dev/view/spodkowinski/job/spodkowinski-CASSANDRA-12733-2.2-testall/]|[testall|http://cassci.datastax.com/view/Dev/view/spodkowinski/job/spodkowinski-CASSANDRA-12733-3.0-testall/]|[testall|http://cassci.datastax.com/view/Dev/view/spodkowinski/job/spodkowinski-CASSANDRA-12733-3.11-testall/]|| > cassandra-stress error for one way SSL > --------------------------------------- > > Key: CASSANDRA-12773 > URL: https://issues.apache.org/jira/browse/CASSANDRA-12773 > Project: Cassandra > Issue Type: Bug > Components: Tools > Reporter: Jane Deng > Assignee: Stefan Podkowinski > Fix For: 2.2.x > > Attachments: 12773-2.2.patch > > > CASSANDRA-9325 added keystore/truststore configuration into cassandra-stress. However, for one way ssl (require_client_auth=false), there is no need to pass keystore info into ssloptions. Cassadra-stress errored out: > {noformat} > java.lang.RuntimeException: java.io.IOException: Error creating the initializing the SSL Context > at org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(StressSettings.java:200) > at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpacesNative(SettingsSchema.java:79) > at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(SettingsSchema.java:69) > at org.apache.cassandra.stress.settings.StressSettings.maybeCreateKeyspaces(StressSettings.java:207) > at org.apache.cassandra.stress.StressAction.run(StressAction.java:55) > at org.apache.cassandra.stress.Stress.main(Stress.java:117) > Caused by: java.io.IOException: Error creating the initializing the SSL Context > at org.apache.cassandra.security.SSLFactory.createSSLContext(SSLFactory.java:151) > at org.apache.cassandra.stress.util.JavaDriverClient.connect(JavaDriverClient.java:128) > at org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(StressSettings.java:191) > ... 5 more > Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect > at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:772) > at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:55) > at java.security.KeyStore.load(KeyStore.java:1445) > at org.apache.cassandra.security.SSLFactory.createSSLContext(SSLFactory.java:129) > ... 7 more > Caused by: java.security.UnrecoverableKeyException: Password verification failed > at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:770) > ... 10 more > {noformat} > It's a bug from CASSANDRA-9325. When the keystore is absent, the keystore is assigned to the path of the truststore, but the password isn't taken care. -- This message was sent by Atlassian JIRA (v6.3.15#6346)