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 A3321200B6F for ; Wed, 24 Aug 2016 09:35:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A1F25160AA4; Wed, 24 Aug 2016 07:35:24 +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 E9DB2160AC1 for ; Wed, 24 Aug 2016 09:35:23 +0200 (CEST) Received: (qmail 20222 invoked by uid 500); 24 Aug 2016 07:35:22 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 19978 invoked by uid 500); 24 Aug 2016 07:35:22 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 19910 invoked by uid 99); 24 Aug 2016 07:35:22 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Aug 2016 07:35:22 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 286A02C0152 for ; Wed, 24 Aug 2016 07:35:22 +0000 (UTC) Date: Wed, 24 Aug 2016 07:35:22 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-9467) Fresh installation of cloudstack-usage server fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 24 Aug 2016 07:35:24 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-9467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15434386#comment-15434386 ] ASF subversion and git services commented on CLOUDSTACK-9467: ------------------------------------------------------------- Commit 19f159a96b0a565f1a70cdd745a6f2ca0c35207c in cloudstack's branch refs/heads/master from [~rohit.yadav@shapeblue.com] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=19f159a ] Merge pull request #1657 from shapeblue/4.8-usageserverfix [lts/blocker] CLOUDSTACK-9467: Add symlink to key file for usage serverOn fresh installation, the usage server fails to start if the `key` file does not exist in its classpath. The issue is reproducible in environments (such as Trillian) where the usage server is installed before cloudstack-setup-databases has been called. Before the cloudstack db has been setup, the key file does not exist at its default location and installation of usage-server fails to add a symlink to the key file. This fix adds a default symlink to `/etc/cloudstack/management/key` if a symlink/file does not already exist in the /etc/cloudstack/usage directory. On new installation, in the post-installation steps it checks if the symlink or file exists, and adds a symlink if it does not exist. On existing installations, if symlink or file exists then it will skip adding symlink. /cc @jburwell @PaulAngus @karuturi @blueorangutan package * pr/1657: CLOUDSTACK-9467: Add symlink to key file for usage server Signed-off-by: Rohit Yadav > Fresh installation of cloudstack-usage server fails > --------------------------------------------------- > > Key: CLOUDSTACK-9467 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9467 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Reporter: Rohit Yadav > Assignee: Rohit Yadav > Priority: Blocker > Fix For: 4.10.0, 4.9.1, 4.8.2 > > > On fresh installation of cloudstack, the key file is not symlinked to the /etc/cloudstack/management/key file causing the usage server to fail to start: > Caused by: com.cloud.utils.exception.CloudRuntimeException: key File containing secret key not found in the classpath: > at com.cloud.utils.crypt.EncryptionSecretKeyChecker.check(EncryptionSecretKeyChecker.java:83) > at com.cloud.utils.db.DbProperties.getDbProperties(DbProperties.java:80) > at com.cloud.utils.db.TransactionLegacy.(TransactionLegacy.java:999) > The fix is to add a symlink. -- This message was sent by Atlassian JIRA (v6.3.4#6332)