#10266 Toddlers failed to retire package in PDC
Closed: Fixed 2 years ago by asaleh. Opened 2 years ago by mizdebsk.

Toddler pdc_retired_packages failed to retire package jaxb-fi in rawhide with the following error:

[ERROR toddlers.plugins.pdc_retired_packages] "rpms/jaxb-fi" was not found in PDC

However the package is present in PDC. It has active rawhide branch, while the branch should be inactive.

Dist-git commit retiring the package: https://src.fedoraproject.org/rpms/jaxb-fi/c/dc21bd9a717cf316c043283a1ce6931a751d20ad

Corresponding AMQP message: https://apps.fedoraproject.org/datagrepper/id?id=2021-6a5c4302-8488-42bc-853b-874a4497e11a&is_raw=true&size=extra-large

Component branches in PDC: https://pdc.fedoraproject.org/rest_api/v1/component-branch-slas/?global_component=jaxb-fi

Related entries from toddlers log (pod toddlers-133-vq5g7):

2021-10-04 22:12:42,589 - [INFO fedora_messaging.twisted.protocol] Consuming message from topic org.fedoraproject.prod.git.receive (message id 6a5c4302-8488-42bc-853b-874a4497e11a)
2021-10-04 22:12:42,590 - [INFO toddlers.runner] Toddlers processing: 6a5c4302-8488-42bc-853b-874a4497e11a -- org.fedoraproject.prod.git.receive
2021-10-04 22:12:42,591 - [DEBUG toddlers.runner] Running toddler: check_email_overrides
2021-10-04 22:12:42,591 - [DEBUG toddlers.runner] Running toddler: clean_retired_packages
2021-10-04 22:12:42,592 - [DEBUG toddlers.runner] Running toddler: distgit_bugzilla_sync
2021-10-04 22:12:42,593 - [DEBUG toddlers.runner] Running toddler: flag_ci_pr
2021-10-04 22:12:42,593 - [DEBUG toddlers.runner] Running toddler: flag_commit_build
2021-10-04 22:12:42,593 - [DEBUG toddlers.runner] Running toddler: packager_bugzilla_sync
2021-10-04 22:12:42,594 - [DEBUG toddlers.runner] Running toddler: packagers_without_bugzilla
2021-10-04 22:12:42,594 - [DEBUG toddlers.runner] Running toddler: pdc_import_compose
2021-10-04 22:12:42,595 - [DEBUG toddlers.runner] Running toddler: pdc_modules
2021-10-04 22:12:42,595 - [DEBUG toddlers.runner] Running toddler: pdc_retired_packages
2021-10-04 22:12:42,596 - [INFO toddlers.runner] Toddler 'pdc_retired_packages' accepted to process message id: 6a5c4302-8488-42bc-853b-874a4497e11a
/usr/lib/python3.9/site-packages/urllib3/connectionpool.py:997: InsecureRequestWarning: Unverified HTTPS request is being made to host 'pdc.fedoraproject.org'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  warnings.warn(
2021-10-04 22:12:42,721 - [ERROR toddlers.plugins.pdc_retired_packages] "rpms/jaxb-fi" was not found in PDC
2021-10-04 22:12:42,726 - [DEBUG toddlers.runner] Running toddler: pdc_update_critpath
2021-10-04 22:12:42,728 - [INFO fedora_messaging.twisted.protocol] Successfully consumed message from topic org.fedoraproject.prod.git.receive (message id 6a5c4302-8488-42bc-853b-874a4497e11a)

Metadata Update from @kevin:
- Issue priority set to: Waiting on Assignee (was: Needs Review)
- Issue tagged with: medium-gain, medium-trouble, ops

2 years ago

So it seems that there is an issue with the namespace. From the logs I can see that toddler is using 'rpms' and that fails there is no namespace RPMS in PDC it's RPM[2][3]

We can fix it in toddlers to use the singular form of any namespace or fix the place that emits the message.

[1] - https://pagure.io/fork/jlanda/fedora-infra/toddlers/blob/master/f/toddlers/plugins/pdc_retired_packages.py#_120

[2] - https://pdc.fedoraproject.org/rest_api/v1/component-branches/?type=rpm&global_component=jaxb-fi&name=rawhide

[3] https://pdc.fedoraproject.org/rest_api/v1/component-branches/?type=rpms&global_component=jaxb-fi&name=rawhide

Hmm after a better look, the toddlers are already translating src.fp.o namespaces to PDC namespaces.

I think it's because the push was to branch main, not to rawhide. The toddler checks whether main branch exists in PDC. And indeed, it does not exist.

Ok, patch has been applied in toddlers deployment, if the issue reappears, please reopen :)

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

2 years ago

I am not sure if this counts as the issue "reappearing", but it looks like the originally affected packages have still not been retired properly?

@decathorpe so I forgot to fix them, but meanwhile, some of them are unretired. I will recheck and fix leftovers.

Login to comment on this ticket.

Metadata
Boards 1
ops Status: Backlog