Re: New release of Mock (fixes and subscription-manager support)

2019-09-10 Thread Erinn Looney-Triggs
That's how I got it to work on Fedora. So yes, it appears to.

On 9/10/19 7:13 AM, Avram Lubkin wrote:
> On Tue, Aug 27, 2019 at 10:20 AM Miroslav Suchý  > wrote:
>
> 2) Mock now supports subscription-manager, which allows you to
> build packages for RHEL with cost-free developer license.
> No need to wait for CentOS 8.
>
>
> Does this work when using Fedora as the base system?
> subscription-manager is available in the Fedora repos and a Fedora
> system can be registered to RHN, but that doesn't seem sufficient to
> access the repos through mock.
>
>
> ___
> 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
___
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: New release of Mock (fixes and subscription-manager support)

2019-09-10 Thread Pavel Raiskup
On Tuesday, September 10, 2019 3:13:01 PM CEST Avram Lubkin wrote:
> On Tue, Aug 27, 2019 at 10:20 AM Miroslav Suchý  wrote:
> 
> > 2) Mock now supports subscription-manager, which allows you to build
> > packages for RHEL with cost-free developer license.
> > No need to wait for CentOS 8.
> >
> 
> Does this work when using Fedora as the base system? subscription-manager
> is available in the Fedora repos and a Fedora system can be registered to
> RHN, but that doesn't seem sufficient to access the repos through mock.

Yes, worked for me on F30:
https://github.com/rpm-software-management/mock/wiki/Feature-rhelchroots

If there's some problem, please submit an issue.

Pavel


___
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


[EPEL-devel] Re: New release of Mock (fixes and subscription-manager support)

2019-09-10 Thread Miroslav Suchý
Dne 10. 09. 19 v 15:13 Avram Lubkin napsal(a):
> Does this work when using Fedora as the base system? 

Yes, it works.

> subscription-manager is available in the Fedora repos and a Fedora
> system can be registered to RHN, but that doesn't seem sufficient to access 
> the repos through mock.

Can you elaborate on "but that doesn't seem sufficient to access". What does 
not work for you?
Do you have subscribed to RHN and do you have entitlement?


-- 
Miroslav Suchy, RHCA
Red Hat, Associate Manager ABRT/Copr, #brno, #fedora-buildsys
___
epel-devel mailing list -- epel-devel@lists.fedoraproject.org
To unsubscribe send an email to epel-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/epel-devel@lists.fedoraproject.org


Re: New release of Mock (fixes and subscription-manager support)

2019-09-10 Thread Avram Lubkin
On Tue, Aug 27, 2019 at 10:20 AM Miroslav Suchý  wrote:

> 2) Mock now supports subscription-manager, which allows you to build
> packages for RHEL with cost-free developer license.
> No need to wait for CentOS 8.
>

Does this work when using Fedora as the base system? subscription-manager
is available in the Fedora repos and a Fedora system can be registered to
RHN, but that doesn't seem sufficient to access the repos through mock.
___
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


[EPEL-devel] Re: New release of Mock (fixes and subscription-manager support)

2019-09-10 Thread Avram Lubkin
On Tue, Aug 27, 2019 at 10:20 AM Miroslav Suchý  wrote:

> 2) Mock now supports subscription-manager, which allows you to build
> packages for RHEL with cost-free developer license.
> No need to wait for CentOS 8.
>

Does this work when using Fedora as the base system? subscription-manager
is available in the Fedora repos and a Fedora system can be registered to
RHN, but that doesn't seem sufficient to access the repos through mock.
___
epel-devel mailing list -- epel-devel@lists.fedoraproject.org
To unsubscribe send an email to epel-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/epel-devel@lists.fedoraproject.org


[EPEL-devel] Re: New release of Mock (fixes and subscription-manager support)

2019-08-29 Thread Miroslav Suchý
Dne 29. 08. 19 v 5:50 Orion Poplawski napsal(a):
> Well, building much of anything new in Fedora land on EL-7 seems pretty much 
> impossible due to rpm changes so the useful
> lifetime of EL-7 for a Fedora and EPEL contributor is already essentially at 
> an end.  Centos 8 can't come fast enough...

If you mean change of payload in F31, then CentOS 8 will not help you because 
rpm there does not support zstd as well.
It is tracked here:
  https://bugzilla.redhat.com/show_bug.cgi?id=1715799

