bug pattern for bug 996916 not specific enough

Bug #1624836 reported by Marius Gedminas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apport
Fix Released
High
Brian Murray

Bug Description

I wanted to file https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-
upgrader/+bug/1624835https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1624835 so I ran ubuntu-bug and selected 'ubuntu-release-upgrader'.

I expected the usual workflow: a magic Launchpad link that makes me wait and wait and then eventually lets me file a new bug, which has a bunch of relevant information attached to it.

ubuntu-bug decided instead that my problem was already known, and that I should add additional information to this unrelated old bug from 2012 https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/996916

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: apport 2.20.1-0ubuntu2.1
Uname: Linux 2.6.32-042stab116.2 x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Sun Sep 18 13:10:10 2016
JournalErrors:
 Error: command ['journalctl', '-b', '--priority=warning', '--lines=1000'] failed with exit code 1: Hint: You are currently not seeing messages from other users and the system.
       Users in the 'systemd-journal' group can see all messages. Pass -q to
       turn off this notice.
 No journal files were opened due to insufficient permissions.
PackageArchitecture: all
SourcePackage: apport
UpgradeStatus: Upgraded to xenial on 2016-09-18 (0 days ago)

Revision history for this message
Marius Gedminas (mgedmin) wrote :
description: updated
Revision history for this message
Brian Murray (brian-murray) wrote :

apport checks for a bug pattern before filing a bug report, in the case of the bug which you were reporting it matched the bug pattern for bug 996916. That pattern looks like:

    <pattern url="https://launchpad.net/bugs/996916">
        <re key="Package">^(ubuntu-release-upgrader-core |update-manager)</re>
        <re key="VarLogDistupgradeMainlog">blacklist expr '\^postgresql-.*\[0-9\]\\.\[0-9\].*' matches</re>
    </pattern>

From the bugs I'd seen before most of them failed to calculate the upgrade, however in your log file (Mainlog.txt) the message appears during the obsolete package check.

2016-09-18 12:53:10,503 DEBUG Start checking for obsolete pkgs
2016-09-18 12:53:18,126 DEBUG blacklist expr 'update-manager-core' matches 'update-manager-core'
2016-09-18 12:53:18,127 DEBUG skipping 'update-manager-core' (in removalBlacklist)
2016-09-18 12:53:18,127 DEBUG 'update-manager-core' scheduled for remove but not safe to remove, skipping
2016-09-18 12:53:23,737 DEBUG blacklist expr 'update-manager-core' matches 'update-manager-core'
2016-09-18 12:53:23,737 DEBUG package 'python3-distupgrade' has unwanted removals, skipping
2016-09-18 12:53:25,652 DEBUG 'python3-distupgrade' scheduled for remove but not safe to remove, skipping
2016-09-18 12:53:25,980 DEBUG blacklist expr '^postgresql-.*[0-9]\.[0-9].*' matches 'postgresql-9.3'
2016-09-18 12:53:25,980 DEBUG skipping 'postgresql-9.3' (in removalBlacklist)
2016-09-18 12:53:25,980 DEBUG 'postgresql-9.3' scheduled for remove but not safe to remove, skipping

The bug pattern should be modified so that it only matches bugs where the message appears before upgrading.

Changed in apport (Ubuntu):
status: New → Triaged
importance: Undecided → High
affects: apport (Ubuntu) → apport
summary: - ubuntu-bug refuses to file upgrade bug, thinks it's a dupe from 2012
+ bug pattern for bug 996916 not specific enough
Changed in apport:
assignee: nobody → Brian Murray (brian-murray)
status: Triaged → In Progress
Revision history for this message
Brian Murray (brian-murray) wrote :

The following change will fix the issue.

     <pattern url="https://launchpad.net/bugs/996916">
         <re key="Package">^(ubuntu-release-upgrader-core |update-manager)</re>
         <re key="VarLogDistupgradeMainlog">blacklist expr '\^postgresql-.*\[0-9\]\\.\[0-9\].*' matches</re>
+ <re key="VarLogDistupgradeMainlog">The package 'postgresql-.*' is marked for removal but it's in the removal blacklist</re>
     </pattern>

Changed in apport:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.