Commit Graph

171 Commits

Author SHA1 Message Date
Boris Schrijver acd49d801b CLOUDSTACK-9039: Fix paths for logging Ubuntu Management. 2015-11-09 15:50:18 +01:00
Carles Figuerola 3ce420c367 CLOUDSTACK-9029: Proper support to identify CentOS 7 version number 2015-11-04 11:21:47 -06:00
Rohit Yadav 1e8d39b12e CLOUDSTACK-8999: Don't override resource if provided by agent.properties
If a custom resource (kvm/libvirt implementation) is defined in agent.properties
don't override with the default, but check and fallback to the default if
resource property not defined

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 536a8b22c8)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-10-28 10:56:36 +05:30
Remi Bergsma 0a320c18d4 CLOUDSTACK-8443: detect CentOS 7.x as RHEL 7 alike 2015-08-24 15:51:14 +02:00
Remi Bergsma b29ffa2cfe CLOUDSTACK-8443: mention the correct logfile 2015-08-24 15:51:14 +02:00
Remi Bergsma 87fdb521f0 CLOUDSTACK-8443: don't try to fix co-mounted cgroups
This setting works on CentOS 6 / RHEL 6 but does nothing, as
"cpu" cgroup is not mounted. On CentOS 7 / RHEL 7 systemd does
mount cgroups and "cpu" is co-mounted with "cpuacc". Hence, if
we specify "cpu" then this results in an error because it can
only use them both, or none.

By removing the setting, we rely on the default of qemu, which
is:
cgroup_controllers = ["cpu", "devices", "memory", "blkio", "cpuacct", "net_cls"]

Only if they are really mounted, they will be used. So, this will
work on both version 6 and 7.

The 'fix script' didn't work well, as after a reboot you'd still have qemu
throwing errors. Now we can handle the co-mountedcgroups.
2015-08-24 15:49:40 +02:00
Rafael da Fonseca 870e1898eb Use same sudoers config for all distros Cleanup buggy code for sudoers file editing
Signed-off-by: Daan Hoogland <daan@onecht.net>

This closes #332
2015-06-19 16:00:57 +02:00
Rafael da Fonseca 1958a8e9c1 Cleanup awsapi leftovers
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #328
2015-05-29 19:15:51 +02:00
Vincent Bernat 2401eb927b 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-09-25 16:56:53 +02:00
Kishan Kavala 983a3b80e2 CLOUDSTACK-7568, CLOUDSTACK-7569: Use systemctl for managing services in RHEL7. chkconfig --del doesn't work in RHEL7. 2014-09-17 17:55:07 +05:30
Kishan Kavala 75d01971e8 CLOUDSTACK-7546: cloudstack-setup-agent considers distro as RHEL5 if no conditions match. Add check to identify RHEL7 distro and consider it as RHEL6. If there is anything specific required for RHEL7, it can be added later 2014-09-16 21:03:01 +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
Erik Weber 451e2ab851 Adding keytool to the list of sudo commands for cloud user to allow certificate creation during startup
Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
2014-08-01 17:19:46 +02:00
Jayapal 79fcbd4a59 CLOUDSTACK-7213: fixed continuing cloud-setup-database if there is no selinux 2014-08-01 15:54:17 +05:30
Kishan Kavala 89854de18d CLOUDSTACK-6931: Set hypervisor.type in agent.properties using cloudstack-setup -t option. Default is kvm. 2014-06-19 11:31:23 +05:30
ynojima ab89eb106f CLOUDSTACK-6816 bugfix: cloudstack-setup-management make /root directory's permission 0777 improperly 2014-05-31 12:54:09 -06: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 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
Marcus Sorensen c2e2f6ce63 relax KVM agent setup to allow non-bridge traffic labels
(guest bridges are created on physical device, no need for bridge traffic label)
2013-11-01 18:16:54 -06:00
John Kinsella 45e4d4fc3b Summary: Updated sudoers approved commands for cloud user
Detail: Previously the cloud user has full password-less sudo access.
This commit changes that to only allow access to a specific list of
commands. Been tested in production on ACS 4.0 and 4.2 mangement servers.