-- 
Miroslav Suchy, RHCA
Red Hat, Associate Manager ABRT/Copr, #brno, #fedora-buildsys
___
epel-devel mailing list -- epel-devel@lists.fedoraproject.org
To unsubscribe send an email to epel-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/epel-devel@lists.fedoraproject.org


[EPEL-devel] Re: New release of Mock (fixes and subscription-manager support)

2019-08-28 Thread Orion Poplawski

On 8/27/19 9:08 AM, Stephen John Smoogen wrote:

On Tue, 27 Aug 2019 at 10:20, Miroslav Suchý  wrote:


Hi,
I released new version of Mock and mock-core-configs. For full release notes 
see:
   https://github.com/rpm-software-management/mock/wiki/Release-Notes-1.4.18
I just submitted packages to Bodhi.

I would like to point two things here:

1) It should fixes all those issues you reported in past days (selinux, 
rprivate, groupadd).
2) Mock now supports subscription-manager, which allows you to build packages 
for RHEL with cost-free developer license.
No need to wait for CentOS 8.

Big thanks to Pavel Raiskup who done those two things.


Note that this drops python2 support. You will need Python36 on any
system using.

Also note that mock will no longer be targeted to build on EL-7
systems sometime next spring (2020). I believe this means that mock
will no longer be supported or built in EPEL-7 as it is probably no
longer built in EPEL-6 these days. You will need to use EL-8 boxes to
build but can target EL-6/EL-7 builds. [I don't know if you can build
EL-5 but I know people need to do so still so I am not sure how to do
that.]


Well, building much of anything new in Fedora land on EL-7 seems pretty 
much impossible due to rpm changes so the useful lifetime of EL-7 for a 
Fedora and EPEL contributor is already essentially at an end.  Centos 8 
can't come fast enough...



--
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/
___
epel-devel mailing list -- epel-devel@lists.fedoraproject.org
To unsubscribe send an email to epel-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/epel-devel@lists.fedoraproject.org


Re: New release of Mock (fixes and subscription-manager support)

2019-08-28 Thread Nico Kadel-Garcia
On Wed, Aug 28, 2019 at 7:02 AM Miroslav Suchý  wrote:
>
> Dne 28. 08. 19 v 4:06 Nico Kadel-Garcia napsal(a):
> > i will point out, from experience with subscription manager, that
> > downloading RPM's from subscription-manager is unacceptably slow
> > inmost build environments. Y
>
> Really? cdn.redhat.com is handled by CDN Akamai. It should be pretty fast.
> Thou, issues happens. I recall one issue from past which was caused by bad 
> routing via L3.
> If Red Hat CDN is slow for you, then please contact Red Hat Support.
> --
> Miroslav Suchy, RHCA
> Red Hat, Associate Manager ABRT/Copr, #brno, #fedora-buildsys

If you'd like laughs, look me up. I used to evaluate and in a few
cases designed hardware for Akamai, including their first bulk arrays.
In fact, I built some of their hardened Red Hat operating systems back
before RHEL and Fedora, and I was later delighted that "mock" used
some chroot tools similar to those I used for building and adapting
operating systems for world deployment. Unless Akamai has changed
quite a lot, and they may have, bulky and relatively low traffic
objects are much less likely to remain cached in the proxes at that
"last mile". And unless Red Hat is paying quite a lot to Akamai, they
may not be getting the highest available tier of service. They
wouldn't normally *need* it. RPM transfers and metadata can usually
stand somewhat slower delivery than the highest volume streaming
channels might provide.

The "mirror the RPM mirrors locally" trick goes back decades. and has
been a mainstay for "mock" performance for me. It's also really,
really useful for cluster servers of Fedora, RHEL, etc. to keep from
choking the external network to death and timing out a lot of yum
updates across a cluster. I even used to link it through "rsnapshot"
to provide date-stamped copies of rawhide, though I've not needed that
in a few years.
___
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: New release of Mock (fixes and subscription-manager support)

