[kubic-bugs] [Bug 1153687] New: Zypper repo name detection broken
http://bugzilla.suse.com/show_bug.cgi?id=1153687 Bug ID: 1153687 Summary: Zypper repo name detection broken Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kubic Assignee: kubic-bugs@opensuse.org Reporter: fvogt@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- zypper ar obs://some:where/ results in a URL such as https://download.opensuse.org/repositories/some:/where/openSUSE-MicroOS-2019... -- You are receiving this mail because: You are the assignee for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1153687 Thorsten Kukuk <kukuk@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kukuk@suse.com Component|Kubic |libzypp Assignee|kubic-bugs@opensuse.org |zypp-maintainers@suse.de -- You are receiving this mail because: You are the assignee for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1153687 http://bugzilla.suse.com/show_bug.cgi?id=1153687#c2 Fabian Vogt <fvogt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Component|libzypp |Kubic Resolution|INVALID |--- Assignee|zypp-maintainers@suse.de |kubic-bugs@opensuse.org --- Comment #2 from Fabian Vogt <fvogt@suse.com> --- (In reply to Michael Andres from comment #1)
What's wrong with it?
MicroOS and Kubic use Tumbleweed repos.
root@fibonacci:~ (3) $ zypper ar obs://some:where/ xxx Guessed: platform = openSUSE_Leap_$releasever ... https://download.opensuse.org/repositories/some:/where/openSUSE_Leap_15.1
The 'Guessed platform' depends on your installed product. If the projects has no repo set up for it, you need to manually pass one that fits for you:
[man zypper] These URIs have the form of obs://project/[platform], where project is the name of the OBS project and platform is the target platform (OS) for which the repository is intended.
If platform is omitted, openSUSE_$releasever is used unless a value for obs.platform is defined in zypper.conf. ... Ok, the man page should state that it's actually guessed based on your product (/etc/proucts.d/baseproduct).. I'll fix that.
Then this has to be adjusted in the MicroOS product file. -- You are receiving this mail because: You are the assignee for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1153687 Fabian Vogt <fvogt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kubic-bugs@opensuse.org Assignee|kubic-bugs@opensuse.org |rbrown@suse.com -- You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1153687 http://bugzilla.suse.com/show_bug.cgi?id=1153687#c3 Fabian Vogt <fvogt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ma@suse.com, | |rbrown@suse.com Flags| |needinfo?(ma@suse.com), | |needinfo?(rbrown@suse.com) --- Comment #3 from Fabian Vogt <fvogt@suse.com> --- (In reply to Fabian Vogt from comment #2)
(In reply to Michael Andres from comment #1)
[man zypper] These URIs have the form of obs://project/[platform], where project is the name of the OBS project and platform is the target platform (OS) for which the repository is intended.
If platform is omitted, openSUSE_$releasever is used unless a value for obs.platform is defined in zypper.conf. ... Ok, the man page should state that it's actually guessed based on your product (/etc/proucts.d/baseproduct).. I'll fix that.
Then this has to be adjusted in the MicroOS product file.
Not that easy actually: platform = pdata.name().asString(); if ( platform == "openSUSE" && str::containsCI( pdata.summary(), "Tumbleweed" ) ) platform += "_Tumbleweed"; else platform += "_$releasever"; So we'd have to change the summary to "openSUSE MicroOS based on Tumbleweed" or something like that. Or zypper changes its detection mechanism to also include MicroOS. Or zypper introduces a conf.d directory where the MicroOS product package could set obs.platform in. Any ideas? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1153687 http://bugzilla.suse.com/show_bug.cgi?id=1153687#c4 Richard Brown <rbrown@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(rbrown@suse.com) | --- Comment #4 from Richard Brown <rbrown@suse.com> --- (In reply to Fabian Vogt from comment #3)
(In reply to Fabian Vogt from comment #2)
(In reply to Michael Andres from comment #1)
[man zypper] These URIs have the form of obs://project/[platform], where project is the name of the OBS project and platform is the target platform (OS) for which the repository is intended.
If platform is omitted, openSUSE_$releasever is used unless a value for obs.platform is defined in zypper.conf. ... Ok, the man page should state that it's actually guessed based on your product (/etc/proucts.d/baseproduct).. I'll fix that.
Then this has to be adjusted in the MicroOS product file.
Not that easy actually:
platform = pdata.name().asString(); if ( platform == "openSUSE" && str::containsCI( pdata.summary(), "Tumbleweed" ) ) platform += "_Tumbleweed"; else platform += "_$releasever";
So we'd have to change the summary to "openSUSE MicroOS based on Tumbleweed" or something like that.
This would not be compatible with the directions I was given when originally setting up MicroOS. We want MicroOS to be identifiable as a discreet offering from the codebase its based on, to surpress the tendency of an unhindered ever-broadening scope that comes with Tumbleweed
Or zypper changes its detection mechanism to also include MicroOS. Or zypper introduces a conf.d directory where the MicroOS product package could set obs.platform in.
Any ideas?
I'd prefer either of these two ideas which are more compatible with how we want MicroOS to be. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1153687 http://bugzilla.suse.com/show_bug.cgi?id=1153687#c5 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(ma@suse.com) | --- Comment #5 from Michael Andres <ma@suse.com> --- If we need product specific values, we should introduce a tag for it in the .prod file. This is where the data come from (it's not sufficient that the -release package is installed, it needs to the the baseproduct). Zypper could prefer the value of <obsplatform> or something similar. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1153687 http://bugzilla.suse.com/show_bug.cgi?id=1153687#c6 --- Comment #6 from Fabian Vogt <fvogt@suse.com> --- (In reply to Michael Andres from comment #5)
If we need product specific values, we should introduce a tag for it in the .prod file. This is where the data come from (it's not sufficient that the -release package is installed, it needs to the the baseproduct).
Zypper could prefer the value of <obsplatform> or something similar.
Then the special condition for "Tumbleweed" in zypper wouldn't be necessary anymore either. Who controls the specification of that file? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1153687 http://bugzilla.suse.com/show_bug.cgi?id=1153687#c7 --- Comment #7 from Michael Andres <ma@suse.com> --- (In reply to Fabian Vogt from comment #6)
Who controls the specification of that file?
AFAIK Adrian. He should at leask know who. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1153687 https://bugzilla.suse.com/show_bug.cgi?id=1153687#c12 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |FIXED --- Comment #12 from Michael Andres <ma@suse.com> --- Zypper-1.14.43 will use openSUSE_Tumbleweed if product name is MicroOS and vendor is openSUSE. This should fix it for now. Reopoen or ping me in case OBS actually implements something like Fabian suggested. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1153687 https://bugzilla.suse.com/show_bug.cgi?id=1153687#c13 Fabian Vogt <fvogt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #13 from Fabian Vogt <fvogt@suse.com> --- (In reply to Michael Andres from comment #12)
Zypper-1.14.43 will use openSUSE_Tumbleweed if product name is MicroOS and vendor is openSUSE. This should fix it for now.
Reopoen or ping me in case OBS actually implements something like Fabian suggested.
Reopening, but sadly not because it got implemented in OBS... I installed Kubic recently and used zypper ar with obs://, but it failed: f241:~ # zypper ar obs://devel:kubic dk Guessed: platform = MicroOS_$releasever Adding repository 'dk' ......................................................................................................................................................................................................................[done] Repository 'dk' successfully added URI : https://download.opensuse.org/repositories/devel:/kubic/MicroOS_20210408 f241:~ # rpm -q zypper zypper-1.14.43-1.2.x86_64 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1153687 https://bugzilla.suse.com/show_bug.cgi?id=1153687#c14 --- Comment #14 from Michael Andres <ma@suse.com> --- You are right, fore some reason the patch was not merged. I will check it. Sorry! -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1153687 https://bugzilla.suse.com/show_bug.cgi?id=1153687#c19 --- Comment #19 from Swamp Workflow Management <swamp@suse.de> --- SUSE-RU-2021:1833-1: An update that has 10 recommended fixes can now be installed. Category: recommended (moderate) Bug References: 1153687,1180851,1181874,1182372,1182936,1183268,1183589,1183628,1184997,1185239 CVE References: JIRA References: Sources used: SUSE MicroOS 5.0 (src): libzypp-17.25.10-6.1, zypper-1.14.44-7.1 SUSE Linux Enterprise Module for Basesystem 15-SP3 (src): libzypp-17.25.10-6.1, zypper-1.14.44-7.1 SUSE Linux Enterprise Module for Basesystem 15-SP2 (src): libzypp-17.25.10-6.1, zypper-1.14.44-7.1 SUSE Linux Enterprise Installer 15-SP2 (src): libzypp-17.25.10-6.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1153687 https://bugzilla.suse.com/show_bug.cgi?id=1153687#c20 --- Comment #20 from Swamp Workflow Management <swamp@suse.de> --- openSUSE-RU-2021:0842-1: An update that has 10 recommended fixes can now be installed. Category: recommended (moderate) Bug References: 1153687,1180851,1181874,1182372,1182936,1183268,1183589,1183628,1184997,1185239 CVE References: JIRA References: Sources used: openSUSE Leap 15.2 (src): libzypp-17.25.10-lp152.2.31.1, zypper-1.14.44-lp152.2.21.1 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1153687 https://bugzilla.suse.com/show_bug.cgi?id=1153687#c23 --- Comment #23 from Swamp Workflow Management <swamp@suse.de> --- openSUSE-RU-2021:1833-1: An update that has 10 recommended fixes can now be installed. Category: recommended (moderate) Bug References: 1153687,1180851,1181874,1182372,1182936,1183268,1183589,1183628,1184997,1185239 CVE References: JIRA References: Sources used: openSUSE Leap 15.3 (src): libzypp-17.25.10-6.1, zypper-1.14.44-7.1 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1153687 https://bugzilla.suse.com/show_bug.cgi?id=1153687#c27 --- Comment #27 from Swamp Workflow Management <swamp@suse.de> --- SUSE-RU-2021:3780-1: An update that has 31 recommended fixes and contains one feature can now be installed. Category: recommended (moderate) Bug References: 1153687,1182372,1183268,1183589,1184326,1184399,1184997,1185325,1186447,1186503,1186602,1187224,1187425,1187466,1187738,1187760,1188156,1188435,1189031,1190059,1190199,1190356,1190465,1190712,1190815,1191286,1191324,1191370,1191609,1192337,1192436 CVE References: JIRA References: SLE-18858 Sources used: SUSE Linux Enterprise Server for SAP 15 (src): libsolv-0.7.20-3.48.1, libzypp-17.28.8-3.78.1, zypper-1.14.50-3.60.1 SUSE Linux Enterprise Server 15-LTSS (src): libsolv-0.7.20-3.48.1, libzypp-17.28.8-3.78.1, zypper-1.14.50-3.60.1 SUSE Linux Enterprise Installer 15 (src): libsolv-0.7.20-3.48.1, libzypp-17.28.8-3.78.1, zypper-1.14.50-3.60.1 SUSE Linux Enterprise High Performance Computing 15-LTSS (src): libsolv-0.7.20-3.48.1, libzypp-17.28.8-3.78.1, zypper-1.14.50-3.60.1 SUSE Linux Enterprise High Performance Computing 15-ESPOS (src): libsolv-0.7.20-3.48.1, libzypp-17.28.8-3.78.1, zypper-1.14.50-3.60.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1153687 https://bugzilla.suse.com/show_bug.cgi?id=1153687#c28 --- Comment #28 from Swamp Workflow Management <swamp@suse.de> --- SUSE-RU-2021:3781-1: An update that has 31 recommended fixes and contains one feature can now be installed. Category: recommended (moderate) Bug References: 1153687,1182372,1183268,1183589,1184326,1184399,1184997,1185325,1186447,1186503,1186602,1187224,1187425,1187466,1187738,1187760,1188156,1188435,1189031,1190059,1190199,1190356,1190465,1190712,1190815,1191286,1191324,1191370,1191609,1192337,1192436 CVE References: JIRA References: SLE-18858 Sources used: SUSE Linux Enterprise Server for SAP 15-SP1 (src): libsolv-0.7.20-4.3.1, libzypp-17.28.8-3.61.1, zypper-1.14.50-3.46.1 SUSE Linux Enterprise Server 15-SP1-LTSS (src): libsolv-0.7.20-4.3.1, libzypp-17.28.8-3.61.1, zypper-1.14.50-3.46.1 SUSE Linux Enterprise Server 15-SP1-BCL (src): libsolv-0.7.20-4.3.1, libzypp-17.28.8-3.61.1, zypper-1.14.50-3.46.1 SUSE Linux Enterprise Installer 15-SP1 (src): libsolv-0.7.20-4.3.1, libzypp-17.28.8-3.61.1 SUSE Linux Enterprise High Performance Computing 15-SP1-LTSS (src): libsolv-0.7.20-4.3.1, libzypp-17.28.8-3.61.1, zypper-1.14.50-3.46.1 SUSE Linux Enterprise High Performance Computing 15-SP1-ESPOS (src): libsolv-0.7.20-4.3.1, libzypp-17.28.8-3.61.1, zypper-1.14.50-3.46.1 SUSE Enterprise Storage 6 (src): libsolv-0.7.20-4.3.1, libzypp-17.28.8-3.61.1, zypper-1.14.50-3.46.1 SUSE CaaS Platform 4.0 (src): libsolv-0.7.20-4.3.1, libzypp-17.28.8-3.61.1, zypper-1.14.50-3.46.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination. -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com