163 Commits

Author SHA1 Message Date
Rohit Yadav
9de521f390 rhel7: fix service name
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-02-18 16:29:24 +05:30
Alex Brett
45ebdf34ae CLOUDSTACK-7469 Complete simulator build support
The initial commit (f96c65416a2802bcf2a1f8d5a5070ffe6a29111f) missed part of the change to package.sh, so we were not actually passing through the simulator build option to the rpmbuild call. This patch completes the support.

(cherry picked from commit e717450e0edd2406c4c3fc7341b3669c4390d507)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-01-20 15:01:41 +05:30
Rohit Yadav
f702097b3e packaging: fix rpm package warning, fix day/date
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-01-20 07:48:26 +05:30
Rohit Yadav
752980f370 Revert "packaging: updated hardcoded jasypt version to 1.9.2"
This reverts commit 43f39a1ec37de08e5b8e97dfd74a853c0aae76c7.
2014-12-04 19:47:10 +05:30
Rohit Yadav
43f39a1ec3 packaging: updated hardcoded jasypt version to 1.9.2
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-12-04 04:02:46 +05:30
Rohit Yadav
3fe1f732d7 CLOUDSTACK-7951: Limit amount of memory used by cloudstack-agent jsvc
The -Xms value specifies the minimum heap size the JVM should start with and
-Xmx is the maximum heap size it can grow. The previous fix imposed minimum
limit of 1G which is unreasonably for small deployments. The fix is to start
with 256MB and limit to 2G for cloudstack-agent process. This was tested on
DevCloud/KVM and then again on a ACS/KVM deployment on real hardware.

With these values, it's possible for the agent to work in a DevCloud/KVM
environment and if JVM needs it can increase the heap size to 2G. The fix also
ports these settings to Debian cloud-agent init.d script as well.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit bb81082e58d90da9971b7e06f4c3f8639446b2d2)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-11-25 18:06:57 +05:30
Keiichi Yusa
1d6ca5eacb CLOUDSTACK-7951
Limit amount of memory used by cloudstack-agent jsvc.

Signed-off-by: Edison Su <sudison@gmail.com>
2014-11-20 10:19:01 -08:00
Rohit Yadav
5107472a01 CLOUDSTACK-6892: use lowercase noredist, as package.sh lowercases build type
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit a18d067278f6b58914dc6a5d44b775ada6cf073e)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-11-13 17:48:56 +05:30
Damodar
34f31f9033 CLOUDSTACK-7851:MS does not start after the VM it is running on is rebooted 2014-11-10 15:07:13 +05:30
rayeesn
dfdf9edd52 updated packge scripts to support simularot rpm build
(cherry picked from commit f96c65416a2802bcf2a1f8d5a5070ffe6a29111f)
2014-10-13 00:35:31 -04:00
Nitin Mehta
a516e5d224 Revert "CLOUDSTACK-7671: Management server restart failed after reboot"
This reverts commit e8f1c592120707ac214d535a6637fa7dc5826289.

(cherry picked from commit e2ca6e38d5e850d820fa0ebfacb7dca9f1f06095)
2014-10-13 00:33:58 -04:00
Damodar
7bea2f7098 CLOUDSTACK-7671: Management server restart failed after reboot
(cherry picked from commit e8f1c592120707ac214d535a6637fa7dc5826289)
2014-10-13 00:30:41 -04:00
Vincent Bernat
b4a2640764 CLOUDSTACK-7633: fix "Provides" in most LSB headers
In init.d scripts, the LSB header may specify what kind of service is
provided by an init script. If spaces are used, this means the init
script is providing several boot facilities. We fix that by using an
hyphen.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 2401eb927bbda69f0376d1f34ef20631e1188540)
2014-10-12 23:58:50 -04:00
rayeesn
d315a5e2c9 CLOUDSTACK-7522 : Update package.sh to exit rpm with return 1, if there are failure in build 2014-09-18 16:01:53 -07:00
Rajani Karuturi
fa1156092e CLOUDSTACK-6926 setting java_home from installed java
changed the order of preference to check for java first.

