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
On 9/6/21 6:07 PM, Rainer König wrote:
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".
Please see https://documentation.suse.com/sles/15-SP3/html/SLES-all/Invoking.html#Comma... it depends how you actually call AutoYaST. Also https://documentation.suse.com/sles/15-SP3/html/SLES-all/rulesandclass.html should contain some more info. Linuxrc and YaST logs should tell more. -- Lukas Ocilka, Systems Mgmt & Consulting Team Leader & YaST Product Owner SLE Department, SUSE Linux
El lun, 06-09-2021 a las 16:07 +0000, Rainer König escribió: [..]
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.
I do not think so: I suppose that the installer updates repository is not enabled for SP4 yet, so the code should be the same.
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?
I suppose that the problem is that no rule matches, so it tries with the fallback locations for a profile (IP, MAC and 'default'). Given that it works in openQA but not in a different environment, I would say that's the reason. Could you, please, share your rules and log files? Thanks! Regards, Imo -- Imobach González Sosa YaST Team at SUSE LLC https://imobachgs.github.io/
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
participants (3)
-
Imobach Gonzalez Sosa
-
Lukas Ocilka
-
Rainer König