mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-7316: usage server cannot start due to missing key in /etc/cloudstack/usage/ in Ubuntu setup
(cherry picked from commit 6fb9746e5eeacadc10b7d0977b03959683058b33) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
e474454c91
commit
e9ce0df5d8
6
debian/cloudstack-usage.postinst
vendored
6
debian/cloudstack-usage.postinst
vendored
@ -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
|
||||
|
||||
|
||||
@ -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 "
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user