Bug 2163841 - F38FailsToInstall: linux-system-roles
Summary: F38FailsToInstall: linux-system-roles
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: linux-system-roles
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rich Megginson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
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:
Environment:
Last Closed: 2023-01-24 22:00:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
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
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

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 (https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/), 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: https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/#updating-inter-dependent-packages

Thanks!

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.  https://linux-system-roles.github.io/documentation/role-requirements.html

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 https://gitlab.com/testing-farm/gluetool-modules/-/merge_requests/279

So the rhc team put the test requirements into meta/collection-requirements.yml so that CI testing would work https://github.com/linux-system-roles/rhc/blob/main/meta/collection-requirements.yml

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 https://src.fedoraproject.org/rpms/linux-system-roles/blob/rawhide/f/linux-system-roles.spec#_513 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: https://src.fedoraproject.org/rpms/linux-system-roles/blob/rawhide/f/linux-system-roles.spec#_500

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?  https://src.fedoraproject.org/rpms/linux-system-roles/pull-request/147#comment-128016

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? 
> https://src.fedoraproject.org/rpms/linux-system-roles/pull-request/
> 147#comment-128016

Indeed

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

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.