2019-08-28 Thread Nico Kadel-Garcia
On Wed, Aug 28, 2019 at 5:54 AM Pavel Raiskup  wrote:
>
> On Wednesday, August 28, 2019 4:06:32 AM CEST Nico Kadel-Garcia wrote:
> > i will point out, from experience with subscription manager, that
> > downloading RPM's from subscription-manager is unacceptably slow
> > inmost build environments. You *will* want to use CentOS 8, or arrange
> > a subscription to build a local mirror with "reposync", for anything
> > like dynamic biulding of RHEL 8 based RPM's. But if it works, it saves
> > me a bunch of work in the short term.
>
> I haven't experienced some unreasonably slow downloads, and my dnf/yum
> caches work fine say by default with mock.
>
> There might be some issue, or some misconfiguration.  Take a look at
> mock's config option config_opts['plugin_conf']['yum_cache_opts']['dir'],
> and consider not --scrub'ing the caches for every build.
>
> Pavel

The problem dates back decades, certainly since RHEL was introduced.
Testing last week with my registered RHEL 8 host, CentOS mirrors wer
at least twice as fast , rather than pulling directly from Red Hat
repositories, unless the company has a local Red Hat Network setup, or
I activate and use a local mirror with reposync. And reposync is far
less than half the speed of an "rsync" against a CentOS mirror. Some
old tools of mine for just such purposes are available at
thttps://github.com/nkadel/nkadel-rsync-scripts. It's not usually that
big a deal when you're updating only a few packages, but when you're
running "mock" you can wind up pulling from the same repos *a lot*, a
local mirror really improves performance. It also reduces duplicated
bandwidth from your local mirrors if you use it for Fedora, CentOS,
and EPEL as well, which can save everyone resources.

Unless you're worried about phase lag between your local mirror and
the upstream repos, which I admit could happen with rawhide, I use it
for all my "mock" builds. That includes builds of "mock" itself, in
particular, whcn I've needed bleeding edge featues for older operating
systems.
___
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: New release of Mock (fixes and subscription-manager support)

2019-08-28 Thread Miroslav Suchý
Dne 28. 08. 19 v 4:06 Nico Kadel-Garcia napsal(a):
> i will point out, from experience with subscription manager, that
> downloading RPM's from subscription-manager is unacceptably slow
> inmost build environments. Y

Really? cdn.redhat.com is handled by CDN Akamai. It should be pretty fast.
Thou, issues happens. I recall one issue from past which was caused by bad 
routing via L3.
If Red Hat CDN is slow for you, then please contact Red Hat Support.
-- 
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


Re: New release of Mock (fixes and subscription-manager support)

2019-08-28 Thread Pavel Raiskup
On Wednesday, August 28, 2019 4:06:32 AM CEST Nico Kadel-Garcia wrote:
> i will point out, from experience with subscription manager, that
> downloading RPM's from subscription-manager is unacceptably slow
> inmost build environments. You *will* want to use CentOS 8, or arrange
> a subscription to build a local mirror with "reposync", for anything
> like dynamic biulding of RHEL 8 based RPM's. But if it works, it saves
> me a bunch of work in the short term.

I haven't experienced some unreasonably slow downloads, and my dnf/yum
caches work fine say by default with mock.

There might be some issue, or some misconfiguration.  Take a look at
mock's config option config_opts['plugin_conf']['yum_cache_opts']['dir'],
and consider not --scrub'ing the caches for every build.

Pavel


___
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: New release of Mock (fixes and subscription-manager support)

2019-08-27 Thread Nico Kadel-Garcia
On Tue, Aug 27, 2019 at 10:20 AM Miroslav Suchý  wrote:
>
> Hi,
> I released new version of Mock and mock-core-configs. For full release notes 
> see:
>   https://github.com/rpm-software-management/mock/wiki/Release-Notes-1.4.18
> I just submitted packages to Bodhi.
>
> I would like to point two things here:
>
> 1) It should fixes all those issues you reported in past days (selinux, 
> rprivate, groupadd).
> 2) Mock now supports subscription-manager, which allows you to build packages 
> for RHEL with cost-free developer license.
> No need to wait for CentOS 8.
>
> Big thanks to Pavel Raiskup who done those two things.

This is *great*, thank you!

i will point out, from experience with subscription manager, that
downloading RPM's from subscription-manager is unacceptably slow
inmost build environments. You *will* want to use CentOS 8, or arrange
a subscription to build a local mirror with "reposync", for anything
like dynamic biulding of RHEL 8 based RPM's. But if it works, it saves
me a bunch of work in the short term.
___
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: New release of Mock (fixes and subscription-manager support)