BUG-ID: CLOUDSTACK-967
Bugfix-for:
Reviewed-by:
Reported-by:
Signed-off-by: John Kinsella <jlk@stratosec.co> 1382560936 -0700
2013-10-23 13:42:16 -07:00
Edison Su 6489b3bf61 turn off nfs cache 2013-09-25 16:16:25 -07: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
Hugo Trippaers fde6637f90 Use the blacklist in modprobe as the bridge module might be blacklisted by the openvswitch installation. 2013-06-19 20:59:02 +02:00
Hiroaki KAWAI a16b707250 CLOUDSTACK-2327: make cloud-setup-agent ovs aware
Ovs brcompat will be obsolete, so if network.bridge.type was
set to openvswitch, we'll use ovs command explicitly.

Signed-off-by: Hiroaki KAWAI <kawai@stratosphere.co.jp>
2013-05-27 16:30:32 +09:00
Hiroaki KAWAI 6ade5da25f CLOUDSTACK-1642: Add support CentOS 6.4
Fix the test string to match against "CentOS 6.x"
2013-03-26 13:16:37 +09:00
Pradeep c305e3c5a1 BUG-ID: CLOUDSTACK-1713, CLOUDSTACK-1719
Summary: EC2 REST API: AWS APIs are not getting translated on the CloudStack Management Server and AWS API Installation Problems.
This fixes the above two defects and other packaging related issues.

Signed-off-by: Pradeep <pradeep.soundararajan@citrix.com>
2013-03-22 15:15:36 +00:00
Noa Resare fe9df2186b Have cloud-setup-* tools detect Debian
To minimize this change, treat Debian as Ubuntu for now.

