Commit Graph

160 Commits

Author SHA1 Message Date
Rafael da Fonseca
57d2959bbe Fix agent/management conflict
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #329
2015-05-29 20:58:23 +02:00
Rohit Yadav
3b5e5a3431 CLOUDSTACK-8339: Allow non-root users to add KVM host
This allows non-root users to add KVM hosts, the user should be an admin or
added to sudoers to execute sudo cloudstack-setup-agent.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Signed-off-by: Remi Bergsma <apache@remi.nl>

This closes #288
2015-05-26 17:42:26 +02:00
Star Guo
611f2475c7 Fix centos63 rpm packaging
This closes #129

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-25 14:47:34 +05:30
Rohit Yadav
af3b1f5298 centos63: fix another build regression from last merge on 4.4
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-25 12:47:24 +05:30
Rohit Yadav
dfba731381 centos63: Fix build regression in for loop
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-25 12:25:15 +05:30
Rohit Yadav
b4728b239c centos: fix rpm build regression from c5c5e2367e
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-25 12:04:18 +05:30
Daan Hoogland
e7abb416d9 downgrade jasypt version 2015-03-23 21:55:51 +01:00
Daan Hoogland
54906b97d5 backported generic package script 2015-03-23 18:54:51 +01:00
Daan Hoogland
b527aabfc3 4.4 for centos7 2015-03-23 14:22:08 +01:00
Harikrishna Patnala
f68b407283 CS-17504: Weak SSL ciphers supported by the management server
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit f947fad197)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	packaging/centos63/cloud.spec
2015-03-16 15:50:26 +05:30
Rohit Yadav
7a8ac87907 CLOUDSTACK-6892: use lowercase noredist, as package.sh lowercases build type
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit a18d067278)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	packaging/centos63/cloud.spec
2014-12-11 20:03:28 +05:30
Rohit Yadav
207d4653fa 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 bb81082e58)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 3fe1f732d7)
2014-11-25 21:31:10 +01:00
Keiichi Yusa
bb36ef248f CLOUDSTACK-7951
Limit amount of memory used by cloudstack-agent jsvc.

Signed-off-by: Edison Su <sudison@gmail.com>
(cherry picked from commit 1d6ca5eacb)
2014-11-25 21:30:20 +01:00
Vincent Bernat
1ede3eeacb 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>
2014-10-09 11:50:49 +02:00
Rajani Karuturi
ecfe5b5417 CLOUDSTACK-6926: removed hard coded jdk dirs and setting java home using readlink and dirname
(cherry picked from commit c468228fe8)

Conflicts:
	packaging/debian/init/cloud-usage
2014-09-08 10:43:59 +02:00
Leo Simons
c6136255b9 bugfix/CLOUDSTACK-7476 for 4.4 branch.
See https://github.com/apache/cloudstack/pull/15 for the pull request
that was merged to master & associated discussion.
2014-09-05 19:54:36 +02:00
Hugo Trippaers
b4601be4bf CLOUDSTACK-6892 Create separate package for the mysql HA component
(cherry picked from commit 539db08956)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	packaging/centos63/cloud.spec
2014-08-20 12:11:37 +02:00
Rohit Yadav
6a26e77514 CLOUDSTACK-7038: Add mysql client dependency for mgmt server, rpms and debs
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-08-20 12:07:24 +02:00
Rohit Yadav
e77da80e01 CLOUDSTACK-6360: pick setJavaHome from 4.3 and master for 4.4 branch
A JAVA_HOME finder method was implemented by Rajani and got into master and 4.3
but not 4.4: https://reviews.apache.org/r/22721/

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-08-08 14:45:47 +02:00
Rohit Yadav
96d6a2a037 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>
2014-08-08 14:12:22 +02:00
David Bierce
efccef485c CLOUDSTACK-6552 Cloudstack-Management install package creates log
directory that is never used
2014-05-06 11:22:00 +02:00
ynojima
37bd82aa1e CLOUDSTACK-6571 bugfix: 'service cloudstack-agent stop' fails to stop the process started on boot 2014-05-05 10:28:41 +02:00
ynojima
16342f8a82 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 19:00:37 +02:00
Rajesh Battala
51d620f00e Removed Epoch tag/number from the cloud.spec to fix the rpm installation of Management Server, Agent and awsapi 2014-05-02 19:00:28 +02:00
ynojima
c7d8aae3bd Bugfix: java6 is installed instead of java7 by yum dependancy resolution. 2014-04-18 23:05:06 -06:00
Wido den Hollander
545ba71d7f debian: Add JNA flag when starting agent
In some situations local JNA libraries might prevent the agent
from starting.
2014-04-11 09:02:59 +02:00
rayeesn
c2b74c4534 updating cloud-usage.rc file to start cloudstack-usage server with java 1.7 2014-04-08 16:07:43 -07:00
rayeesn
1ec77ec4b8 CLOUDSTACK-6360: adding mysql-connector to class path and it will be loaded while starting cloudstack-usage 2014-04-08 16:07:20 -07:00
Frank.Zhang
1b8df426e2 CLOUDSTACK-6155
Baremetal agent RPM missing in spec file
(cherry picked from commit 20efa0c8a6)

Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
2014-04-08 15:31:24 -07: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 9dd57c22b0
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 9dd57c22b0
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 78f62c6347)
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 3855922378)
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 de448ec479) 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
Wei Zhou
164e3e33b4 CLOUDSTACK-4405: change rpm and debian packaging to support automatic update (KVM upgrade)
Including following steps:
b. Run "cloudstack-agent-upgrade". This script will upgrade all the existing bridge name to new bridge name, and update related firewall rules.
c. install a libvirt hook:
    c1. mkdir /etc/libvirt/hooks
    c2. cp /usr/share/cloudstack-agent/lib/libvirtqemuhook /etc/libvirt/hooks/qemu
    c3. chmod +x /etc/libvirt/hooks/qemu
    c4. service libvirtd restart
(cherry picked from commit a0988780ad)

Signed-off-by: Wei Zhou <w.zhou@leaseweb.com>
2013-09-24 09:55:35 +02:00
Edison Su
e325fb66ab CLOUDSTACK-4405: fix vm migration during the upgrade to 4.2
Signed-off-by: Wei Zhou <w.zhou@leaseweb.com>
2013-09-24 09:53:55 +02:00
Edison Su
7b4f846220 CLOUDSTACK-4405: add a tool: cloudstack-agent-upgrade to upgrade bridge name on kvm host
(cherry picked from commit 0ef6084d2c)

Signed-off-by: Wei Zhou <w.zhou@leaseweb.com>
2013-09-24 09:53:05 +02:00