[Bug 643618] New: When a repo is ticked "disabled, refresh", it still want to refresh.
https://bugzilla.novell.com/show_bug.cgi?id=643618 https://bugzilla.novell.com/show_bug.cgi?id=643618#c0 Summary: When a repo is ticked "disabled, refresh", it still want to refresh. Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: carlos.e.r@opensuse.org QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=392901) --> (http://bugzilla.novell.com/attachment.cgi?id=392901) yast logs covering the incident. RE: When a repo is ticked "disabled, refresh", it still want to refresh. Reporting on the suggestion of Andreas Jaeger, that this must be a bug. Following Bug 643361 “One of the official repos has been migrated, breaking installation process”, we made clear that when a repository (in this case, the sources repo of 11.2 is "disabled, refresh", even though it is disabled it does indeed refresh. Several people were hit by this, ie, it is a confirmed behaviour. This was noticed because the default installation of 11.2 leaves the sources repo in that state; when the repo was mistakenly migrated this weekend in the servers, it broke the process of package kit, yast, you, and zypper, for many users of 11.2 that had left that default setting. I will attach yast logs (old entries removed to save 5 MB). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=643618 https://bugzilla.novell.com/show_bug.cgi?id=643618#c1 Jean Cayron <jean.cayron@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jean.cayron@gmail.com --- Comment #1 from Jean Cayron <jean.cayron@gmail.com> 2010-10-05 05:05:31 UTC --- Carlos, this bug occurs with kupdate-applet with module PackageKit isn't it? Not libzypp. What log should we send? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=643618 https://bugzilla.novell.com/show_bug.cgi?id=643618#c2 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|libzypp |YaST2 AssignedTo|zypp-maintainers@forge.prov |lslezak@novell.com |o.novell.com | QAContact|qa@suse.de |jsrain@novell.com --- Comment #2 from Michael Andres <ma@novell.com> 2010-10-05 10:12:32 CEST ---
From the log: 2010-10-02 22:38:20 <1> Telcontar(11241) [liby2] genericfrontend.cc(main):668 Launched YaST2 component 'y2base' 'repositories' 'gtk' .. It looks like openSUSE-11.2-Source is actually disabled:
- alias : openSUSE-11.2-Source - name : openSUSE-11.2-Source - enabled : 0 - autorefresh : 0 - url : http://download.opensuse.org/source/11.2/repo/oss/ but nevertheless refreshed: 2010-10-02 22:38:34 <1> Telcontar(11241) [Pkg] Source_Download.cc(SourceRefreshHelper):416 Refreshing metadata 'openSUSE-11.2-Source' @Ladislav: To me ti looks like this is a problem in either clients/repositories.ycp or in the pkg bindings. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=643618 https://bugzilla.novell.com/show_bug.cgi?id=643618#c Ladislav Slezak <lslezak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=643618 https://bugzilla.novell.com/show_bug.cgi?id=643618#c3 Andreas Jaeger <aj@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aj@novell.com --- Comment #3 from Andreas Jaeger <aj@novell.com> 2010-10-05 12:18:03 UTC --- Michael, would this address PackageKit as well? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=643618 https://bugzilla.novell.com/show_bug.cgi?id=643618#c4 --- Comment #4 from Carlos Robinson <carlos.e.r@opensuse.org> 2010-10-05 14:49:06 UTC --- (In reply to comment #1)
Carlos, this bug occurs with kupdate-applet with module PackageKit isn't it? Not libzypp. What log should we send?
I use gnome, so no kupdate applet here, the gnome equivalent. Then I used Yast. (In reply to comment #2)
From the log: 2010-10-02 22:38:20 <1> Telcontar(11241)
This may be after the issue.
[liby2] genericfrontend.cc(main):668 Launched YaST2 component 'y2base' 'repositories' 'gtk' ... It looks like openSUSE-11.2-Source is actually disabled: -------------------------------------- - alias : openSUSE-11.2-Source - name : openSUSE-11.2-Source - enabled : 0 - autorefresh : 0 - url : http://download.opensuse.org/source/11.2/repo/oss/
but nevertheless refreshed:
In any case, today it is: # | Alias | Name | Enabled | Refresh ---+------------------------+-----------------------+---------+-------- 10 | openSUSE-11.2-Source_1 | openSUSE-11.2-Source | No | Yes Let me see, this problem started on Friday, that is, 10-01. I'll go back in the logs. [...] It's weird... System was upgraded to 11.2 on 2010-09-21 12:24. The first y2log entry I keep is: 2010-09-21 13:01:35 - name : openSUSE-11.2-Source - enabled : 0 - autorefresh : 1 - url : http://download.opensuse.org/source/distribution/11.2/repo/oss/ It changes 15 minutes later to: 2010-09-21 13:16:13 - alias : repo-source - enabled : 1 - autorefresh : 1 - url : http://download.opensuse.org/source/distribution/11.2/repo/oss/ I don't know why I enabled it :-? Here it is disabled. 2010-10-01 12:34:49 - same as above 2010-10-01 12:35:12 - changes to: - name : openSUSE-11.2-Source - enabled : 0 - autorefresh : 0 - url : http://download.opensuse.org/source/distribution/11.2/repo/oss/ Change repo url here. 2010-10-01 12:36:46 - enabled : 0 - autorefresh : 0 - url : http://download.opensuse.org/source/11.2/repo/oss/ Change back repo url here. 2010-10-02 22:45:14 - name : openSUSE-11.2-Source - enabled : 0 - autorefresh : 1 - url : http://download.opensuse.org/source/distribution/11.2/repo/oss/ And that is the current state in this machine. I should have taken notes of everything I did, I'm a bit confused now about what I did and when and why. I remember I did some manual refreshes to see if the repo url was correct or not. I can look on the laptop, or another partition that has a fresh install. Both currently have "no, no". It maybe that, if a repo is configured, but disabled, the system checks it, although it doesn't really download all the metadata :-? Jean Cayron: can you also send your logs? Perhaps they are clearer than mine. Change to a temporary directory (as root in a terminal), and run: save_y2logs archivename.tgz (I then expanded the archive to remove old files, because it was too big to upload, bugzilla has a limit; then recompressed as tar.bz2) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=643618 https://bugzilla.novell.com/show_bug.cgi?id=643618#c5 --- Comment #5 from Jean Cayron <jean.cayron@gmail.com> 2010-10-06 04:55:52 UTC --- Which logs especially? Can you point out the file place? I've already asked for /var/log/PackageKit -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=643618 https://bugzilla.novell.com/show_bug.cgi?id=643618#c6 --- Comment #6 from Carlos Robinson <carlos.e.r@opensuse.org> 2010-10-06 11:14:04 UTC --- (In reply to comment #5)
Which logs especially? Can you point out the file place?
save_y2logs archivename.tgz -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=643618 https://bugzilla.novell.com/show_bug.cgi?id=643618#c7 --- Comment #7 from Jean Cayron <jean.cayron@gmail.com> 2010-10-08 08:51:59 UTC --- Created an attachment (id=393738) --> (http://bugzilla.novell.com/attachment.cgi?id=393738) Yast logs from another computer with the same issue Note that on that computer, with openSUSE 11.2, there were at the beginning two repositories failing: a one from the OBS (KDE something) and the official "src". I first removed the KDE one but then the problem wasn't solved, it still gave an error with the "src" repo, even if not active. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=643618 https://bugzilla.novell.com/show_bug.cgi?id=643618#c8 Ladislav Slezak <lslezak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |carlos.e.r@opensuse.org --- Comment #8 from Ladislav Slezak <lslezak@novell.com> 2010-11-01 18:05:33 UTC --- I have checked the logs and I have found out this: The first attached log shows that the refresh was started manually from repositories module by "Refresh Now" button (it has been renamed to "Refresh Selected" so it's clear that it refreshes the selected repository in the table.) Pressing this button refreshes the selected repository regardless the autorefresh flag - it's useful for rarely updated repositories (or for repositories which you manage). If you have a repo with disabled autorefresh but you know that it has been updated you can force refresh simply by pressing the button without need to enable autorefresh and disabling back after refresh. So this is not a bug. The second log: 2010-10-04 22:04:22 <5> linux-qwa0(6928) [zypp] Exception.cc(log):133 MediaAria2c.cc(getFileCopy):503 THROW: MediaAria2c.cc( getFileCopy):503: Fichier '/repodata/repomd.xml' introuvable dans sur le media 'http://download.opensuse.org/repositories/KDE:/ KDE4:/Community/openSUSE_11.2/' But few lines above there is 2010-10-04 22:04:21 <1> linux-qwa0(6928) [zypp] RepoFileReader.cc(repositories_in_file):81 - alias : download.opensuse.or g-Community 2010-10-04 22:04:21 <1> linux-qwa0(6928) [zypp] RepoFileReader.cc(repositories_in_file):81 - name : openSUSE BuildServic e - KDE:KDE4:Community 2010-10-04 22:04:21 <1> linux-qwa0(6928) [zypp] RepoFileReader.cc(repositories_in_file):81 - enabled : 1 2010-10-04 22:04:21 <1> linux-qwa0(6928) [zypp] RepoFileReader.cc(repositories_in_file):81 - autorefresh : 1 2010-10-04 22:04:21 <1> linux-qwa0(6928) [zypp] RepoFileReader.cc(repositories_in_file):81 - url : http://download.open suse.org/repositories/KDE:/KDE4:/Community/openSUSE_11.2/ So the autorefresh was enabled. Moreover the refresh was called from 2010-10-04 22:04:21 <1> linux-qwa0(6928) [Pkg] OnlineUpdateCallbacks.ycp:535 Pkg Builtin called: SourceRefreshNow and the code there is: if (source_id != nil && source_autorefresh == true && source_enabled == true) { y2milestone("Refreshing source: %1", source_id); Pkg::SourceRefreshNow(source_id); } so it refreshes only the enabled repositories. So here my questions: How can I reproduce the bug (exact steps)? Could you reproduce it in 11.3 (or factory/11.4-pre)? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=643618 https://bugzilla.novell.com/show_bug.cgi?id=643618#c9 Jean Cayron <jean.cayron@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|carlos.e.r@opensuse.org | --- Comment #9 from Jean Cayron <jean.cayron@gmail.com> 2010-11-02 11:42:54 UTC --- I haven't tried to reproduce it in 11.3. The way I think you should reproduce it. It happened with a network repo but I think it might easier to reproduce it with a local repo, as you wouldn't disable an official repo for just testing a bug. 1. Add a valid repo (e.g. local) and choice "refresh" but not "active" 2. Make that repo unvalid (e.g. remove your local folder) 3. Verify the update with the update applet (in KDE or Gnome) or with the Yast Online Update module. It will give you an error with that repo, even if not active. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=643618 https://bugzilla.novell.com/show_bug.cgi?id=643618#c10 Ladislav Slezak <lslezak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |WORKSFORME Target Milestone|--- |Future 11.3 --- Comment #10 from Ladislav Slezak <lslezak@novell.com> 2010-11-03 15:48:50 UTC --- I could not reproduce it in 11.3: - unpacked 11.3 DVD ISO content into a local dir "11.3" - added a new (local dir) repo in yast - disabled the repo (autorefresh left on) - renamed the directory to "11.3x" - starting YaST online update was OK, also kupdate applet checked for the available patches without any problem. (To be sure I have manually tested refresh of the invalid repository via Refresh -> Refresh Selected in YaST repository manager to verify that the test was done properly - the refresh failed as expected.) Resolving as WORKSFORME. Feel free to reopen the bug if you can reproduce it in 11.3 (with step by step description). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com