Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update usability support for RHEL7 #75

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

agmt
Copy link

@agmt agmt commented Aug 5, 2014

Added dist's options: sslkey, sslcert.
INFO: #71

@thias
Copy link

thias commented Aug 25, 2014

This works for me : I can use an existing server's key/cert in order to clone the repos it has access to using mrepo (and lftp, since it's https URLs).

@wernermaes
Copy link

I'll give it a try as well. Can you still clone older repos as well with this adapted code?

@wernermaes
Copy link

Hello

It seems to work to clone the repo but the command "mrepo -u -v" does not exit, Strace shows a timeout

@wernermaes
Copy link

It also does not cleanup older versions of the same package.

@wernermaes
Copy link

Found a way to cleanup using repomanage

So script seems to work like this

/usr/bin/mrepo -uvvv |tee /root/mrepo-output &
i="0"
while [ $i -lt 8 ]
do
sleep 600 # Time necessary to fetch packages (increase if necessary)
pidof lftp | xargs kill -9
i=$[$i+1]
done
cd /repo/src/rhel7-server-x86_64
for i in $(ls);do rm -f $(repomanage --old $i/Packages/)| tee -a /root/mrepo-output ;done
for i in $(ls); do createrepo -p $i | tee -a /root/mrepo-output;done

Kind regards

@wernermaes
Copy link

Previous script is based on 8 channels (extra, supplementary,...). Therefore the 8 iterations

@derynimind
Copy link

I was able to resolve the issues with lftp hanging, finally without the script wrapper for mrepo. This is by changing the /etc/lftp.conf to include the following reasonable values to tolerate small disruptions, but to give up and move on at the end of the file transfers:
set net:idle 5m
set net:max-retries 10
set net:timeout 5m

@wernermaes
Copy link

I'll give this a try and let you know

@wernermaes
Copy link

Hello

This seems to work, althought it takes more time. Maybe I should reduce net:max-retries

But did anyone find a solution where lftp only downloads the latest version of a package and not all as seen below?
xulrunner-24.5.0-1.el7.i686.rpm
xulrunner-24.5.0-1.el7.x86_64.rpm
xulrunner-24.6.0-1.el7_0.i686.rpm
xulrunner-24.6.0-1.el7_0.x86_64.rpm
xulrunner-24.7.0-1.el7_0.i686.rpm
xulrunner-24.7.0-1.el7_0.x86_64.rpm
xulrunner-24.8.0-1.el7_0.i686.rpm
xulrunner-24.8.0-1.el7_0.x86_64.rpm

@derynimind
Copy link

I do lots of post processing after mrepo runs. I would stick with repomanage to do the work. Dropping the retries down, and the timeout will speed things up, however it will be less tolerant of network interruptions.

@ghoneycutt
Copy link

Hi @dagwieers

Are you still maintaining this?

@AbhishekKataria
Copy link

I see no official centos7 release rpm for mrepo. So it is safe to use mrepo-el6 for the same?
Where can I get one for el7? Is there any alternatives I can use?

@wernermaes
Copy link

wernermaes commented Jan 24, 2017 via email

@AbhishekKataria
Copy link

Hi Werner, Thanks for your answer. I appreciate it.
Abhishek

@derynimind
Copy link

derynimind commented Jan 25, 2017 via email

IBM Power line of processors now includes the architecture ppc46le
with matching architecture identifiers in repository URLs.  Add
value of ppc64le to archs so mrepo will view this value as a valid
architecture when used in configuration files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.