Skip to content

Commit a990f7a

Browse files
James Martinyadvr
authored andcommitted
Successfully building devcloud now. Added option in params.pp for compiling cloudstack or not. moved ebtables stuff to devcloudinitial update build scripts in builddevcloud.sh.erb
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent 7340433 commit a990f7a

6 files changed

Lines changed: 30 additions & 28 deletions

File tree

‎tools/devcloud/Vagrantfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# under the License.
2020

2121
Vagrant::Config.run do |config|
22-
config.vm.network :hostonly, "192.168.56.10"
22+
config.vm.network :hostonly, "192.168.56.10", :auto_config => false
2323
#config.vm.box = "devcloud"
2424
config.vm.box = "devcloudbase-xen"
2525
#config.vm.box_url = "http://basho-cloudstack.s3.amazonaws.com/devcloud.box"

‎tools/devcloud/boxit.sh‎

100644100755
File mode changed.

‎tools/devcloud/deps/boxes/xenbox-build/puppet/modules/devcloudinitial/manifests/init.pp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
ensure => latest;
3535
"iptables":
3636
ensure => latest;
37+
"ebtables":
38+
ensure => latest;
3739
}
3840

3941
file {

‎tools/devcloud/puppet/modules/devcloud/manifests/init.pp‎

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
$md5sum_local = $devcloud::params::md5sum_local,
3434
$md5sum_remote = $devcloud::params::md5sum_remote,
3535
$hostuuid = $::xen_hostuuid,
36-
$bridge_device_mac = $::macaddress_xenbr0
37-
36+
$bridge_device_mac = $::macaddress_xenbr0,
37+
$build_cloudstack = $devcloud::params::build_cloudstack
3838
) inherits devcloud::params {
3939

4040

@@ -43,7 +43,6 @@
4343

4444
service {
4545
'ebtables':
46-
require => Package['ebtables'],
4746
ensure => 'running',
4847
enable => true;
4948
'nfs-kernel-server':
@@ -55,8 +54,6 @@
5554

5655
package { [
5756
"ant",
58-
"ebtables",
59-
"iptables",
6057
"git",
6158
"mkisofs",
6259
"mysql-server",
@@ -102,7 +99,6 @@
10299
unless => '/usr/bin/xe sr-list | /bin/egrep \'local-storage|Cloud Stack Local EXT Storage Pool\'',
103100
require => [
104101
File["${storage_dir}/primary"],
105-
File["/etc/iptables.save"]
106102
];
107103

108104
"configvnc":
@@ -131,19 +127,6 @@
131127
require => Exec['unziptomcat'],
132128
timeout => '0';
133129

134-
"build_cloudstack":
135-
require => [
136-
Package["ant"],
137-
Exec["install_maven"],
138-
File["${cs_dir}/incubator-cloudstack/dist"],
139-
File["${cs_dir}/incubator-cloudstack/target"],
140-
Package['mkisofs'],
141-
File["${cs_dir}/buildcloudstack.sh"]
142-
],
143-
command => "/opt/cloudstack/buildcloudstack.sh",
144-
cwd => "/opt/cloudstack/",
145-
timeout => '0';
146-
147130

148131
"install_maven":
149132
require => Exec["downloadmaven"],
@@ -165,14 +148,30 @@
165148
require => [
166149
Service['ebtables']
167150
],
168-
command => "/sbin/ebtables -I FORWARD -d ! $bridge_device_mac -i eth0 -p IPV4 --ip-prot udp --ip-dport 67:68 -j DROP",
169-
subscribe => Package["ebtables"],
170-
unless => "/sbin/ebtables -L | grep \"-I FORWARD -d ! $bridge_device_mac -i eth0 -p IPV4 --ip-prot udp --ip-dport 67:68 -j DROP\"",
151+
command => "/sbin/ebtables -I FORWARD -d ! $bridge_device_mac -i eth1 -p IPV4 --ip-prot udp --ip-dport 67:68 -j DROP",
152+
unless => "/sbin/ebtables -L | grep \"-I FORWARD -d ! $bridge_device_mac -i eth1 -p IPV4 --ip-prot udp --ip-dport 67:68 -j DROP\"",
171153
refreshonly => true,
172154
cwd => "/",
173155
path => "/sbin/:/usr/bin/:/bin"
174156
}
175157

158+
if $build_cloudstack {
159+
160+
exec {
161+
"build_cloudstack":
162+
require => [
163+
Package["ant"],
164+
Exec["install_maven"],
165+
File["${cs_dir}/incubator-cloudstack/dist"],
166+
File["${cs_dir}/incubator-cloudstack/target"],
167+
Package['mkisofs'],
168+
File["${cs_dir}/buildcloudstack.sh"]],
169+
command => "${cs_dir}/buildcloudstack.sh",
170+
cwd => "${cs_dir}",
171+
timeout => '0';
172+
}
173+
}
174+
176175

177176
file {
178177

‎tools/devcloud/puppet/modules/devcloud/manifests/params.pp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
$md5sum_local = "${storage_dir}/secondary/template/tmpl/1/md5sum.txt"
2828
$template_dir = "${storage_dir}/secondary/template/tmpl/1"
2929
$gitrepo = "https://github.com/apache/incubator-cloudstack.git"
30-
30+
$build_cloudstack = true
3131

3232

3333
$downloads = [

‎tools/devcloud/puppet/modules/devcloud/templates/builddevcloud.sh.erb‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@
2020
export CATALINA_HOME=<%= @tomcat_home %>
2121
export M2_HOME=<%= @maven_home %>
2222
export M2=$M2_HOME/bin
23-
MAVEN_OPTS="-Xms256m -Xmx512m"
23+
MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=800m -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
2424
PATH=$M2:$PATH
2525
cd <%= @cs_dir %>/incubator-cloudstack/
26-
<%= @maven_home %>/bin/mvn -P developer clean install
27-
<%= @maven_home %>/bin/mvn -P developer -pl developer,tools/devcloud -Ddeploydb
28-
<%= @maven_home %>/bin/mvn -P developer -pl tools/devcloud -Ddeploysvr
26+
<%= @maven_home %>/bin/mvn clean install -P developer,systemvm
27+
<%= @maven_home %>/bin/mvn -pl developer,tools/devcloud -Ddeploydb -P developer
28+
<%= @maven_home %>/bin/mvn -P developer -pl tools/devcloud -Ddeploysvr
29+
<%= @maven_home %>/bin/mvn -pl client jetty:run

0 commit comments

Comments
 (0)