Usage server rpm installs JRE 1.7. In the case where JDK 1.6 is already
installed, java version would be 1.7 but, javac would be 1.6
If javac is given preference, usage server fails to start in this case.
2014-09-12 15:17:10 +05:30
rayeesn
90287cc60a CLOUDSTACK-6360: adding mysql-connector to class path and it will be loaded while starting cloudstack-usage 2014-09-10 14:40:56 -07:00
Leo Simons
0ec36e128b Fix CLOUDSTACK-7476: always pass along $JAVA_HOME
On a secured environment (selinux w/ env_reset enabled in sudoers), the
runuser command that is invoked by the daemon() function does not pass
along environment variables, so $JAVA_HOME is empty, and JSVC falls
back to its default behavior, which may not find java or may not find
the intended java.

This fix simply passes $JAVA_HOME explicitly using the -home argument to
JSVC.

Signed-off-by: Rajani Karuturi <rajanikaruturi@gmail.com>
2014-09-05 16:39:34 +05:30
Damodar
51e0488e5c CLOUDSTACK-7316: Usage Server is not getting started when we install it on management server. This is happening when encryption is enabled. For usage server it is not able to get key file in the classpath. 2014-09-02 15:13:45 +05:30
Damodar
9ab78b7eb2 CLOUDSTACK-7106 : RPM build failing with RHEL7 (Failing while passing -p but not -o) Reviewed By : Santosh
Signed-off-by: Santhosh Edukulla <santhosh.edukulla@gmail.com>
2014-08-26 11:50:05 +05:30
Damodar
7ea7deded0 CLOUDSTACK-7106 : RPM build failing with RHEL7 Reviewed By : Rayees
Signed-off-by: Santhosh Edukulla <santhosh.edukulla@gmail.com>
2014-08-26 11:04:48 +05:30
Rohit Yadav
28ad34e31e CLOUDSTACK-7038: Add mysql client dependency for mgmt server, rpms and debs
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 6a26e77514b955e5c9cbb00e51183ec74d3887a3)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-08-20 12:17:34 +02:00
Frank.Zhang
a0f1012903 CloudStackCLOUDSTACK-7366
Baremetal agent is not including in RPM spec file
2014-08-18 11:23:46 -07:00
Rohit Yadav
47625af7c3 CLOUDSTACK-6360: Fix JDK paths in ubuntu packaging init scripts, don't use 1.6
Since we've agreed to use JDK/JRE 1.7, this enforces that for Ubuntu builds
- this fix remove usage of 1.6 paths in JDK_DIR for cloud-{agent, management, usage}.
- adds oracle jdk 1.7 path (in case a user is using that)
- adds mysql-connector-java path to CLASSPATH for usage server
- adds libmysql-java pkg dependency (tested and available for precise and trusty)

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 96d6a2a03734ebbb9f41196d56c409d544a268ea)

Conflicts:
	packaging/debian/init/cloud-usage
Adds pessimistic logic to try the hard coded paths if Rajani's logic fails
2014-08-08 14:26:47 +02:00
Hugo Trippaers
539db08956 CLOUDSTACK-6892 Create separate package for the mysql HA component 2014-07-04 14:37:07 +02:00
Rajani Karuturi
c468228fe8 CLOUDSTACK-6926: removed hard coded jdk dirs and setting java home using readlink and dirname 2014-06-25 17:23:42 +05:30
rayeesn
d0c249bc9e updating cloud-usage.rc file to start cloudstack-usage server with java 1.7 2014-05-27 14:04:38 -07:00
David Bierce
59eed9ef77 CLOUDSTACK-6552 Cloudstack-Management install package creates log
directory that is never used
2014-05-06 11:24:47 +02:00
ynojima
4443890c85 CLOUDSTACK-6571 bugfix: 'service cloudstack-agent stop' fails to stop the process started on boot 2014-05-04 20:47:20 -06:00
ynojima
155745e26c CLOUDSTACK-6351 bugfix: Java1.6 is installed instead of Java7
Since epoch spesicifation doesn't work on RHEL6.3,
"java7" is used in the rpm spec.

Conflicts:
	packaging/centos63/cloud.spec
2014-05-02 00:21:24 -06:00
Rajesh Battala
4bc9f74b2d Removed Epoch tag/number from the cloud.spec to fix the rpm installation of Management Server, Agent and awsapi 2014-04-29 17:14:49 +05:30
ynojima
098ad53c23 Bugfix: java6 is installed instead of java7 by yum dependancy resolution. 2014-04-18 22:53:17 -06:00
Wido den Hollander
7cd2b2ae89 debian: Add JNA flag when starting agent
In some situations local JNA libraries might prevent the agent
from starting.
2014-03-26 13:31:02 +01:00
Marcus Sorensen
a4d3ec476f CLOUDSTACK-6220: Take 2, Fix cloudstack init scripts so that they
don't use fully qualified path as script name. Fix for
    commit 9dd57c22b02afcddb1d6c8ddc3e1b578961454e3
