Skip to content

Commit 01b79e7

Browse files
committed
Merge remote-tracking branch 'origin/4.17' into main
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 parents 1be7c2f + 5516f74 commit 01b79e7

File tree

7 files changed

+29
-17
lines changed

7 files changed

+29
-17
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<!-- keep in alphabetic order -->
5050
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5151
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
52-
<project.systemvm.template.version>4.17.0.0</project.systemvm.template.version>
52+
<project.systemvm.template.version>4.17.2.0</project.systemvm.template.version>
5353
<sonar.organization>apache</sonar.organization>
5454
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
5555

systemvm/debian/opt/cloud/bin/setup/common.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,25 @@ setup_vpc_apache2() {
576576
setup_apache2_common
577577
}
578578

579+
setup_vpc_mgmt_route() {
580+
log_it "Set up route for management network: $MGMTNET via local gateway: $LOCAL_GW for device eth$1 for hypervisor: $HYPERVISOR"
581+
if [ -n "$MGMTNET" -a -n "$LOCAL_GW" ]
582+
then
583+
mgmt_route_rule="$MGMTNET via $LOCAL_GW dev eth${1}"
584+
if [ "$HYPERVISOR" == "vmware" ] || [ "$HYPERVISOR" == "hyperv" ];
585+
then
586+
exist=`sudo ip route show $mgmt_route_rule | wc -l`
587+
if [ $exist -eq 0 ]
588+
then
589+
log_it "Add route for management network via local gateway, hypervisor: $HYPERVISOR, rule: $mgmt_route_rule"
590+
sudo ip route add $mgmt_route_rule
591+
# workaround to activate vSwitch under VMware
592+
timeout 3 ping -n -c 3 $LOCAL_GW || true
593+
fi
594+
fi
595+
fi
596+
}
597+
579598
clean_ipalias_config() {
580599
rm -f /etc/apache2/conf.d/ports.*.meta-data.conf
581600
rm -f /etc/apache2/sites-available/ipAlias*

systemvm/debian/opt/cloud/bin/setup/init.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ setup_interface_sshd() {
190190
elif [ "$TYPE" == "vpcrouter" ]; then
191191
init_interfaces "eth0"
192192
setup_interface "0" $ETH0_IP $ETH0_MASK $GW
193+
setup_vpc_mgmt_route "0"
193194
setup_sshd $ETH0_IP "eth0"
194195

195196
elif [ "$TYPE" == "ilbvm" ]; then

systemvm/debian/opt/cloud/bin/setup/vpcrouter.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,7 @@ setup_vpcrouter() {
6666
echo "nameserver $IP6_NS2" >> /etc/resolv.conf
6767
fi
6868

69-
if [ -n "$MGMTNET" -a -n "$LOCAL_GW" ]
70-
then
71-
if [ "$HYPERVISOR" == "vmware" ] || [ "$HYPERVISOR" == "hyperv" ];
72-
then
73-
ip route add $MGMTNET via $LOCAL_GW dev eth0
74-
# workaround to activate vSwitch under VMware
75-
timeout 3 ping -n -c 3 $LOCAL_GW || true
76-
fi
77-
fi
69+
setup_vpc_mgmt_route "0"
7870

7971
ip route delete default
8072
# create route table for static route

tools/appliance/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ CentOS based built-in user VM template.
2626
# Setting up Tools and Environment
2727

2828
- Install packer and latest KVM, qemu on a Linux machine
29-
- Install tools for exporting appliances: qemu-img, ovftool, faketime
29+
- Install tools for exporting appliances: qemu-img, ovftool, faketime, sharutils
3030
- Build and install `vhd-util` as described in build.sh or use pre-built
3131
binaries at:
3232

tools/appliance/systemvmtemplate/scripts/configure_systemvm_services.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
set -e
2020
set -x
2121

22-
CLOUDSTACK_RELEASE=4.17.0
22+
CLOUDSTACK_RELEASE=4.17.2
2323

2424
function configure_apache2() {
2525
# Enable ssl, rewrite and auth
@@ -50,10 +50,10 @@ function configure_cacerts() {
5050
CDIR=$(pwd)
5151
cd /tmp
5252
# Add LetsEncrypt ca-cert
53-
wget https://letsencrypt.org/certs/lets-encrypt-r3.der
5453
wget https://letsencrypt.org/certs/isrgrootx1.der
55-
keytool -trustcacerts -keystore /etc/ssl/certs/java/cacerts -storepass changeit -noprompt -importcert -alias letsencryptauthorityr3 -file lets-encrypt-r3.der
54+
wget https://letsencrypt.org/certs/lets-encrypt-r3.der
5655
keytool -trustcacerts -keystore /etc/ssl/certs/java/cacerts -storepass changeit -noprompt -importcert -alias letsencryptauthorityx1 -file isrgrootx1.der
56+
keytool -trustcacerts -keystore /etc/ssl/certs/java/cacerts -storepass changeit -noprompt -importcert -alias letsencryptauthorityr3 -file lets-encrypt-r3.der
5757
rm -f lets-encrypt-r3.der isrgrootx1.der
5858
cd $CDIR
5959
}

tools/appliance/systemvmtemplate/template.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
],
2424
"boot_wait": "5s",
2525
"disk_interface": "virtio",
26-
"disk_size": "4000M",
26+
"disk_size": "5000M",
2727
"format": "qcow2",
2828
"headless": true,
2929
"http_directory": "http",
30-
"iso_checksum": "sha512:2810f894afab9ac2631ddd097599761c1481b85e629d6a3197fe1488713af048d37241eb85def681ba86e62b406dd9b891ee1ae7915416335b6bb000d57c1e53",
31-
"iso_url": "https://cdimage.debian.org/debian-cd/11.3.0/amd64/iso-cd/debian-11.3.0-amd64-netinst.iso",
30+
"iso_checksum": "sha512:6a6607a05d57b7c62558e9c462fe5c6c04b9cfad2ce160c3e9140aa4617ab73aff7f5f745dfe51bbbe7b33c9b0e219a022ad682d6c327de0e53e40f079abf66a",
31+
"iso_url": "https://cdimage.debian.org/debian-cd/11.5.0/amd64/iso-cd/debian-11.5.0-amd64-netinst.iso",
3232
"net_device": "virtio-net",
3333
"output_directory": "../dist",
3434
"qemuargs": [

0 commit comments

Comments
 (0)