From fsteiner-mail1@bio.ifi.lmu.de Thu Apr 2 10:30:46 2015 From: Frank Steiner To: autoinstall@lists.opensuse.org Subject: [opensuse-autoinstall] continue=false ignored in rules.xml on SLED 13 Date: Thu, 02 Apr 2015 12:30:40 +0200 Message-ID: <551D1A50.2020100@bio.ifi.lmu.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3068017347539845842==" --===============3068017347539845842== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, I've the following rules in rules.xml (allows to install a certain SLED host without adding the SDK with the profile in the second rule): xx.xx.xx.xx exact profiles/sled-x86_64_only.xml listentry package false * exact profiles/@custom1(a).xml true listentry package The first rule matches agains my host ip and adds sled-x86_64_only.xml. Then it should stop due to the false, and that's how it worked in SLE 11 SP3. But in SLED 12 it continues and adds sled-x86_64.xml, too. Below is the excerpt from the y2log (IPs removed). Is this a known bug? cu, Frank 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 468 Ruleset: $["hostaddress":$["match":"xx.xx.xx.xx", "match_type":"exact"], = "result":$["continue":false, "dont_merge":["listentry", "package"], "profile"= :"profiles/sled-x86_64_only.xml"]] 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 474 Orderes Rules: ["hostaddress", "result"] 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 477 Rule: hostaddress 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 478 Ruledef: $["match":"xx.xx.xx.xx", "match_type":"exact"] 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 403 var: hostaddress, val: xx.xx.xx.xx 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 404 shell: ( [ "$hostaddress" =3D "xx.xx.xx.xx" ] ) 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 477 Rule: result 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 478 Ruledef: $["continue":false, "dont_merge":["listentry", "package"], "prof= ile":"profiles/sled-x86_64_only.xml"] 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 423 file: profiles/sled-x86_64_only.xml 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 434 var: 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 444 val: profiles/sled-x86_64_only.xml 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 417 Bash return: if ( [ "$hostaddress" =3D "xx.xx.xx.xx" ] ) ; then exit 0; = else exit 1; fi ($["exit":1, "stderr":"", "stdout":""]) ($["arch":"x86_64", "= custom1":"", "custom2":"", "hostaddress":nil]) 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 468 Ruleset: $["custom1":$["match":"*", "match_type":"exact", "script":"\n#!/= bin/sh\nproduct=3D`/bin/grep -w DISTRO /content |sed 's/.*:\\(sle.\\):.*/\\1/= '`\nhosttype=3D$HOSTTYPE\necho -n $product-$hosttype\n"], "result":$["continu= e":true, "dont_merge":["listentry", "package"], "profile":"profiles/@custom1(= a).xml"]] 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 474 Orderes Rules: ["custom1", "result"] 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 477 Rule: custom1 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 478 Ruledef: $["match":"*", "match_type":"exact", "script":"\n#!/bin/sh\nprod= uct=3D`/bin/grep -w DISTRO /content |sed 's/.*:\\(sle.\\):.*/\\1/'`\nhosttype= =3D$HOSTTYPE\necho -n $product-$hosttype\n"] 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 514 Writing rule script into /tmp/YaST2-03952-kO5Llb/rule_custom1 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 403 var: custom1, val: * 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 404 shell: ( [ "1" =3D "1" ] ) 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 477 Rule: result 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 478 Ruledef: $["continue":true, "dont_merge":["listentry", "package"], "profi= le":"profiles/@custom1(a).xml"] 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 423 file: profiles/@custom1(a).xml 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 434 var: custom1 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 417 Bash return: if ( [ "1" =3D "1" ] ) ; then exit 0; else exit 1; fi ($["e= xit":0, "stderr":"", "stdout":""]) ($["arch":"x86_64", "custom1":"sled-x86_64= ", "custom2":"", "hostaddress":nil]) 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 625 Final Profile name: profiles/sled-x86_64.xml 2015-04-02 08:13:54 <1> xx.xx.xx.xx(3952) [Ruby] modules/AutoInstallRules.rb:= 644 user defined dont_merge for rules found. dontmerge is ["listentry", "pack= age"] --=20 Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/ Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/ LMU, Amalienstr. 17 Phone: +49 89 2180-4049 80333 Muenchen, Germany Fax: +49 89 2180-99-4049 * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. * --=20 To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe(a)opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner(a)opensuse.org --===============3068017347539845842==--