mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
packaging: Issue #3974 Deploying mysql-ha jar file into its own path to allow for easy inclusion of just this jar file into multiple packages, such as cloudstack-management and cloudstack-usage. (#3975)
Support for centos7 and centos8 Prior PR #2915 causes the cloudstack-usage daemon to not be able to find the mysql-ha jar file. 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, as it will cause cloudstack-usage to load other plugins that it doesn't need. Fixes: #3974
This commit is contained in:
parent
413d10dd81
commit
2bbc78170b
@ -369,7 +369,7 @@ cp -r test/integration/* ${RPM_BUILD_ROOT}%{_datadir}/%{name}-integration-tests/
|
|||||||
# MYSQL HA
|
# MYSQL HA
|
||||||
if [ "x%{_ossnoss}" == "xnoredist" ] ; then
|
if [ "x%{_ossnoss}" == "xnoredist" ] ; then
|
||||||
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/%{name}-mysql-ha/lib
|
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/%{name}-mysql-ha/lib
|
||||||
cp -r plugins/database/mysql-ha/target/cloud-plugin-database-mysqlha-%{_maventag}.jar ${RPM_BUILD_ROOT}%{_datadir}/%{name}-management/lib
|
cp -r plugins/database/mysql-ha/target/cloud-plugin-database-mysqlha-%{_maventag}.jar ${RPM_BUILD_ROOT}%{_datadir}/%{name}-mysql-ha/lib
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#License files from whisker
|
#License files from whisker
|
||||||
@ -639,7 +639,7 @@ pip3 install --upgrade urllib3
|
|||||||
%if "%{_ossnoss}" == "noredist"
|
%if "%{_ossnoss}" == "noredist"
|
||||||
%files mysql-ha
|
%files mysql-ha
|
||||||
%defattr(0644,cloud,cloud,0755)
|
%defattr(0644,cloud,cloud,0755)
|
||||||
%attr(0644,root,root) %{_datadir}/%{name}-management/lib/*mysqlha*jar
|
%attr(0644,root,root) %{_datadir}/%{name}-mysql-ha/lib/*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files baremetal-agent
|
%files baremetal-agent
|
||||||
|
|||||||
@ -362,7 +362,7 @@ cp -r test/integration/* ${RPM_BUILD_ROOT}%{_datadir}/%{name}-integration-tests/
|
|||||||
# MYSQL HA
|
# MYSQL HA
|
||||||
if [ "x%{_ossnoss}" == "xnoredist" ] ; then
|
if [ "x%{_ossnoss}" == "xnoredist" ] ; then
|
||||||
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/%{name}-mysql-ha/lib
|
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/%{name}-mysql-ha/lib
|
||||||
cp -r plugins/database/mysql-ha/target/cloud-plugin-database-mysqlha-%{_maventag}.jar ${RPM_BUILD_ROOT}%{_datadir}/%{name}-management/lib
|
cp -r plugins/database/mysql-ha/target/cloud-plugin-database-mysqlha-%{_maventag}.jar ${RPM_BUILD_ROOT}%{_datadir}/%{name}-mysql-ha/lib
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#License files from whisker
|
#License files from whisker
|
||||||
@ -627,7 +627,7 @@ pip install --upgrade /usr/share/cloudstack-marvin/Marvin-*.tar.gz
|
|||||||
%if "%{_ossnoss}" == "noredist"
|
%if "%{_ossnoss}" == "noredist"
|
||||||
%files mysql-ha
|
%files mysql-ha
|
||||||
%defattr(0644,cloud,cloud,0755)
|
%defattr(0644,cloud,cloud,0755)
|
||||||
%attr(0644,root,root) %{_datadir}/%{name}-management/lib/*mysqlha*jar
|
%attr(0644,root,root) %{_datadir}/%{name}-mysql-ha/lib/*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files baremetal-agent
|
%files baremetal-agent
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
JAVA_OPTS="-Djava.security.properties=/etc/cloudstack/management/java.security.ciphers -Djava.awt.headless=true -Dcom.sun.management.jmxremote=false -Xmx2G -XX:+UseParallelGC -XX:MaxGCPauseMillis=500 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/cloudstack/management/ -XX:ErrorFile=/var/log/cloudstack/management/cloudstack-management.err "
|
JAVA_OPTS="-Djava.security.properties=/etc/cloudstack/management/java.security.ciphers -Djava.awt.headless=true -Dcom.sun.management.jmxremote=false -Xmx2G -XX:+UseParallelGC -XX:MaxGCPauseMillis=500 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/cloudstack/management/ -XX:ErrorFile=/var/log/cloudstack/management/cloudstack-management.err "
|
||||||
|
|
||||||
CLASSPATH="/usr/share/cloudstack-management/lib/*:/etc/cloudstack/management:/usr/share/cloudstack-common:/usr/share/cloudstack-management/setup:/usr/share/cloudstack-management:/usr/share/java/mysql-connector-java.jar"
|
CLASSPATH="/usr/share/cloudstack-management/lib/*:/etc/cloudstack/management:/usr/share/cloudstack-common:/usr/share/cloudstack-management/setup:/usr/share/cloudstack-management:/usr/share/java/mysql-connector-java.jar:/usr/share/cloudstack-mysql-ha/lib/*"
|
||||||
|
|
||||||
BOOTSTRAP_CLASS=org.apache.cloudstack.ServerDaemon
|
BOOTSTRAP_CLASS=org.apache.cloudstack.ServerDaemon
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user