Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 2163841 - F38FailsToInstall: linux-system-roles
Summary: F38FailsToInstall: linux-system-roles
Alias: None
Product: Fedora
Classification: Fedora
Component: linux-system-roles
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Rich Megginson
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: F38FailsToInstall
TreeView+ depends on / blocked
Reported: 2023-01-24 14:01 UTC by Fedora Fails To Install
Modified: 2023-01-24 22:00 UTC (History)
11 users (show)

Fixed In Version: linux-system-roles-1.33.9-1.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2023-01-24 22:00:08 UTC
Type: ---

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Fedora Package Sources linux-system-roles pull-request 147 0 None None None 2023-01-24 18:29:22 UTC

Description Fedora Fails To Install 2023-01-24 14:01:40 UTC

Please note that this comment was generated automatically by
If you feel that this output has mistakes, please open an issue at

Your package (linux-system-roles) Fails To Install in Fedora 38:

can't install linux-system-roles:
  - nothing provides ansible-collection(community.postgresql) needed by linux-system-roles-1.33.3-2.fc38.noarch
If you know about this problem and are planning on fixing it, please acknowledge so by setting the bug status to ASSIGNED. If you don't have time to maintain this package, consider orphaning it, so maintainers of dependent packages realize the problem.

If you don't react accordingly to the policy for FTBFS/FTI bugs (, your package may be orphaned in 8+ weeks.

P.S. The data was generated solely from koji buildroot, so it might be newer than the latest compose or the content on mirrors. To reproduce, use the koji/local repo only, e.g. in mock:

    $ mock -r fedora-38-x86_64 --config-opts mirrored=False install linux-system-roles

P.P.S. If this bug has been reported in the middle of upgrading multiple dependent packages, please consider using side tags:


Comment 1 Maxwell G 2023-01-24 17:31:22 UTC
You'll need to package ansible-collection-community-postgresql.

Comment 2 Rich Megginson 2023-01-24 17:49:16 UTC
(In reply to Maxwell G from comment #1)
> You'll need to package ansible-collection-community-postgresql.

Well, it's stupider than that.

The rhc role requires mysql and postgresql for *testing*. not at *runtime* (it installs a candlepin server for testing).  We use the (non-standard) meta/collection-requirements.yml for *runtime* requirements, and tests/collection-requirements.yml for *test-time* requirements.

Unfortunately, the CI system we are using currently only works with meta/collection-requirements.yml because the functionality to use tests/collection-requirements.yml has not yet been deployed to production

So the rhc team put the test requirements into meta/collection-requirements.yml so that CI testing would work

You might at this point say "Well, rpmbuild doesn't know or care about either meta/collection-requirements.yml or tests/collection-requirements.yml" and you would be right.  As part of the phase of our spec file which builds the collection we construct the galaxy.yml dependencies from the individual role meta/collection-requirements.yml and I'm guessing rpmbuild is picking up on these dependencies and translating them into ansible-collection(xxx) requirements.

The goal is to remove mysql and postgresql from rhc meta/collection-requirements.yml ASAP.  However, in the meantime

* do this on all platforms, not just rhel:

This means rpmbuild would not be able to automatically add ansible-collection(xxx) requirements

* somehow defeat the rpmbuild auto ansible-collection(xxx) requirements generator

Comment 3 Maxwell G 2023-01-24 18:14:01 UTC
Can you 'sed -E '/community\.(postgresql|mysql)/d'` the final galaxy.yml?

Comment 4 Rich Megginson 2023-01-24 18:15:39 UTC
(In reply to Maxwell G from comment #3)
> Can you 'sed -E '/community\.(postgresql|mysql)/d'` the final galaxy.yml?

Good idea!  Let me see.

Comment 5 Rich Megginson 2023-01-24 19:02:13 UTC
Can I assume that if `rpm-install-test` is SUCCESS, that means the bug is fixed?

Comment 6 Maxwell G 2023-01-24 19:15:11 UTC
(In reply to Rich Megginson from comment #5)
> Can I assume that if `rpm-install-test` is SUCCESS, that means the bug is
> fixed? 
> 147#comment-128016


Comment 7 Fedora Update System 2023-01-24 21:58:41 UTC
FEDORA-2023-92b037257b has been submitted as an update to Fedora 38.

Comment 8 Fedora Update System 2023-01-24 22:00:08 UTC
FEDORA-2023-92b037257b has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.