You're right -- I'm using 2.6.10. In full:

# *rpm -qa | grep cobbler*
cobbler-web-2.6.10-11.1.noarch
cobbler-2.6.10-11.1.noarch
# *cobbler reposync --only=C7-x86_64-updates*
task started: 2016-01-18_073253_reposync
task started (id=Reposync, time=Mon Jan 18 07:32:53 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

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
445, 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 !!!
# *cobbler version*
### ERROR ###
Unexpected remote error, check the server side logs for further info
<class 'ConfigParser.MissingSectionHeaderError'>:File contains no section
headers.
file: /etc/cobbler/version, line: 1
'builddate: Thu Jun 20 06:07:27 2013\n'

This was after a "dnf reinstall cobbler", just to be sure. I did get your
other message and looked at reposync_flags. I removed the "-d" portion and
now get, in part:

# cobbler reposync --only=C7-x86_64-updates
task started: 2016-01-18_073712_reposync
task started (id=Reposync, time=Mon Jan 18 07:37:12 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
--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: It could be a DNF plugin command.

received on stderr: No such command: reposync. Please use /usr/bin/dnf
--help

So it looks like reposync isn't available for dnf? I did a dnf search but
didn't see anything that looked promising. It seems yum-utils provides it
but there's nothing for dnf.





*Bret Wortman*


On Fri, Jan 15, 2016 at 12:08 PM, Orion Poplawski <[email protected]>
wrote:

> On 01/06/2016 06:33 AM, Bret Wortman wrote:
> > 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:
>
> Are you really using 2.6.0?  2.6.10 is the latest in that branch.
>
> > # 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]]
>
> I don't see how this command line can be generated in 2.6.10, so it looks
> like
> you're using and older version and that it may be fixed in a later one.
>
>
> --
> Orion Poplawski
> Technical Manager                     303-415-9701 x222
> NWRA, Boulder/CoRA Office             FAX: 303-415-9702
> 3380 Mitchell Lane                       [email protected]
> Boulder, CO 80301                   http://www.nwra.com
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://lists.fedorahosted.org/admin/lists/[email protected]
>
_______________________________________________
cobbler mailing list
[email protected]
https://lists.fedorahosted.org/admin/lists/[email protected]

Reply via email to