2019-08-27 Thread Stephen John Smoogen
On Tue, 27 Aug 2019 at 10:20, Miroslav Suchý  wrote:
>
> Hi,
> I released new version of Mock and mock-core-configs. For full release notes 
> see:
>   https://github.com/rpm-software-management/mock/wiki/Release-Notes-1.4.18
> I just submitted packages to Bodhi.
>
> I would like to point two things here:
>
> 1) It should fixes all those issues you reported in past days (selinux, 
> rprivate, groupadd).
> 2) Mock now supports subscription-manager, which allows you to build packages 
> for RHEL with cost-free developer license.
> No need to wait for CentOS 8.
>
> Big thanks to Pavel Raiskup who done those two things.

Note that this drops python2 support. You will need Python36 on any
system using.

Also note that mock will no longer be targeted to build on EL-7
systems sometime next spring (2020). I believe this means that mock
will no longer be supported or built in EPEL-7 as it is probably no
longer built in EPEL-6 these days. You will need to use EL-8 boxes to
build but can target EL-6/EL-7 builds. [I don't know if you can build
EL-5 but I know people need to do so still so I am not sure how to do
that.]




-- 
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


[EPEL-devel] Re: New release of Mock (fixes and subscription-manager support)

2019-08-27 Thread Stephen John Smoogen
On Tue, 27 Aug 2019 at 10:20, Miroslav Suchý  wrote:
>
> Hi,
> I released new version of Mock and mock-core-configs. For full release notes 
> see:
>   https://github.com/rpm-software-management/mock/wiki/Release-Notes-1.4.18
> I just submitted packages to Bodhi.
>
> I would like to point two things here:
>
> 1) It should fixes all those issues you reported in past days (selinux, 
> rprivate, groupadd).
> 2) Mock now supports subscription-manager, which allows you to build packages 
> for RHEL with cost-free developer license.
> No need to wait for CentOS 8.
>
> Big thanks to Pavel Raiskup who done those two things.

Note that this drops python2 support. You will need Python36 on any
system using.

Also note that mock will no longer be targeted to build on EL-7
systems sometime next spring (2020). I believe this means that mock
will no longer be supported or built in EPEL-7 as it is probably no
longer built in EPEL-6 these days. You will need to use EL-8 boxes to
build but can target EL-6/EL-7 builds. [I don't know if you can build
EL-5 but I know people need to do so still so I am not sure how to do
that.]




-- 
Stephen J Smoogen.
___
epel-devel mailing list -- epel-devel@lists.fedoraproject.org
To unsubscribe send an email to epel-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/epel-devel@lists.fedoraproject.org


[EPEL-devel] New release of Mock (fixes and subscription-manager support)

2019-08-27 Thread Miroslav Suchý
Hi,
I released new version of Mock and mock-core-configs. For full release notes 
see:
  https://github.com/rpm-software-management/mock/wiki/Release-Notes-1.4.18
I just submitted packages to Bodhi.

I would like to point two things here:

1) It should fixes all those issues you reported in past days (selinux, 
rprivate, groupadd).
2) Mock now supports subscription-manager, which allows you to build packages 
for RHEL with cost-free developer license.
No need to wait for CentOS 8.

Big thanks to Pavel Raiskup who done those two things.
-- 
Miroslav Suchy, RHCA
Red Hat, Associate Manager ABRT/Copr, #brno, #fedora-buildsys
___
epel-devel mailing list -- epel-devel@lists.fedoraproject.org
To unsubscribe send an email to epel-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/epel-devel@lists.fedoraproject.org


New release of Mock (fixes and subscription-manager support)

2019-08-27 Thread Miroslav Suchý
Hi,
I released new version of Mock and mock-core-configs. For full release notes 
see:
  https://github.com/rpm-software-management/mock/wiki/Release-Notes-1.4.18
I just submitted packages to Bodhi.

I would like to point two things here:

1) It should fixes all those issues you reported in past days (selinux, 
rprivate, groupadd).
2) Mock now supports subscription-manager, which allows you to build packages 
for RHEL with cost-free developer license.
No need to wait for CentOS 8.

Big thanks to Pavel Raiskup who done those two things.
-- 
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