Repository: cloudstack Updated Branches: refs/heads/master 190bd3802 -> 29911dd2e
CLOUDSTACK-7376 passwd_server attempts to start but terminates with the exit code 137 Signed-off-by: Sheng Yang <sheng.y...@citrix.com> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/29911dd2 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/29911dd2 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/29911dd2 Branch: refs/heads/master Commit: 29911dd2e1b650ed5b065448138f36744f4f7bc4 Parents: 190bd38 Author: Bharat Kumar <bharat.ku...@citrix.com> Authored: Wed Aug 20 19:33:15 2014 +0530 Committer: Sheng Yang <sheng.y...@citrix.com> Committed: Wed Sep 17 09:28:44 2014 -0700 ---------------------------------------------------------------------- systemvm/patches/debian/config/opt/cloud/bin/passwd_server | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/29911dd2/systemvm/patches/debian/config/opt/cloud/bin/passwd_server ---------------------------------------------------------------------- diff --git a/systemvm/patches/debian/config/opt/cloud/bin/passwd_server b/systemvm/patches/debian/config/opt/cloud/bin/passwd_server index 0f4a772..295e720 100755 --- a/systemvm/patches/debian/config/opt/cloud/bin/passwd_server +++ b/systemvm/patches/debian/config/opt/cloud/bin/passwd_server @@ -16,7 +16,10 @@ # specific language governing permissions and limitations # under the License. -ips=$(ip addr show dev eth0 | grep inet | grep eth0 | awk '{print $2}' ); echo $ips +#we have intentionally split the ip gathering command into two. +#This was done to avoid getting a SIGPIPE during certain load conditions. +ipInfo=$(ip addr show dev eth0 | grep inet | grep eth0 ) +ips=$(echo "$ipInfo" | awk '{print $2}' ); echo $ips for ip in $ips; do addr=$(echo $ip | awk -F'/' '{print $1}') /opt/cloud/bin/passwd_server_ip $addr >> /var/log/cloud.log 2>&1 &