Repository: cloudstack Updated Branches: refs/heads/master cdc66c9e7 -> 6fb9746e5
CLOUDSTACK-7316: usage server cannot start due to missing key in /etc/cloudstack/usage/ in Ubuntu setup Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/6fb9746e Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/6fb9746e Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/6fb9746e Branch: refs/heads/master Commit: 6fb9746e5eeacadc10b7d0977b03959683058b33 Parents: cdc66c9 Author: Wei Zhou <[email protected]> Authored: Mon Dec 15 09:22:52 2014 +0100 Committer: Wei Zhou <[email protected]> Committed: Mon Dec 15 09:22:52 2014 +0100 ---------------------------------------------------------------------- debian/cloudstack-usage.postinst | 6 ++++++ engine/schema/src/com/cloud/usage/dao/UsageVmDiskDaoImpl.java | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6fb9746e/debian/cloudstack-usage.postinst ---------------------------------------------------------------------- diff --git a/debian/cloudstack-usage.postinst b/debian/cloudstack-usage.postinst index fa8650c..8a475c4 100644 --- a/debian/cloudstack-usage.postinst +++ b/debian/cloudstack-usage.postinst @@ -37,6 +37,12 @@ case "$1" in if [ -f "/etc/cloud/usage/log4j-cloud.xml" ]; then cp -a /etc/cloud/usage/log4j-cloud.xml /etc/cloudstack/usage/log4j-cloud.xml fi + + # Replacing key with management server key + if [ -f "/etc/cloudstack/management/key" ]; then + rm -rf /etc/cloudstack/usage/key + ln -s /etc/cloudstack/management/key /etc/cloudstack/usage/key + fi ;; esac http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6fb9746e/engine/schema/src/com/cloud/usage/dao/UsageVmDiskDaoImpl.java ---------------------------------------------------------------------- diff --git a/engine/schema/src/com/cloud/usage/dao/UsageVmDiskDaoImpl.java b/engine/schema/src/com/cloud/usage/dao/UsageVmDiskDaoImpl.java index 3e75930..4491c67 100644 --- a/engine/schema/src/com/cloud/usage/dao/UsageVmDiskDaoImpl.java +++ b/engine/schema/src/com/cloud/usage/dao/UsageVmDiskDaoImpl.java @@ -35,7 +35,7 @@ import com.cloud.utils.exception.CloudRuntimeException; @Component @Local(value = {UsageVmDiskDao.class}) public class UsageVmDiskDaoImpl extends GenericDaoBase<UsageVmDiskVO, Long> implements UsageVmDiskDao { - private static final Logger s_logger = Logger.getLogger(UsageVMInstanceDaoImpl.class.getName()); + private static final Logger s_logger = Logger.getLogger(UsageVmDiskDaoImpl.class.getName()); private static final String SELECT_LATEST_STATS = "SELECT uvd.account_id, uvd.zone_id, uvd.vm_id, uvd.volume_id, uvd.io_read, uvd.io_write, uvd.agg_io_read, uvd.agg_io_write, " + "uvd.bytes_read, uvd.bytes_write, uvd.agg_bytes_read, uvd.agg_bytes_write, uvd.event_time_millis "
