Skip to content

Cloudstack-usage not working when using mysql-ha #3974

@ggoodrich-ipp

Description

@ggoodrich-ipp
ISSUE TYPE
  • Bug Report
COMPONENT NAME
cloudstack usage
CLOUDSTACK VERSION
4.11.3
4.13
4.14+
CONFIGURATION

mysql-ha
cloudstack-usage

OS / ENVIRONMENT

Centos7

SUMMARY

Prior PR #2915 causes the cloudstack-usage daemon to not be able to find the mysql-ha jar file. #2915

This happens because the /etc/default/cloudstack-usage file points to the old location for the mysql-ha jar file, and thus is unable to load it. This prior PR installs this jar into a more common area with other jar files, and thus is not really a desired location for the cloudstack-usage daemon to get it from.

STEPS TO REPRODUCE
systemctl start cloudstack-usage
EXPECTED RESULTS
No errors
ACTUAL RESULTS

cloudstack-usage is unable to find and load the mysql-ha jar file.

java.sql.SQLException: Invalid load balancing strategy 'com.cloud.utils.db.StaticStrategy'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions