Re: module package exclusion behavior on EL8

2019-10-11 Thread Stephen John Smoogen
On Thu, 10 Oct 2019 at 19:28, Orion Poplawski  wrote:
>
> I continue to run into strange (at least to me) issues with modules on
> EL8.  RHEL8 ships a 'rhn-tools' module that ships only the "koan"
> package from the cobbler srpm [1].  When this module is enabled, I
> cannot install cobbler from my copr - dnf reports that 'cobbler' is
> excluded.
>
> Can someone fill me in more on this.? Is this expected?  I don't see
> anything in the module file (assuming I have the right module file) that
> specifically calls out cobbler for exclusion (such as a filter entry) -
> so is it just automatically creating an exclusion for all unshipped
> packages?
>

This is by design. I believe it is set up in the modules.yaml file in
the repository but it may also be helped/done with some rpm headers.

I think it is meant to protect you from say a perl-foo-1.2.3 which was
built for perl-5.24 when you have perl-5.26. It may also allow the
module owner to say 'yes I know you could install cobbler-N but I
don't want to support that if you are using my thing'. Basically a
side point of 'yes I built a cobbler to make this thing, but I odn't
want to ship a cobbler.. if they want it they can make their own
module with it.'

I leave it as an exercise to the reader when someone doesn't realize
this, builds the kernel, glibc, bash, etc for their module but doesn't
want to ship that.. and puts it in the filter


-- 
Stephen J Smoogen.
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: module package exclusion behavior on EL8

2019-10-11 Thread Miroslav Suchý

Dne 11. 10. 19 v 1:27 Orion Poplawski napsal(a):
I continue to run into strange (at least to me) issues with modules on EL8.  RHEL8 ships a 'rhn-tools' module that ships 
only the "koan" package from the cobbler srpm [1].  When this module is enabled, I cannot install cobbler from my copr - 
dnf reports that 'cobbler' is excluded.


Can someone fill me in more on this.? Is this expected?  I don't see anything in the module file (assuming I have the 
right module file) that specifically calls out cobbler for exclusion (such as a filter entry) - so is it just 
automatically creating an exclusion for all unshipped packages?


There is very little feedback from dnf - the cobbler package simply disappears:


When package with name FOO exists in a module, then package FOO from normal 
repos is masked. This is by design.
I learn it the hard way when we have been asked to implement module_hotfixes in 
Copr. See
https://bugzilla.redhat.com/show_bug.cgi?id=1758470
https://dnf.readthedocs.io/en/latest/modularity.html#package-filtering

--
Miroslav Suchy, RHCA
Red Hat, Associate Manager ABRT/Copr, #brno, #fedora-buildsys
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


module package exclusion behavior on EL8

2019-10-10 Thread Orion Poplawski
I continue to run into strange (at least to me) issues with modules on 
EL8.  RHEL8 ships a 'rhn-tools' module that ships only the "koan" 
package from the cobbler srpm [1].  When this module is enabled, I 
cannot install cobbler from my copr - dnf reports that 'cobbler' is 
excluded.


Can someone fill me in more on this.? Is this expected?  I don't see 
anything in the module file (assuming I have the right module file) that 
specifically calls out cobbler for exclusion (such as a filter entry) - 
so is it just automatically creating an exclusion for all unshipped 
packages?


There is very little feedback from dnf - the cobbler package simply 
disappears:


# dnf list cobbler
Available Packages
cobbler.noarch  3.0.1-2.el8 copr:copr.fedorainfracloud.org:orion:cobbler
cobbler.src 3.0.1-2.el8 copr:copr.fedorainfracloud.org:orion:cobbler

# dnf module enable rhn-tools

# dnf list cobbler
Available Packages
cobbler.src 3.0.1-2.el8 copr:copr.fedorainfracloud.org:orion:cobbler

# dnf install cobbler
No match for argument: cobbler

What then does this imply for us being able to provide a cobbler module 
(or just package) for EPEL?



1 - 
https://git.centos.org/modules/rhn-tools/blob/c8-stream-1.0/f/rhn-tools.yaml



--
Orion Poplawski
Manager of NWRA Technical Systems  720-772-5637
NWRA, Boulder/CoRA Office FAX: 303-415-9702
3380 Mitchell Lane   or...@nwra.com
Boulder, CO 80301 https://www.nwra.com/



smime.p7s
Description: S/MIME Cryptographic Signature
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org