microsoft / omi

Open Management Infrastructure
Other
367 stars 116 forks source link

rpm mirror failed - omi-1.6.6-0 and scx-1.6.6-0 #690

Closed Slm0n87 closed 3 years ago

Slm0n87 commented 3 years ago

Steps to reproduce:

  1. Use a rhel7 or centos7 system or use docker: docker run -it --rm centos:7 bash
  2. Create data dir & configure the repo
    mkdir /data /meta
    cat > /meta/microsoft.repo
    [rhel-7-microsoft]
    name=packages-microsoft-com-prod
    baseurl=https://packages.microsoft.com/rhel/7/prod/
    enabled=1
    gpgcheck=1
    gpgkey=https://packages.microsoft.com/keys/microsoft.asc
    [ctl+d]
  3. Configure reposync:
    cat > /rhel7_reposync.conf
    [main]
    reposdir=/meta
    [ctl+d]
  4. Start reposync:
    reposync  -d -a x86_64 -p /data -c /rhel7_reposync.conf --downloadcomps --download-metadata --allow-path-traversal --repoid rhel-7-microsoft
    [...]
    omi-1.6.6-0.x86_64: [Errno 256] No more mirrors to try.
    scx-1.6.6-0.x86_64: [Errno 256] No more mirrors to try.

Expected behavior: The reposync has to sync all rpms successfully.

Actual behavior: The reposync failed, because the two failing rpms can not be synced.

JumpingYang001 commented 3 years ago

@Slm0n87 we have fixed it recently, you can try rm -rf /var/cache/yum/packages-microsoft-com-prod/ and yum update -y, and retry reposync again, it should work now, thanks.