I updated to 2.6.0 (I was still using 2.4.0 on this server) on F21. I now get this when trying the reposync:

# cobbler reposync --only=C7-x86_64-updates
task started: 2016-01-06_082842_reposync
task started (id=Reposync, time=Wed Jan  6 08:28:42 2016)
hello, reposync
run, reposync, run!
creating: /var/www/cobbler/repo_mirror/C7-x86_64-updates/config.repo
creating: /var/www/cobbler/repo_mirror/C7-x86_64-updates/.origin/C7-x86_64-updates.repo
running: /usr/bin/dnf reposync -l -n -d --config=/var/www/cobbler/repo_mirror/C7-x86_64-updates/.origin/C7-x86_64-updates.repo --repoid=C7-x86_64-updates --download_path=/var/www/cobbler/repo_mirror -a x86_64
received on stdout: usage: dnf [--allowerasing] [-b] [-C] [-c [config file]] [-d [debug level]]
           [--debugsolver] [--showduplicates] [-e ERRORLEVEL]
           [--rpmverbosity [debug level name]] [-q] [-v] [-y] [--assumeno]
           [--version] [--installroot [path]] [--enablerepo [repo]]
           [--disablerepo [repo]] [-x [package]] [--disableexcludes [repo]]
           [--obsoletes] [--noplugins] [--nogpgcheck]
           [--disableplugin [plugin]] [--color COLOR]
           [--releasever RELEASEVER] [--setopt SETOPTS] [--refresh] [-4] [-6]
           [-h]

received on stderr: Command line error: argument -d/--debuglevel: expected one argument

And everything goes south from there. So is there an easy way to fix this dnf problem? None of my repos will sync now.



Bret Wortman


On Tue, Jan 5, 2016 at 1:30 PM, <bret@thewortmans.org> wrote:
I have my repo defined as follows:

# cobbler repo report --name=C7-x86_64-updates
Name                           : C7-x86_64-updates
Apt Components (apt only)      :
Apt Dist Names (apt only)      :
Arch                           : x86_64
Breed                          : yum
Comment                        :
Createrepo Flags               : <<inherit>>
Environment Variables          : {}
Keep Updated                   : True
Mirror                         : http://mirror.cs.vt.edu/pub/CentOS/7/updates/x86_64
Mirror locally                 : True
Owners                         : ['admin']
Priority                       : 99
External proxy URL             :
RPM List                       : []
Yum Options                    : {}

And when I try to do the reposync:

# cobbler reposync --only=C7-x86_64-updatestask started: 2016-01-05_130456_reposync
task started (id=Reposync, time=Tue Jan  5 13:04:56 2016)
hello, reposync
run, reposync, run!
creating: /var/www/cobbler/repo_mirror/C7-x86_64-updates/config.repo
creating: /var/www/cobbler/repo_mirror/C7-x86_64-updates/.origin/C7-x86_64-updates.repo
running: /usr/bin/reposync -l -n -d --config=/var/www/cobbler/repo_mirror/C7-x86_64-updates/.origin/C7-x86_64-updates.repo --repoid=C7-x86_64-updates --download_path=/var/www/cobbler/repo_mirror -a x86_64
 13 kB  00:00
3.6 kB  00:00
3.6 kB  00:00
2.5 kB  00:00
2.5 kB  00:00
2.5 kB  00:00
2.5 kB  00:00
2.7 kB  00:00
1.2 kB  00:00
2.7 kB  00:00
2.7 kB  00:00
 11 kB  00:00
C7-x86_64-updates/prestodelta  FAILED
Failed to download prestodelta for repository C7-x86_64-updates: [Errno 256] No more mirrors to try.
389-ds-base-1.2.11.15-68.el6_7 FAILED
389-ds-base-devel-1.2.11.15-68 FAILED
:
:
selinux-policy-doc-3.7.19-279.el6_7.8.noarch: [Errno 256] No more mirrors to try.
rsyslog7-7.4.10-3.el6_7.1.x86_64: [Errno 256] No more mirrors to try.
2:qemu-kvm-0.12.1.2-2.479.el6_7.3.x86_64: [Errno 256] No more mirrors to try.
postgresql-devel-8.4.20-4.el6_7.i686: [Errno 256] No more mirrors to try.
1:libreoffice-langpack-zh-Hans-4.2.8.2-11.el6_7.1.x86_64: [Errno 256] No more mirrors to try.
:
:
received on stderr:
Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'cobbler reposync failed'
Exception Info:
  File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 126, in die
    raise CX(msg)

Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'cobbler reposync failed'
Exception Info:
  File "/usr/lib/python2.7/site-packages/cobbler/action_reposync.py", line 126, in run
    self.sync(repo)
   File "/usr/lib/python2.7/site-packages/cobbler/action_reposync.py", line 170, in sync
    return self.yum_sync(repo)
   File "/usr/lib/python2.7/site-packages/cobbler/action_reposync.py", line 431, in yum_sync
    utils.die(self.logger,"cobbler reposync failed")
   File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 134, in die
    raise CX(msg)

reposync failed, tries left: 0
reposync failed, retry limit reached, skipping
running: chown -R root:apache /var/www/cobbler/repo_mirror/C7-x86_64-updates
received on stdout:
received on stderr:
running: chmod -R 755 /var/www/cobbler/repo_mirror/C7-x86_64-updates
received on stdout:
received on stderr:
Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'overall reposync failed, at least one repo failed to synchronize'
Exception Info:
  File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 126, in die
    raise CX(msg)

Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'overall reposync failed, at least one repo failed to synchronize'
Exception Info:
  File "/usr/lib/python2.7/site-packages/cobbler/remote.py", line 87, in run
    rc = self._run(self)
   File "/usr/lib/python2.7/site-packages/cobbler/remote.py", line 247, in runner
    3), name=name, nofail=nofail, logger=self.logger)
   File "/usr/lib/python2.7/site-packages/cobbler/api.py", line 820, in reposync
    return reposync.run(name)
   File "/usr/lib/python2.7/site-packages/cobbler/action_reposync.py", line 155, in run
    utils.die(self.logger,"overall reposync failed, at least one repo failed to synchronize")
   File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 134, in die
    raise CX(msg)

!!! TASK FAILED !!!
#

What's really odd about this is that I have a C6 repo defined exactly the same as this one (though the version number is different) and it updates just fine. I've removed and re-added the repo without joy. I can use lftp to pull the whole thing down, and still get errors when attempting the reposync.

What am I missing?
_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/admin/lists/cobbler@lists.fedorahosted.org