You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2015/03/30 10:29:16 UTC
[1/3] git commit: updated refs/heads/master to 6f907fb
Repository: cloudstack
Updated Branches:
refs/heads/master 6ac06e5e5 -> 6f907fb2c
systemvm: fix socat usage
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
(cherry picked from commit 888f67f0bdc3e76c452c2dc3f7715f2df12bda7d)
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/0540ba1b
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/0540ba1b
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/0540ba1b
Branch: refs/heads/master
Commit: 0540ba1b30fa2c1ac516b8a697e1f68c40118dbb
Parents: 6ac06e5
Author: Rohit Yadav <ro...@shapeblue.com>
Authored: Mon Mar 30 12:44:52 2015 +0530
Committer: Rohit Yadav <ro...@shapeblue.com>
Committed: Mon Mar 30 13:50:39 2015 +0530
----------------------------------------------------------------------
.../patches/debian/config/etc/init.d/cloud-passwd-srvr | 10 +++++-----
.../patches/debian/config/opt/cloud/bin/vpc_guestnw.sh | 2 +-
.../patches/debian/config/opt/cloud/bin/vpc_passwd_server | 2 +-
.../component/maint/test_multiple_ip_ranges.py | 4 ++--
4 files changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/0540ba1b/systemvm/patches/debian/config/etc/init.d/cloud-passwd-srvr
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/etc/init.d/cloud-passwd-srvr b/systemvm/patches/debian/config/etc/init.d/cloud-passwd-srvr
index d276bfd..33b0ea3 100755
--- a/systemvm/patches/debian/config/etc/init.d/cloud-passwd-srvr
+++ b/systemvm/patches/debian/config/etc/init.d/cloud-passwd-srvr
@@ -86,16 +86,16 @@ getpid() {
echo $pid
}
-stop_socat() {
- spid=$(pidof socat)
- [ "$spid" != "" ] && kill -9 $spid && echo "Killed socat (pid=$spid)"
+stop_password_server() {
+ spid=$(pidof -s python passwd_server_ip.py)
+ [ "$spid" != "" ] && kill -9 $spid && echo "Killed password server (pid=$spid)"
return 0
}
stop () {
- stop_socat
+ stop_password_server
pid=$(getpid)
- [ "$pid" != "" ] && kill -9 $pid && remove_iptables_rules && echo "Stopped password server (pid=$pid)" && stop_socat && return 0
+ [ "$pid" != "" ] && kill -9 $pid && remove_iptables_rules && echo "Stopped password server (pid=$pid)" && stop_password_server && return 0
echo "Password server is not running" && return 0
}
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/0540ba1b/systemvm/patches/debian/config/opt/cloud/bin/vpc_guestnw.sh
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/opt/cloud/bin/vpc_guestnw.sh b/systemvm/patches/debian/config/opt/cloud/bin/vpc_guestnw.sh
index 0115ab2..a788134 100755
--- a/systemvm/patches/debian/config/opt/cloud/bin/vpc_guestnw.sh
+++ b/systemvm/patches/debian/config/opt/cloud/bin/vpc_guestnw.sh
@@ -121,7 +121,7 @@ setup_passwdsvcs() {
desetup_passwdsvcs() {
logger -t cloud "Desetting up password service for network $ip/$mask, eth $dev "
sudo iptables -D INPUT -i $dev -d $ip -p tcp -m state --state NEW --dport 8080 -j ACCEPT
- pid=`ps -ef | grep socat | grep $ip | grep -v grep | awk '{print $2}'`
+ pid=`ps -ef | grep passwd_server_ip.py | grep $ip | grep -v grep | awk '{print $2}'`
if [ -n "$pid" ]
then
kill -9 $pid
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/0540ba1b/systemvm/patches/debian/config/opt/cloud/bin/vpc_passwd_server
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/opt/cloud/bin/vpc_passwd_server b/systemvm/patches/debian/config/opt/cloud/bin/vpc_passwd_server
index 16a4466..3e201cb 100755
--- a/systemvm/patches/debian/config/opt/cloud/bin/vpc_passwd_server
+++ b/systemvm/patches/debian/config/opt/cloud/bin/vpc_passwd_server
@@ -25,7 +25,7 @@ do
rc=$?
if [ $rc -ne 0 ]
then
- logger -t cloud "Password server failed with error code $rc. Restarting socat..."
+ logger -t cloud "Password server failed with error code $rc. Restarting password server..."
sleep 3
fi
result=`ip addr show | grep $ip`
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/0540ba1b/test/integration/component/maint/test_multiple_ip_ranges.py
----------------------------------------------------------------------
diff --git a/test/integration/component/maint/test_multiple_ip_ranges.py b/test/integration/component/maint/test_multiple_ip_ranges.py
index f73c470..cd845d2 100644
--- a/test/integration/component/maint/test_multiple_ip_ranges.py
+++ b/test/integration/component/maint/test_multiple_ip_ranges.py
@@ -362,7 +362,7 @@ class TestMultipleIpRanges(cloudstackTestCase):
def test_03_passwd_service_on_alias_IP(self):
"""Deploy guest vm in new CIDR and verify passwd service on alias ip
1.Deploy guest vm in new cidr
- 2.Verify password service(socat) listens on alias ip in VR
+ 2.Verify password service(passwd_server_ip.py) listens on alias ip in VR
"""
list_router_response = list_routers(
self.apiclient,
@@ -403,7 +403,7 @@ class TestMultipleIpRanges(cloudstackTestCase):
# attempt
SshClient(host.ipaddress, port, username, password)
- proc = "socat"
+ proc = "python passwd_server_ip.py"
result = get_process_status(
host.ipaddress,
port,
[2/3] git commit: updated refs/heads/master to 6f907fb
Posted by bh...@apache.org.
systemvmtemplate: use separate partition for /var/log
/var/log fills up /var and fails operation of normal services. This fix
restricts /var/log to 100-200M. The fix for CLOUDSTACK-6885 tries to make sure
we don't keep a lot of logs.
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/d0e65d7c
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/d0e65d7c
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/d0e65d7c
Branch: refs/heads/master
Commit: d0e65d7c3429d3a582632005d526c668f071c3fe
Parents: 0540ba1
Author: Rohit Yadav <ro...@shapeblue.com>
Authored: Mon Mar 30 13:54:20 2015 +0530
Committer: Rohit Yadav <ro...@shapeblue.com>
Committed: Mon Mar 30 13:54:20 2015 +0530
----------------------------------------------------------------------
.../definitions/systemvmtemplate/preseed.cfg | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/d0e65d7c/tools/appliance/definitions/systemvmtemplate/preseed.cfg
----------------------------------------------------------------------
diff --git a/tools/appliance/definitions/systemvmtemplate/preseed.cfg b/tools/appliance/definitions/systemvmtemplate/preseed.cfg
index f1f4f64..9f7c4d0 100644
--- a/tools/appliance/definitions/systemvmtemplate/preseed.cfg
+++ b/tools/appliance/definitions/systemvmtemplate/preseed.cfg
@@ -50,7 +50,7 @@ d-i partman-auto/expert_recipe string \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /boot } \
. \
- 400 40 500 ext4 \
+ 500 40 800 ext4 \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
@@ -60,27 +60,32 @@ d-i partman-auto/expert_recipe string \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /home } \
. \
- 700 70 1100 ext4 \
+ 800 60 1400 ext4 \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /usr } \
. \
- 400 40 500 ext4 \
+ 100 40 200 ext4 \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /opt } \
. \
- 450 70 1000 ext4 \
+ 600 70 1200 ext4 \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /var } \
. \
- 50 60 100 ext4 \
+ 200 50 500 ext4 \
+ method{ format } format{ } \
+ use_filesystem{ } filesystem{ ext4 } \
+ mountpoint{ /var/log } \
+ . \
+ 100 90 200 ext4 \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /tmp } \
. \
- 70 100 256 linux-swap \
+ 256 100 1024 linux-swap \
method{ swap } format{ } \
.
d-i partman/confirm_write_new_label boolean true
[3/3] git commit: updated refs/heads/master to 6f907fb
Posted by bh...@apache.org.
systemvmtemplate: increase disk size to 3000
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/6f907fb2
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/6f907fb2
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/6f907fb2
Branch: refs/heads/master
Commit: 6f907fb2cd7d82ceb176b375c7f32db6382de325
Parents: d0e65d7
Author: Rohit Yadav <ro...@shapeblue.com>
Authored: Mon Mar 30 13:58:33 2015 +0530
Committer: Rohit Yadav <ro...@shapeblue.com>
Committed: Mon Mar 30 13:58:33 2015 +0530
----------------------------------------------------------------------
tools/appliance/definitions/systemvmtemplate/definition.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6f907fb2/tools/appliance/definitions/systemvmtemplate/definition.rb
----------------------------------------------------------------------
diff --git a/tools/appliance/definitions/systemvmtemplate/definition.rb b/tools/appliance/definitions/systemvmtemplate/definition.rb
index f5d4850..5e31c6c 100644
--- a/tools/appliance/definitions/systemvmtemplate/definition.rb
+++ b/tools/appliance/definitions/systemvmtemplate/definition.rb
@@ -42,7 +42,7 @@ architectures = {
config = {
:cpu_count => '1',
:memory_size => '256',
- :disk_size => '2500', :disk_format => 'VDI', :hostiocache => 'off',
+ :disk_size => '3000', :disk_format => 'VDI', :hostiocache => 'off',
:iso_download_timeout => '1200',
:boot_wait => '10',
:boot_cmd_sequence => [