[Bug 1200104] New: autoyast error message "failed to add product from" is blocking unattended installations
http://bugzilla.opensuse.org/show_bug.cgi?id=1200104 Bug ID: 1200104 Summary: autoyast error message "failed to add product from" is blocking unattended installations Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.4 Hardware: x86-64 OS: openSUSE Leap 15.4 Status: NEW Severity: Normal Priority: P5 - None Component: AutoYaST Assignee: yast2-maintainers@suse.de Reporter: thorsten.huber@rnetx.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 859334 --> http://bugzilla.opensuse.org/attachment.cgi?id=859334&action=edit save_y2logs My unattended autoyast installation attempts are blocked with the following error messages: Error Failed to add product from: http://download.opensuse.org/update/leap/15.4/backports Error Failed to add product from: http://download.opensuse.org/distribution/leap/15.4/repo/non-oss/ Error Failed to add product from: http://download.opensuse.org/update/leap/15.4/sle/ Error Failed to add product from: http://download.opensuse.org/update/leap/15.4/non-oss/ These errors are reproducable on openSUSE-Leap-15.4-DVD-x86_64-Build243.2 openSUSE-Leap-15.4-DVD-x86_64-Build243.1 openSUSE-Leap-15.4-DVD-x86_64-Build236.1 The installation was working with openSUSE-Leap-15.4-DVD-x86_64-Build130.2 How to reproduce: 1. Install system (customizations: Keyboard Layout: German, Activate online repositories: Yes, System Role: Server, Clock and Time Zone: Etc/UTC) 2. zypper in -y autoyast2 3. /usr/sbin/yast2 clone_system 4. add the autoinst.xml to the installation image and start an unattended installation Details: Repo status after step 1: localhost:~ # zypper repos Repository priorities are without effect. All enabled repositories share the same priority. # | Alias | Name | Enabled | GPG Check | Refresh ---+-----------------------------+---------------------------------------------------------------------------------------------+---------+-----------+-------- 1 | openSUSE-Leap-15.4-1 | openSUSE-Leap-15.4-1 | No | ---- | ---- 2 | repo-backports-debug-update | Update repository with updates for openSUSE Leap debuginfo packages from openSUSE Backports | No | ---- | ---- 3 | repo-backports-update | Update repository of openSUSE Backports | Yes | ( p) Yes | Yes 4 | repo-debug | Debug Repository | No | ---- | ---- 5 | repo-debug-non-oss | Debug Repository (Non-OSS) | No | ---- | ---- 6 | repo-debug-update | Update Repository (Debug) | No | ---- | ---- 7 | repo-debug-update-non-oss | Update Repository (Debug, Non-OSS) | No | ---- | ---- 8 | repo-non-oss | Non-OSS Repository | Yes | (r ) Yes | Yes 9 | repo-oss | Main Repository | Yes | (r ) Yes | Yes 10 | repo-sle-debug-update | Update repository with debuginfo for updates from SUSE Linux Enterprise 15 | No | ---- | ---- 11 | repo-sle-update | Update repository with updates from SUSE Linux Enterprise 15 | Yes | ( p) Yes | Yes 12 | repo-source | Source Repository | No | ---- | ---- 13 | repo-update | Main Update Repository | Yes | (r ) Yes | Yes 14 | repo-update-non-oss | Update Repository (Non-Oss) | Yes | (r ) Yes | Yes Repo status of cloned system: localhost:/home/opensuse # zypper repos Repository priorities are without effect. All enabled repositories share the same priority. # | Alias | Name | Enabled | GPG Check | Refresh --+-----------------------------+---------------------------------------------------------------------------------------------+---------+-----------+-------- 1 | openSUSE-Leap-15.4-1 | openSUSE-Leap-15.4-1 | Yes | (r ) Yes | No 2 | repo-backports-debug-update | Update repository with updates for openSUSE Leap debuginfo packages from openSUSE Backports | No | ---- | ---- 3 | repo-backports-update | Update repository of openSUSE Backports | Yes | (r ) Yes | Yes 4 | repo-sle-debug-update | Update repository with debuginfo for updates from SUSE Linux Enterprise 15 | No | ---- | ---- 5 | repo-sle-update | Update repository with updates from SUSE Linux Enterprise 15 | Yes | (r ) Yes | Yes -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1200104 http://bugzilla.opensuse.org/show_bug.cgi?id=1200104#c1 --- Comment #1 from Thorsten Huber <thorsten.huber@rnetx.com> --- Created attachment 859335 --> http://bugzilla.opensuse.org/attachment.cgi?id=859335&action=edit Error message 1 out of 4 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1200104 http://bugzilla.opensuse.org/show_bug.cgi?id=1200104#c2 --- Comment #2 from Thorsten Huber <thorsten.huber@rnetx.com> --- Created attachment 859336 --> http://bugzilla.opensuse.org/attachment.cgi?id=859336&action=edit Error message 2 out of 4 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1200104 http://bugzilla.opensuse.org/show_bug.cgi?id=1200104#c3 --- Comment #3 from Thorsten Huber <thorsten.huber@rnetx.com> --- Created attachment 859337 --> http://bugzilla.opensuse.org/attachment.cgi?id=859337&action=edit Error message 3 out of 4 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1200104 http://bugzilla.opensuse.org/show_bug.cgi?id=1200104#c4 --- Comment #4 from Thorsten Huber <thorsten.huber@rnetx.com> --- Created attachment 859338 --> http://bugzilla.opensuse.org/attachment.cgi?id=859338&action=edit Error message 4 out of 4 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1200104 http://bugzilla.opensuse.org/show_bug.cgi?id=1200104#c5 --- Comment #5 from Thorsten Huber <thorsten.huber@rnetx.com> --- Additional observation: The observed errors appear when the autoyast file is placed on the installation media and loaded via: autoyast=file:///autoinst.xml It is working if the identical file is fetched from a web server via autoyast=http://10.211.55.2:8000/autoinst.xml -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1200104 http://bugzilla.opensuse.org/show_bug.cgi?id=1200104#c7 --- Comment #7 from Thorsten Huber <thorsten.huber@rnetx.com> --- Thanks for the pointer to the error reporting configuration. I've changed the errors timeout to 10 and this allows an automated installation. But with the same side effect that I've mentioned in my last comment: The repos that are reported as "failed to add product from" during the installation are missing in the cloned system: localhost:/home/opensuse # zypper repos Repository priorities are without effect. All enabled repositories share the same priority. # | Alias | Name | Enabled | GPG Check | Refresh --+-----------------------------+---------------------------------------------------------------------------------------------+---------+-----------+-------- 1 | openSUSE-Leap-15.4-1 | openSUSE-Leap-15.4-1 | Yes | (r ) Yes | No 2 | repo-backports-debug-update | Update repository with updates for openSUSE Leap debuginfo packages from openSUSE Backports | No | ---- | ---- 3 | repo-backports-update | Update repository of openSUSE Backports | Yes | (r ) Yes | Yes 4 | repo-sle-debug-update | Update repository with debuginfo for updates from SUSE Linux Enterprise 15 | No | ---- | ---- 5 | repo-sle-update | Update repository with updates from SUSE Linux Enterprise 15 | Yes | (r ) Yes | Yes I found the following lines in the YaST2/y2log-1.gz: 2022-06-01 03:56:21 <1> install(3739) [zypp::media++] MediaCurl.cc(doGetFileCopyFile):1187 URL: http://download.opensuse.org/update/leap/15.4/backports/media.1/products?ali... 2022-06-01 03:56:21 <3> install(3739) [zypp::media] MediaCurl.cc(doGetFileCopyFile):1252 curl error: 6: Could not resolve host: download.opensuse.org, temp file size 0 bytes. 2022-06-01 03:56:21 <5> install(3739) [zypp-core] Exception.cc(log):186 MediaCurl.cc(evaluateCurlCode):868 THROW: Download (curl) error for 'http://download.opensuse.org/update/leap/15.4/backports/media.1/products?ali...': 2022-06-01 03:56:21 <5> install(3739) [zypp-core] Exception.cc(log):186 Error code: Connection failed 2022-06-01 03:56:21 <5> install(3739) [zypp-core] Exception.cc(log):186 Error message: Could not resolve host: download.opensuse.org ... 2022-06-01 03:56:21 <3> install(3739) [Ruby] clients/add-on_auto.rb(report_error_for):315 Failed to add product from http://download.opensuse.org/update/leap/15.4/backports/ I think this supports your guess with the network activation logic. Based on this finding in the logs I've added netsetup=dhcp to the command line: "netsetup=dhcp autoyast=file:///autoinst.xml" With this addition I can avoid the error pop-up during the unattended installation, which is fine for me. However it would be nice if either the network activation logic could handle this scenario directly or if the documentation about invoking autoyast on https://doc.opensuse.org/documentation/leap/archive/15.3/autoyast/html/book-... could include a hint to add "netsetup=dhcp" when online repos are used during the installation process. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com