James,

SELinux is disabled and not running:

# systemctl status selinux.service
selinux.service
          Loaded: error (Reason: No such file or directory)
          Active: inactive (dead)

#

What I see in the log is something like this (it's on another network, so please forgive any typos as I transcribe it here):

Fri Oct 19 14:06:06 2012 - INFO | running: rsync -a '/distro/' /var/www/cobbler/ks_mirror_F17-x86_64 --exclude-from=/etc/cobbler/rsync.exclude --progress
Fri Oct 19 14:06:06 2012 - INFO | received on stdout: sending incremental file list
./

sent 29 bytes received 15 bytes 88.00 bytes/sec
total size is 0  speedup is 0.00

Fri Oct 19 14:06:06 2012 - DEBUG | received on stderr:
Fri Oct 19 14:06:06 2012 - INFO | running import manager: import/redhat
Fri Oct 19 14:06:06 2012 - INFO | an exception occurred while running the import manager
Fri Oct 19 14:06:06 2012 - INFO | error was: [Errno 9] Bad file descriptor
Fri Oct 19 14:06:06 2012 - INFO | No import managers found a valid signature at the location specified

If I run that exact rsync command as root (from the same shell where I attempted the import) the rsync runs to completion, and I can then re-run the import and it too will run to completion. I'm just unsure why the rsync works for my interactive shell, but not when run as part of this command.


Bret

On Tue, Oct 23, 2012 at 8:02 PM, James Cammarata <jimi@sngx.net> wrote:
On Mon, Oct 22, 2012 at 8:01 AM, Bret Wortman
<bret.wortman@damascusgrp.com> wrote:
> I've got several .iso images that I'm trying to import into a new Cobbler
> instance. When I do this:
>
> # mount -o loop /images/Fedora-17-i386-DVD.iso /distro
> # cobbler import --name=F17 --path=/distro --arch=i386
> task started: 2012-10-22_085223_import
> task started (id=Media import, time=Mon Oct 22 08:52;23 2012)
> !!! TASK FAILED !!!
> #
>
> cobbler.log shows that the rsync apparently didn't run because the very next
> command fails. If I copy the rsync command from the log and run it manually,
> it works just fine every time, and re-running the cobbler import after the
> manual rsync runs to completion.
>
> What might be causing the rsync within the import command to fail?

Is there any output in the cobblerd.log as to why rsync is failing? Is
SELinux running?
_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler