#6940 Bugs not re-assigned after package transfer
Closed: Fixed by pingou. Opened by till.

  • Describe what you need us to do:
    Bugs need to be re-assigned when the package owner changes. I gave aircrack-ng away but the bugs are still assigned to me:
    https://bugzilla.redhat.com/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&component=aircrack-ng&list_id=8819526&product=Fedora&query_format=advanced

It also affects other packages I orphaned, for example wyrd.


There definitely used to be some script doing this, but I am not sure what it is.

We will need to figure out what it is and what happened to it.

Metadata Update from @kevin:
- Issue priority set to: Waiting on Assignee (was: Needs Review)

There's a user "fedora-admin-xmlrpc" which used to be used to make those changes. For example, see https://bugzilla.redhat.com/show_bug.cgi?id=1467641#c6

At least that would give a string to search for.

Edit: It's present in ansible in two places. One is a comment in roles/fas_server/tasks/main.yml and the other is in roles/fas_server/templates/export-bugzilla.cfg.j2. But that just points to the export_bugzilla script, which I'm pretty sure has never been responsible for this. My guess is that it was part of pkgdb somehow.

Edit2: Confirmed, this was functionality internal to pkgdb2 which ran when the owner was changed. So there's no easy script to resurrect, though you can lift the set_bugzilla_owner function: https://github.com/fedora-infra/pkgdb2/blob/master/pkgdb2/lib/utils.py#L145

This is the current script that is used to sync bugzilla info afaik:
https://infrastructure.fedoraproject.org/cgit/ansible.git/tree/roles/distgit/pagure/templates/pagure-sync-bugzilla.py.j2

ok, so we need to expand the script to handle this then. Any takers?

Additionall, it would be nice if we could close retired packages to new bugs.

Fixed in https://pagure.io/Fedora-Infra/distgit-bugzilla-sync/pull-request/27

Metadata Update from @pingou:
- Issue close_status updated to: Upstream
- Issue status updated to: Closed (was: Open)

Additionall, it would be nice if we could close retired packages to new bugs.

Let's track this elsewhere, I could see this done in the releng script that is blocking the retired packages from koji.

Or we do it in distgit-bugzilla-sync and then everytime it runs, it'll check

Commit b1bb0c02 fixes this issue

Additionall, it would be nice if we could close retired packages to new bugs.

Let's track this elsewhere, I could see this done in the releng script that is blocking the retired packages from koji.
Or we do it in distgit-bugzilla-sync and then everytime it runs, it'll check

Implemented in https://pagure.io/Fedora-Infra/distgit-bugzilla-sync/pull-request/31

Metadata
Related Pull Requests