Tracked this down to a problem with range matching in rules.xml. 
Bug report: https://bugzilla.suse.com/show_bug.cgi?id=1190245

Thanks for all the suggestions.
Rainer

Von: Rainer König
Gesendet: Montag, 6. September 2021 18:07
An: autoinstall@lists.opensuse.org <autoinstall@lists.opensuse.org>
Betreff: Debugging rules and classes for AutoYast
 
I'm trying to get the rules and classes working on both SLE 15 and Tumbleweed.
Problem is that the only working test is with SLE 15 Build 31.2 on openqa.suse.de,
everything else complains that there is no profile. So I installed a local apache and
copied my rule-based example directory.

Then I installed on a local VM. Result is: Tumbleweed Snapshot from 20210904
is failing. SLE 15 Build 29.1 is failing, SLE 15 Build 31.2 is failing too.

Looking at the Apache access_log it shows:
192.168.0.66 - - [06/Sep/2021:16:35:29 +0200] "GET /rule-based_example/rules/rules.xml HTTP/1.1" 200 732 "-" "-"
192.168.0.66 - - [06/Sep/2021:16:35:29 +0200] "GET /rule-based_example/C0A80042 HTTP/1.1" 404 984 "-" "-"
192.168.0.66 - - [06/Sep/2021:16:35:29 +0200] "GET /rule-based_example/C0A8004 HTTP/1.1" 404 984 "-" "-"
192.168.0.66 - - [06/Sep/2021:16:35:29 +0200] "GET /rule-based_example/C0A800 HTTP/1.1" 404 984 "-" "-"
192.168.0.66 - - [06/Sep/2021:16:35:29 +0200] "GET /rule-based_example/C0A80 HTTP/1.1" 404 984 "-" "-"
192.168.0.66 - - [06/Sep/2021:16:35:29 +0200] "GET /rule-based_example/C0A8 HTTP/1.1" 404 984 "-" "-"
192.168.0.66 - - [06/Sep/2021:16:35:29 +0200] "GET /rule-based_example/C0A HTTP/1.1" 404 984 "-" "-"
192.168.0.66 - - [06/Sep/2021:16:35:29 +0200] "GET /rule-based_example/C0 HTTP/1.1" 404 984 "-" "-"
192.168.0.66 - - [06/Sep/2021:16:35:29 +0200] "GET /rule-based_example/C HTTP/1.1" 404 984 "-" "-"
192.168.0.66 - - [06/Sep/2021:16:35:29 +0200] "GET /rule-based_example/52540021120A HTTP/1.1" 404 984 "-" "-"
192.168.0.66 - - [06/Sep/2021:16:35:29 +0200] "GET /rule-based_example/52540021120a HTTP/1.1" 404 984 "-" "-"
192.168.0.66 - - [06/Sep/2021:16:35:29 +0200] "GET /rule-based_example/default HTTP/1.1" 404 984 "-" "-"

So, the first attempt retrieves "rules/rules.xml", but something seems to be wrong with
this file. Then it tries with the hexadecimal value of the IP address, always cutting the
last element of that string, but always gets 404s. Then it tries with the MAC adress,
both with non-digits in upper and lower case. At the end it attempts to get "default".

Since the same ISO image for SLE 15 SP4 is working when I'm using it in an openQA enviroenment,
I assume that the installer will do some updates when contacting the SLE registration server.

Form the apache log it shows that its always getting the rules/rules.xml file, but it seems not
to be satisfied with that. How can I find out what is wrong with the rules.xml file?

Best regards
Rainer