2014-03-10 16:11:52 -06:00
Marcus Sorensen
d033ca486b CLOUDSTACK-6220: Fix cloudstack init scripts so that they
don't use fully qualified path as script name. Fix for
commit 9dd57c22b02afcddb1d6c8ddc3e1b578961454e3
2014-03-10 15:34:55 -06:00
John Kinsella
dda47dbd67 package.sh: cleaning up formatting
No logic changes made. Tested no syntax errors added.
2014-02-17 10:51:34 -08:00
John Kinsella
9dd57c22b0 CLOUDSTACK-6129: removing hard-coded script names
Replacing whatami with $0 which is how UNIX shell scripts should get the
script's name.

BUG-ID: CLOUDSTACK-6129
Bugfix-for:
Reviewed-by:
Reported-by:
Signed-off-by: John Kinsella <jlk@stratosec.co> 1392660036 -0800
2014-02-17 10:00:36 -08:00
John Kinsella
9f72443bb1 CLOUDSTACK-6123: Ensuring no color in grep output 2014-02-15 21:26:40 -08:00
Wido den Hollander
49a29ce0cf Switch to Java 7
We now require at least Java 7 to build and run CloudStack.

Both the DEB and RPM packaging now also require Java 7 during installation
of the packages.
2014-01-27 11:54:43 +01:00
Alex Hitchins
a9c25dcfa3 Added required dependancy to agent setup.
(cherry picked from commit 78f62c63479a81383ff8957a12c88ee4c181cfda)
Signed-off-by: David Nalley <david@gnsa.us>
2014-01-22 12:24:52 -05:00
rayeesn
0d24d323c0 Fix for defect CLOUDSTACK-5053, QEMU should be installed in KVM agent hosts 2014-01-10 14:03:17 -08:00
Wei Zhou
eb4c52ebca Remove cloudmanagementserver.keystore from installation
(cherry picked from commit 38559223780fa0471f9b497102c3c727ae47382f)
2013-11-11 18:11:06 +01:00
Wei Zhou
57ba367f3c CLOUDSTACK-5042: change cloud.keystore to cloudmanagementserver.keystore and install it (cherry picked from commit de448ec4792eda5b47d79b26e9cb8ce96a2b22f4) 2013-11-08 09:00:29 +01:00
Darren Shepherd
e3280bdba2 Merge remote-tracking branch 'origin/spring-modularization'
Conflicts:
	client/tomcatconf/applicationContext.xml.in
	client/tomcatconf/nonossComponentContext.xml.in
	client/tomcatconf/simulatorComponentContext.xml.in
	framework/db/src/com/cloud/utils/db/Transaction.java
	plugins/hypervisors/simulator/src/com/cloud/agent/manager/MockAgentManagerImpl.java
	server/src/com/cloud/api/ApiServer.java
	server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java
2013-10-23 11:14:42 -07:00
Kishan Kavala
294b0c7277 CLOUDSTACK-4921 : Add usage service to chkconfig 2013-10-23 16:05:12 +05:30
Frank.Zhang
aca6c420b4 follow up fix for CLOUDSTACK-1049
add license header to cloudstack-sccs
2013-10-22 15:53:55 -07:00
rayeesn
c5c5e2367e follow up fix for CLOUDSTACK-1049 2013-10-22 15:29:15 -07:00
Saksham Srivastava
770bfe4354 CLOUDSTACK-3583: Fix for Management server stop is not removing the PID 2013-10-22 16:20:51 +05:30
Darren Shepherd
8cf00de51d Configuration to enable Spring Modularization
All of the code changes for the Spring Modularization will work in
a modularized context or a non-modularized context.  This commit
is the final commit to turn modularization on.  Revert this commit
to disable the modularization and go back to monolithic Spring
configuration.
2013-10-02 15:43:11 -07:00
Wido den Hollander
e6fd794ca0 packaging: Do not depend on JNA and don't include it in the classpath
It's now packaged with maven due to libvirt 0.5.1 and will be included
in the classpath automatically.
2013-09-29 12:22:46 +02:00
ynojima
daec10e37a fix rpm/deb build error caused by moving systemvm to its own maven project 2013-09-24 10:51:01 -04:00