Hi ,
when i start a synchro to peer i get this error:
Operation Status
Configsync Mode: Push
Transferring UCS to peer...
Installing UCS on peer...
OperationFailed exception:
Primary error : 16908289
Secondary error: 0
Error text : Error installing configuration
Obtaining results of remote configuration installation...
Saving active configuration...
Current configuration backed up to /var/local/ucs/cs_backup.ucs.
Product : BIG-IP
Version : 10.1.0
Hostname: UCS : am1.mydomain.org
System: am2.mydomain.org
Installing --shared-- configuration on host am2.mydomain.org
Installing configuration...
Post-processing...
BIGpipe parsing error (/config/bigip.conf Line 333):
012e0054:3: The braced list of attributes is not closed for 'rule'.
Reading configuration from /config/low_profile_base.conf.
Reading configuration from /defaults/config_base.conf.
Reading configuration from /config/bigip_sys.conf.
Reading configuration from /config/bigip_base.conf.
Reading configuration from /usr/share/monitors/base_monitors.conf.
Reading configuration from /config/profile_base.conf.
Reading configuration from /config/daemon.conf.
Reading configuration from /config/bigip.conf.
WARNING: There were one or more errors detected during installation.
Check the error messages and take the proper actions if needed.
ERROR: UCS installation failed.
Operation aborted.
/tmp/configsync.spec: Error installing package
Config install aborted.
BIGpipe parsing error:
01110001:3: Error running config install
Checking configuration on local system and peer system...
Peer's IP address: 10.10.10.3
Synchronizing Master Keys...
Saving active configuration...
Could you help me?
Hi Mic,
What’s on line 333 of the bigip.conf? It looks like there is a syntax error in an iRule which starts on that line which is breaking the config sync. Can you post that full iRule text?
Aaron
Hi Aaron
The line 333 in bigip.conf starts with that:
rule iRule_ar {
when HTTP_REQUEST {
set ParsedURI [HTTP::uri]
set ParamJsessionID [findstr $ParsedURI ";" 32]
set ParamPageID [URI::query $ParsedURI "pageId"]
set ParamReset [URI::query $ParsedURI "reset"]
set ParamHLQuery [URI::query $ParsedURI "hlquery"]
set ParamAction [URI::query $ParsedURI "action"]
set ParamDARGS [URI::query $ParsedURI "_DARGS"]
set ParmaAction [URI::query $ParsedURI "action"]
set NewURI ""
set ToCache 0
set Cas 0
set MyURI ""
set MyPath [URI::query $ParsedURI "path"]
set MyRedir ""
Hello Mic,
if syncing is your biggest concern in this case I’d comment out () that iRule from the config file, then run ‘b verify load’. If there’s no error’s then do ‘b load’ followed by another sync.
Of course, if this iRule is business critical it will remove it from the config (by commenting it out) so this may not be ideal for you. I assume the iRule is vaild? (try running it through the iRule editor).
Yes this rule is used.
But when i check syntax of this rule through “F5 irule editor” i get a “success” message..
I think you need to post the entire iRule instead of just the top. I agree with hoolio that there is a brace missing somewhere, but we won’t be able to tell unless we see the entire thing.
this is the full irule from the GUI:
when HTTP_REQUEST {
set ParsedURI [HTTP::uri]
set ParamJsessionID [findstr $ParsedURI ";" 32]
set ParamPageID [URI::query $ParsedURI "pageId"]
set ParamReset [URI::query $ParsedURI "reset"]
set ParamHLQuery [URI::query $ParsedURI "hlquery"]
set ParamAction [URI::query $ParsedURI "action"]
set ParamDARGS [URI::query $ParsedURI "_DARGS"]
set ParmaAction [URI::query $ParsedURI "action"]
set NewURI ""
set ToCache 0
set Cas 0
set MyURI ""
set MyPath [URI::query $ParsedURI "path"]
set MyRedir ""
if { [HTTP::method] equals "GET" } {
set ToCache 1
if { not ([findstr $ParsedURI "jsessionid"] eq "") } {
set LeftNewURI [substr $ParsedURI 0 ";" ]
set RightNewURI [findstr $ParsedURI "?"]
set NoJsessionID [concat $LeftNewURI$RightNewURI]
set NewURI $NoJsessionID
if {$LeftNewURI eq "/portal/pi/html/search.jsp"} {
set ToCache 0
set Cas 1
}
if { [matchclass $::PageIDNoCache contains $ParamPageID]} {
if {($ParamPageID eq "contacts") and ($ParmaAction eq "local")}{
set NewURI $ParsedURI
}
set ToCache 0
set Cas 2
}
if { not([findstr $ParsedURI "redirect.jsp"] eq "") } {
set MyRedir [string map -nocase {%3a : %3f ? %3d = %26 & %23 } $MyPath]
set ToCache 0
set Cas 3
}
if { $ToCache eq "1" } {
CACHE::enable
set ToCache "yes"
}
else {
CACHE::disable
set ToCache "no"
}
if {$MyRedir eq ""}{
log local0.info "-- Cas= $Cas -- Cache=$ToCache -- MyRedir=$MyRedir -- URI -- $NewURI"
HTTP::uri $NewURI
}
else {
log local0.info " -- MyRedir=$MyRedir -- Cas= $Cas -- Cache=$ToCache -- URI -- $NewURI"
HTTP::redirect $MyRedir
}
}
}
}
when HTTP_RESPONSE {
set monType [HTTP::header "Content-Type"]
if { [HTTP::header "Content-Type"] equals "text/a.wml" } {
log local0.info " Content - $monType -- NO CACHE"
CACHE::disable
}
else {
log local0.info " Content -- $monType -- CACHE"
}
}
When I first looked at this, I thought you were missing a brace to close the HTTP_REQUEST event. But I think the problem is with this statement:
set MyRedir [string map -nocase {%3a : %3f ? %3d = %26 & %23 } $MyPath]
The comment character “” sits before the closing brace. However when iRules are processed, something funky happens when both comment characters and braces are contained on the same line. I ran into this recently myself, though it does not correlate directly to your issue:
http://devcentral.f5.com/Forums/tabid/1082223/asg/50/showtab/groupforums/afv/topic/aff/5/aft/1172116/Default.aspx
Try removing that comment character.
Also, I think I’ve had cases where the iRule editor has accepted code that was not accepted by the admin GUI. I tend to trust editing iRules in the admin GUI more than the editor.
When i add one more brace i get a red point on iruel editor:
else {
log local0.info " -- MyRedir=$MyRedir -- Cas= $Cas -- Cache=$ToCache -- URI -- $NewURI"
HTTP::redirect $MyRedir
}
}
}
}
}
when HTTP_RESPONSE {
set monType [HTTP::header "Content-Type"]
if { [HTTP::header "Content-Type"] equals "text/a.wml" } {
log local0.info " Content - $monType -- NO CACHE"
CACHE::disable
}
else {
log local0.info " Content -- $monType -- CACHE"
}
}
Sorry, I just edited my inital post.
Indeed!
(9) Comments If a hash character () appears at a point where Tcl is expecting the first character of the first word of a command, then the hash character and the characters that follow it, up through the next newline, are treated as a comment and ignored. The comment character only has significance when it appears at the beginning of a command.
So do you think no solution right now?
if i excpect to remove exceptions in my iruule
I mean if i transform that:
set MyRedir [string map -nocase {%3a : %3f ? %3d = %26 & %23 } $MyPath]
to:
set MyRedir [string map $MyPath]
is it correct?
Actually, they SHOULD be ignored… And are as far as the GUI is concerned. And whatever loads the iRule into memory when you edit it via the GUI (Or iControl for that matter). However the parser that reads the config file at boot time (And when performing a ‘b load’, or upgrading a configuration from one version to the next) isn’t the same parser. And doesn’t ignore some special characters after a comment… e.g. } and " are both counted AFTER a comment…
AFAIUI there is an outstanding bug on this one… Has been for a while (I’ve raised it at least twice at two different locations. Once when rebooting a 9.3 box that had a comment quote in an iRule, and once when upgrading from 9.4.8 to 10.1.0). (It’s possible that they’ve fixed mine because they were " chars… But if so, then it’s a bit strange that they didn’t fix it for ALL characters… I suspect that { will also be affected… Maybe other things.
H
wao it seems not to be confortable with this issue.
Maybe the best way for me should be to remove all these parameters as i mentioned just before?
Actually i use this rule to force decoding for some characters live “%023”…but normally it’s done by default..