cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abhinandan Prateek (JIRA)" <>
Subject [jira] [Commented] (CLOUDSTACK-8488) network with LB rules fails to restart
Date Fri, 22 May 2015 06:23:17 GMT


Abhinandan Prateek commented on CLOUDSTACK-8488:

the fault was in bash read line in vr_cfg that is evaluating the value of the string messing
up with the escape characters in the text.

> network with LB rules fails to restart
> --------------------------------------
>                 Key: CLOUDSTACK-8488
>                 URL:
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Virtual Router
>    Affects Versions: 4.6.0
>            Reporter: Abhinandan Prateek
>            Assignee: Abhinandan Prateek
>            Priority: Critical
>             Fix For: 4.6.0
> Restarting network fails as the LB rules formatting is not good:
> Snippet from the VR config son that is degenerated for LB:
> </script>
> <file>
> /var/cache/cloud/load_balancer.json
> {"rules":[{"configuration":["global","\tlog   local0 warning","\tmaxconn
4096","\tmaxpipes 1024","\tchroot /var/lib/haproxy","\tuser haproxy","\tgroup haproxy","\tdaemon","\t
","defaults","\tlog     global","\tmode    tcp","\toption  dontlognull","\tretries 3","\toption
redispatch","\toption forwardfor","\toption forceclose","\ttimeout connect    5000","\ttimeout
client     50000","\ttimeout server     50000","\nlisten stats_on_public\n\tmode
http\n\toption httpclose\n\tstats enable\n\tstats uri     /admin?stats\n\tstats realm   Haproxy\\
Statistics\n\tstats auth    admin1:AdMiN123\n","\t ","listen 192_168_100_67-80","\tbalance
roundrobin","\tserver 192_168_100_67-80_0 check","\tserver 192_168_100_67-80_1 check","\tmode http","\toption httpclose","\t ","\t "],"tmp_cfg_file_path":"/etc/haproxy/","tmp_cfg_file_name":"","add_rules":[""],"remove_rules":[],"stat_rules":[","],"router_ip":""}],"type":"loadbalancer"}
> </file>
> Due to formatting issues, there is an error when tis config is applied on VR:
> 2015-05-20 12:10:05,222 ERROR [c.c.u.s.SshHelper] (DirectAgent-86:ctx-94e1e0a8) SSH execution
of command /opt/cloud/bin/ -c /var/cache/cloud/VR-41f28904-b10b-4074-aa42-f4d4105ec49b.cfg
has an error status code in return. result output: VR config: execution failed: "/opt/cloud/bin/
load_balancer.json", check /var/log/cloud.log in VR for details 
> On VR the rules are copied to /var/cache/cloud/load_balancer.json with content:
> {"rules":[{"configuration":["global","tlog local0 warning","tmaxconn 4096","tmaxpipes
1024","tchroot /var/lib/haproxy","tuser haproxy","tgroup haproxy","tdaemon","t ","defaults","tlog
global","tmode tcp","toption dontlognull","tretries 3","toption redispatch","toption forwardfor","toption
forceclose","ttimeout connect 5000","ttimeout client 50000","ttimeout server 50000","nlisten
stats_on_public httpntoption httpclosentstats enablentstats uri
/admin?statsntstats realm Haproxy\ Statisticsntstats auth admin1:AdMiN123n","t ","listen 192_168_100_67-80","tbalance roundrobin","tserver 192_168_100_67-80_0 check","tserver
192_168_100_67-80_1 check","tmode http","toption httpclose","t ","t "],"tmp_cfg_file_path":"/etc/haproxy/","tmp_cfg_file_name":"","add_rules":[""],"remove_rules":[],"stat_rules":[","],"router_ip":""}],"type":"loadbalancer"}
> The following text is badly formatted:
> "nlisten stats_on_public httpntoption httpclosentstats enablentstats
uri /admin?statsntstats realm Haproxy\ Statisticsntstats auth admin1:AdMiN123n","t ",
> Looks like the \n and \t have messed up the format.

This message was sent by Atlassian JIRA

View raw message