web-dev-qa-db-ja.com

コブラーは追加したリポジトリに同期できません

CentOSベースリポジトリをcobblerに追加しました:

cobbler repo add --Arch=x86_64 --name=Centos-Base --mirror=http://mirrorlist.centos.org/?release=$releasever&Arch=$basearch&repo=os&infra=$infra

しかし、cobbler reposyncの実行は失敗しました:

received on stderr: Traceback (most recent call last):
  File "/usr/bin/reposync", line 343, in <module>
    main()
  File "/usr/bin/reposync", line 175, in main
    my.doRepoSetup()
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 681, in doRepoSetup
    return self._getRepos(thisrepo, True)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 721, in _getRepos
    self._repos.doSetup(thisrepo)
  File "/usr/lib/python2.7/site-packages/yum/repos.py", line 157, in doSetup
    self.retrieveAllMD()
  File "/usr/lib/python2.7/site-packages/yum/repos.py", line 88, in retrieveAllMD
    dl = repo._async and repo._commonLoadRepoXML(repo)
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1470, in _commonLoadRepoXML
    result = self._getFileRepoXML(local, text)
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1248, in _getFileRepoXML
    size=102400) # setting max size as 100K
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1037, in _getFile
    raise e
yum.Errors.NoMoreMirrorsRepoError: failure: repodata/repomd.xml from Centos-Base: [Errno 256] No more mirrors to try.
http://mirrorlist.centos.org/?release=7&Arch=x86_64&repo=os&infra=stock/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for Centos-Base: Damaged repomd.xml file
2
red888

Cobblerはミラーリスト機能を処理できないため、これはそのようには機能しません。 --mirrorオプションは、リポジトリのダウンロード元の特定のURLを指定する必要があります。

3
Sven