[opensuse-bugs] [Bug 1178804] New: Missing rules.xml used anyway
http://bugzilla.opensuse.org/show_bug.cgi?id=1178804 Bug ID: 1178804 Summary: Missing rules.xml used anyway Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: AutoYaST Assignee: yast2-maintainers@suse.de Reporter: luizluca@tre-sc.jus.br QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Hello, I use autoyas/default, using relurl://..//autoyast/. However, I never used a rules.xml. It looks like autoyast is looking for rules.xml and, when missing, using the "404 error page" as the rules.xml. 2020-11-14 13:25:23 <1> install(4281) [Ruby] modules/AutoinstConfig.rb(ParseCmdLine):341 AutoYast profile location relurl://../autoyast/ 2020-11-14 13:25:23 <1> install(4281) [Ruby] modules/AutoinstConfig.rb(ParseCmdLine):372 correcting relurl://..//autoyast/ to empty host entry 2020-11-14 13:25:23 <1> install(4281) [Ruby] modules/AutoinstConfig.rb(ParseCmdLine):383 urltok = relurl://../autoyast/ 2020-11-14 13:25:23 <1> install(4281) [Ruby] modules/ProfileLocation.rb(Process):49 Path to remote control file: ../autoyast/ 2020-11-14 13:25:23 <1> install(4281) [Ruby] modules/AutoInstallRules.rb(getMAC):150 mac Addr ret:$["exit":0, "stderr":"", "stdout":"04:0e:3c:fc:4f:aa\n"] 2020-11-14 13:25:23 <1> install(4281) [Ruby] modules/AutoInstallRules.rb(getMAC):153 mac Addr tmp:04:0e:3c:fc:4f:aa 2020-11-14 13:25:23 <1> install(4281) [Ruby] modules/AutoInstallRules.rb(getMAC):155 mac Addr mac:040e3cfc4faa 2020-11-14 13:25:23 <1> install(4281) [Ruby] modules/AutoInstallRules.rb(hostaddress):1088 Found IP address: 192.168.9.144 2020-11-14 13:25:23 <1> install(4281) [Ruby] modules/AutoInstallRules.rb(AutoInstallRules):1072 init mac:040e3cfc4faa hostid:C0A80990 2020-11-14 13:25:23 <1> install(4281) [Ruby] modules/ProfileLocation.rb(Process):64 installation path from install.inf: http://repo/suse/opensuse-tumbleweed/oss/ 2020-11-14 13:25:23 <1> install(4281) [Ruby] modules/ProfileLocation.rb(Process):75 relurl for profile changed to: http://repo/suse/opensuse-tumbleweed/oss/../autoyast/ 2020-11-14 13:25:23 <2> install(4281) [agent-ini] IniParser.cc(UpdateIfModif):915 Data file '/etc/install.inf' was changed externaly! 2020-11-14 13:25:23 <1> install(4281) [Ruby] modules/ProfileLocation.rb(Process):166 Dir=/suse/opensuse-tumbleweed/oss/../autoyast/ 2020-11-14 13:25:23 <1> install(4281) [Ruby] modules/ProfileLocation.rb(Process):167 Fetching Rules File 2020-11-14 13:25:23 <1> install(4281) [agent-system] SystemAgent.cc(Execute):1156 mkdir /tmp/YaST2-04281-q6mS3U/rules 2020-11-14 13:25:23 <1> install(4281) [Ruby] transfer/file_from_url.rb(get_file_from_url):105 Scheme:http Host:repo Path:/suse/opensuse-tumbleweed/oss/../autoyast//rules/rules.xml Localfile:/tmp/YaST2-04281-q6mS3U/rules/rules.xml 2020-11-14 13:25:23 <1> install(4281) [Ruby] transfer/file_from_url.rb(get_file_from_url):125 Chr:scr TmpDir:/tmp/YaST2-04281-wzW5ZS Mp:/tmp/YaST2-04281-wzW5ZS/tmp_mount 2020-11-14 13:25:23 <1> install(4281) [agent-system] SystemAgent.cc(Execute):1156 mkdir /tmp/YaST2-04281-wzW5ZS/tmp_mount 2020-11-14 13:25:23 <1> install(4281) [agent-curl] CurlAgent.cc(Execute):269 Data: 2020-11-14 13:25:23 <1> install(4281) [agent-curl] CurlAgent.cc(Execute):270 Output: 2020-11-14 13:25:23 <1> install(4281) [agent-curl] CurlAgent.cc(Execute):269 Data: 2020-11-14 13:25:23 <1> install(4281) [agent-curl] CurlAgent.cc(Execute):270 Output: /tmp/YaST2-04281-q6mS3U/rules/rules.xml 2020-11-14 13:25:23 <1> install(4281) [agent-curl] CurlAgent.cc(Get):166 curl returned -> response code: 404, total size: 1015, total time 0.002567, content type: text/html; charset=utf-8 2020-11-14 13:25:23 <3> install(4281) [Ruby] transfer/file_from_url.rb(get_file_from_url):153 Can't find URL: http://repo/suse/opensuse-tumbleweed/oss/../autoyast/rules/rules.xml 2020-11-14 13:25:23 <1> install(4281) [Ruby] modules/ProfileLocation.rb(Process):225 Creating default Rules 2020-11-14 13:25:23 <1> install(4281) [Ruby] modules/AutoInstallRules.rb(CreateDefault):1053 Created default rules=["C0A80990", "C0A8099", "C0A809", "C0A80", "C0A8", "C0A", "C0", "C", "040E3CFC4FAA", "040e3cfc4faa", "default"] 2020-11-14 13:25:23 <1> install(4281) [Ruby] modules/AutoInstallRules.rb(GetRules):815 Getting Rules: ["C0A80990", "C0A8099", "C0A809", "C0A80", "C0A8", "C0A", "C0", "C", "040E3CFC4FAA", "040e3cfc4faa", "default"] 2020-11-14 13:25:23 <1> install(4281) [Ruby] modules/AutoInstallRules.rb(block in Merge):903 Working on file: C0A80990 2020-11-14 13:25:23 <1> install(4281) [Ruby] autoinstall/xml_validator.rb(validate):62 Validating /tmp/YaST2-04281-q6mS3U/rules/C0A80990 against /usr/share/YaST2/schema/autoyast/rng/profile.rng... 2020-11-14 13:25:23 <3> install(4281) [Ruby] autoinstall/xml_validator.rb(validate):68 XML validation errors: ["4:0: ERROR: Expecting element profile, got html"] '/tmp/YaST2-04281-q6mS3U/rules/rules.xml' has a standard apache 404 error page. And when I created an empty rules.xml, it failed with: 2020-11-14 13:47:32 <1> install(4281) [Ruby] autoinstall/xml_validator.rb(validate):62 Validating /tmp/YaST2-04281-q6mS3U/rules/rules.xml against /usr/share/YaST2/schema/autoyast/rng/rules.rng... 2020-11-14 13:47:32 <3> install(4281) [Ruby] autoinstall/xml_validator.rb(rescue in validate):71 Cannot parse XML: 53:0: ERROR: Internal found no define for ref haspcmica -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1178804 http://bugzilla.opensuse.org/show_bug.cgi?id=1178804#c1 --- Comment #1 from Luiz Angelo Daros de Luca <luizluca@tre-sc.jus.br> --- Also, it looks like autoyast added a new validator that breaks some existing profiles. These cannot be used anymore: profile/scripts/init_scripts/script/interpreter profile/general/ask-list/ask/static_text profile/general/ask-list/ask/type == static_text profile/general/storage/partition_alignment Are all those expected? Anyway, It would be nice to have yast warn exactly which elements is violating because I only get there is something wrong inside 'general'. It is difficult to locate, specially when there is more than one problem in a subtree (breaking a manual binary search). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1178804 http://bugzilla.opensuse.org/show_bug.cgi?id=1178804#c4 Luiz Angelo Daros de Luca <luizluca@tre-sc.jus.br> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(luizluca@tre-sc.j | |us.br) | --- Comment #4 from Luiz Angelo Daros de Luca <luizluca@tre-sc.jus.br> --- Created attachment 843657 --> http://bugzilla.opensuse.org/attachment.cgi?id=843657&action=edit y2log failing to parse rules.xml Let's go by parts. This is failing to ready even an empty rules.xml: <?xml version="1.0"?> <!DOCTYPE autoinstall> <autoinstall xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> <rules config:type="list"> </rules> </autoinstall> After that is fixed we can track the other bugs. It's tricky to edit read-only files (bind + overlayfs) everytime I boot. The logs will show I'm using a directory path, not an XML one likle autoyast=http://..../autoyast/ -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com