Bug 1550377 - centos-release-scl-rh doesn't work well for aarch64 right now
Summary: centos-release-scl-rh doesn't work well for aarch64 right now
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: softwarecollections.org
Classification: Community
Component: devtoolset-7
Version: 1.0
Hardware: aarch64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Marek Polacek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-01 06:50 UTC by Zhao, Bing
Modified: 2020-06-18 16:44 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-06-18 16:44:26 UTC
Embargoed:


Attachments (Terms of Use)

Description Zhao, Bing 2018-03-01 06:50:15 UTC
Description of problem:
When I want to use new GCC for testing on an aarch64 platform, I follow the steps in the wiki page https://www.softwarecollections.org/en/scls/rhscl/devtoolset-7/
But it will report an error because the URL is invalid http://mirror.centos.org/centos/7/sclo/aarch64/rh/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found.
No such repository in the sclo folder. Its location starts with "buildlogs"

Version-Release number of selected component (if applicable):
CentOS Linux release 7.4.1708 (AltArch)
Linux server01.local 4.11.0-45.4.1.el7a.aarch64 #1 SMP Fri Feb 2 17:11:57 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux

How reproducible:
Just type the command as the described on the page "https://www.softwarecollections.org/en/scls/rhscl/devtoolset-7/"

Steps to Reproduce:
1. sudo yum install centos-release-scl-rh
2. sudo yum-config-manager --enable centos-sclo-rh-testing
3. sudo yum install devtoolset-7

Actual results:
Loaded plugins: fastestmirror, langpacks
http://mirror.centos.org/centos/7/sclo/aarch64/rh/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article 

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.



 One of the configured repositories failed (CentOS-7 - SCLo rh),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=centos-sclo-rh ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable centos-sclo-rh
        or
            subscription-manager repos --disable=centos-sclo-rh

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=centos-sclo-rh.skip_if_unavailable=true

failure: repodata/repomd.xml from centos-sclo-rh: [Errno 256] No more mirrors to try.
http://mirror.centos.org/centos/7/sclo/aarch64/rh/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found


Expected results:
Succeed to install the devtoolsets

Additional info:
yum --disablerepo="centos-sclo-rh" install scl-utils-build scl-utils
yum --disablerepo="*" --enablerepo="centos-sclo-rh-testing" install devtoolset-7-gcc*

These commands - with disable/enable repository - could work properly

Comment 1 Zhao, Bing 2018-03-01 07:52:56 UTC
=========================================================================================================== repo: centos-sclo-rh ===========================================================================================================
[centos-sclo-rh]
async = True
bandwidth = 0
base_persistdir = /var/lib/yum/repos/aarch64/7
baseurl = http://mirror.centos.org/centos/7/sclo/aarch64/rh/
cache = 0
cachedir = /var/cache/yum/aarch64/7/centos-sclo-rh


It seems that the repo "centos-sclo-rh" is enabled by default, but currnetly the URL is invalid since the packages are still in the buildlogs. After disable it, all works well.

So is it possible to disable this repo by default and when ready, enable it.

Comment 2 Pavel Raiskup 2018-04-23 11:47:22 UTC
Sorry for late reply;  I missed this bug report, and I'm not the right
person to have a look.  Reassigning to Marek.

Comment 3 Marek Polacek 2018-04-23 16:56:32 UTC
Unfortunately I don't think I can do anything about this; while I maintain the package itself, this looks like a problem with the repository it's in.  But I don't know whom I could assign this to.

Comment 4 Zhao, Bing 2018-04-26 08:52:33 UTC
Hi Marek,
Thanks. Then let's just wait when the official SCLo packages, I hope it will come ASAP. :)

Comment 5 Marek Polacek 2020-06-18 16:44:26 UTC
Hopefully this works now.


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