GitHub user rhtyd opened a pull request: https://github.com/apache/cloudstack/pull/1657
CLOUDSTACK-9467: Add symlink to key file for usage server On 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 You can merge this pull request into a Git repository by running: $ git pull https://github.com/shapeblue/cloudstack 4.8-usageserverfix Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cloudstack/pull/1657.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1657 ---- commit 8cd44b1684b41884f10f350318dc8130eb5b5f75 Author: Rohit Yadav <rohit.ya...@shapeblue.com> Date: 2016-08-23T11:50:41Z CLOUDSTACK-9467: Add symlink to key file for usage server On fresh installation, the usage server fails to start if the `key` file does not exist in its classpath. The issue is reproducible in environments 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. Signed-off-by: Rohit Yadav <rohit.ya...@shapeblue.com> ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---