Reviewed-by: Wido (https://reviews.apache.org/r/9310)
2013-02-25 12:32:25 +05:30
Marcus Sorensen 8652e5f87e Summary: Fix hanging references to /var/lib/cloud, changed to /var/cloudstack
BUG-ID: CLOUDSTACK-1201
BUG-ID: CLOUDSTACK-1196
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1360786749 -0700
2013-02-13 13:22:28 -07:00
Pradeep Soundararajan a9955f155a Summary: changed the path from cloud to cloudstack.
The change in package script allowed us to create proper tar under rpmbuild/SOURCES directory

The change in the path enabled us to launch the management server properly.

Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
Committed-by: Hugo Trippaers <htrippaers@schubergphilis.com>
2013-02-07 13:45:30 +01:00
Edison Su 0b60c0d3c9 CLOUDSTACK-995: fix failed to detect centos 6.2 2013-01-17 11:05:03 -08:00
Noa Resare 127867cc99 Improved handling of unknown OS, Distribution
Introduce UnknownSystemExcpetion to indicate that the system is
is unknonwn. Catch said exception in cloud-setup-management,
print an error and exit.

CLOUDSTACK-966: Improve error reporting when running on unknown OS / version

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-01-13 15:08:04 +05:30
frank 23495c7e26 CloudStack CS-15455 There are no iptable rules configured to open awsapi port (7080) for external world.
resolved fixed

reviewed-by:edison
2012-10-12 14:13:13 -07:00
Marcus Sorensen 9cc5c8e46d add CentOS 6.3 to cloud-setup-agent
Signed-off-by: Edison Su <sudison@gmail.com>
2012-09-14 11:21:07 -07:00
Chip Childers da45ae1150 Fixing license headers in the python folder 2012-08-20 11:23:41 -04:00
Edison Su 7b7f69b415 CS-10929: Pass error string when raising CloudInternalException
RB: https://reviews.apache.org/r/6449/
Send-by: andy@basho.com
2012-08-07 18:03:58 -07:00
Chip Childers 955d91e51b License header updates for the python folder. 2012-08-03 09:27:08 -04:00
Tomoe Sugihara 9078550073 Fix the agent path according to 7a0a9231c3 2012-07-31 22:05:04 +05:30
Robert Schweikert 980f7931f7 - support SLES and openSUSE as configuration and build targets 2012-05-27 19:31:27 -04:00
David Nalley 316fa631df fixing python line endings 2012-04-07 19:41:39 -04:00
frank 2f634c0913 Switch to Apache license 2012-04-03 04:50:05 -07:00
frank 5dc82ecb7f Bug 14379 - port 8096 should be closed and disabled by default on CS
status 14739: resolved fixed
2012-03-19 16:35:53 -07:00
Edison Su cf0a4e0274 bug 14034: add newline around configuration file. status 14034: resolved fixed. Reviewed-by: frank 2012-02-27 15:40:27 -08:00
Edison Su f9a62145f0 bug 13647: adding iptables rules failed, sleep and retry
status 13647: resolved fixed
Reviewed-by: Frank
2012-02-15 14:52:23 -08:00
Edison Su 6df005aef7 bug 13698: set max processes per user is ulimited
status 13698: resolved fixed
Reviewed-by: alex
2012-02-14 16:22:14 -08:00
Edison Su 262ad16f4c disable nfs directory cache on kvm host 2012-01-31 14:34:35 -08:00
Edison Su 9c14506043 force vnc server listening on 0.0.0.0 2012-01-25 19:06:03 -08:00
Edison Su ace7d63a25 detect centos 6.2 2012-01-25 16:02:08 -08:00
Edison Su 2e79da0ce5 kvm is working now 2011-12-05 18:07:00 -08:00
frank 008146a6b0 Bug 10217 - cloud-setup-management seems to be not checking for fqdn hostname
status 10217: resolved fixed
2011-12-01 10:38:54 -08:00
frank 71a8ad1a32 introduce cloud-grab-dependent-library-versions grabbing dependent libraries version of mgmt server 2011-11-21 14:32:31 -08:00
Edison Su e38407cb7e fix adding host on ubuntu
Reviewed-by:frank
2011-09-23 14:40:57 -07:00
Edison Su bea981b6dd bug 11503: create foler /var/log/cloud-management/ during cloud-setup-management 2011-09-21 11:56:29 -07:00
Edison Su fd759c60df bug 11458: stop cgconfig before start libvirtd, "service cgconfig status" returns "Running" instead of "running", then cloud-setup-agent doesn't stop it
status 11458: resolved fixed
2011-09-15 14:38:04 -07:00
frank 9c660c192f make /root writable in ubuntu 2011-09-12 18:08:43 -07:00
frank 2f3635c312 add sudo when configuring ubuntu management server 2011-09-12 16:44:32 -07:00
frank f19e9252a4 use ufw to configure iptable in ubuntu for mgmt server ports 2011-09-12 16:44:20 -07:00
frank 57dbe64f9e Bug 9479 - provide option for built in https
Listen on 6443 instead of 8443 because tomcat6 will change 8443 to a random one when CATALINA_HOME is not /usr/share/tomcat6
change iptable rule
2011-09-01 17:45:18 -07:00
frank c7b3c81485 Bug 9479 - provide option for built in https
small fix on cloud-setup-managment
2011-09-01 17:09:06 -07:00
frank 1ce0ad67c8 Bug 9479 - provide option for built in https
status 9479: resolved fixed
2011-09-01 16:01:28 -07:00
Edison Su c59d843cc5 detect centos 6.0 2011-08-30 10:35:31 -07:00
Edison Su 0e3aa3df29 sleep 30 sec if it is the first time to install cloud-agent in case the network is not coming up 2011-08-30 10:35:27 -07:00
Edison Su ea07dff22e bug 11024: fix a typo
status 11024: resovled fixed
2011-08-09 10:53:29 -07:00
Edison Su a2493b5852 add scientific linux 6 and centos 6 2011-08-09 10:53:26 -07:00
Edison Su 66fe12910c delete the default iptable rule 2011-08-03 13:39:52 -07:00
Edison Su 8bcad6960c add rhel6.1 support 2011-07-29 20:05:01 -07:00
Edison Su a89f7c0866 fix cloud-setup-agent, if selinux is disabled, should return successful, instead of raise an exception 2011-07-18 17:50:07 -07:00
Edison Su 5b4628f651 remove the default FORWARD rule on CentOS 5 2011-07-08 13:51:50 -07:00
Edison Su f919e0119e for cloudzone, loose the check for ubuntu 10.04, people may want to install it on a newer kernel 2011-07-08 13:50:14 -07:00
Edison Su 55c39444b1 bug 9985: add more checking during setup cloudzone: host os must be ubuntu 10.04, 64bit, free disk space must be larger than 30G, memory must be larger than 1G
status 9985: resolved fixed
2011-07-08 13:30:27 -07:00
Edison Su 8a887c0b77 start agent after template download is done 2011-07-08 13:18:43 -07:00
Edison Su 897952989a bug 10026: running qemu as root
status 10026: resolved fixed
2011-07-08 13:02:38 -07:00
Edison Su c8d6d51011 fix ubuntu reboot issue, sometimes when you install agent, the init script is not installed into /etc/rc* 2011-07-08 13:02:38 -07:00
Edison Su 29d0b09968 fix agent setup on rhel6 2011-06-06 16:15:42 -04:00
Edison Su 57fe38efcd add check hostname during installation 2011-06-02 22:38:13 -04:00
Edison Su fcf6021764 set the default mgt server to myagent.cloud.com 2011-06-01 18:47:29 -04:00
Edison Su 9956bdeefc disable apparmor profile is better than disable the whole service 2011-05-27 11:27:15 -04:00
Edison Su 9528b4de4f remove cgroup on ubuntu, as sometimes it hang reboot 2011-05-26 19:03:09 -04:00
Edison Su 82ab4fcde4 localstorage uuid is generated by uuidgen, other than from hostip+localstoragepath 2011-05-26 11:52:28 -04:00
Edison Su 29c510de28 need to insert iptable rules into FORWARD chain instead of append, as on rhel6, there is a reject rule added at the end of FORWARD 2011-05-13 16:05:20 -04:00
Edison Su 99825e738b fix mycloud-setup-agent on 10.04 2011-05-09 15:40:37 -04:00
Edison Su 0b6fe0523d fix setup-managment script 2011-05-09 13:21:34 -04:00
Edison Su 0bf96b92e5 move mycloud tool to somewhere 2011-05-06 20:17:23 -04:00
Edison Su cbf2b03e31 refactore cloud related tools 2011-05-06 19:54:52 -04:00
Edison Su 2069d758e7 change to cmd line parameter 2011-05-06 14:53:53 -04:00
Edison Su f60bb811a1 mycloud CLI supports silence mode 2011-05-05 19:40:18 -04:00
Edison Su f5d1154743 Revert "augeas <=0.7.4"
This reverts commit 61fb86de5db1378515cfd479240b3a9bde2ee7c0.
2011-05-04 13:52:25 -04:00
Edison Su 8b884a8400 augeas <=0.7.4 2011-05-04 13:47:50 -04:00
Chiradeep Vittal 303e2a7481 Start of zonesfeature / mycloud/cloudkit 2011-05-03 10:40:17 -07:00
Frank 92155522f2 Add license header to files 2011-04-14 11:23:14 -07:00
Frank 50b6aca738 Bug 8208 - bare metal provisioning
Add color to print text of python script
2011-04-12 17:37:46 -07:00
Frank 916117a319 Bug 8208 - bare metal provisioning
open udp port 69 for tftp when setting up baremetal agent
2011-04-12 17:21:22 -07:00
Frank 1d5d254758 Bug 8208 - bare metal provisioning
put interpreter declration before license text
2011-04-12 16:35:16 -07:00
Frank 8d81d1c457 Bug 8208 - bare metal provisioning
new package baremetal agent
2011-04-12 15:52:33 -07:00
Edison Su 38d21a6de7 do not need "FORWARD -i cloudbr0 -o cloudbr0 -j ACCEPT" any more 2011-03-02 20:08:49 -05:00
Frank c38aff60f4 Bug 8275 - SELinux error message provides incorrect directions
status 8275: resloved fixed
2011-02-07 13:39:35 -08:00
Frank 7b1deef915 Bug 8221 - cloud-setup-databases fails when using RHEL 5.6
status 8221: resloved fixed
2011-02-01 12:12:42 -08:00
Edison Su 72e82c8c8c fix adding customized public/private nics for kvm 2011-01-15 09:52:38 -05:00
Edison Su daff97e916 bug 7936: fix script on centos
status 7936: resolved fixed
2011-01-11 09:57:55 -05:00
Edison Su c12e96dcc3 add missing files 2011-01-06 12:25:50 -05:00