2009/9/29 Michael DeHaan <[email protected]>
> On 09/29/2009 03:24 AM, Philippe Eveque wrote:
>
>
>
> 2009/9/28 Michael DeHaan <[email protected]>
>
>>
>> > I noticed the following:
>> >
>> > - on server2 set up from scratch
>> > cobbler import .... was complaining that the issued rsync
>> > command was failing
>> > I had to disable selinux for rsync to make cobbler import working
>> > with the following command.
>> >
>> > root# setsebool -P rsync_disable_trans=1
>>
>> What OS were you running from?
>>
>
> RHEL 5 (I should have mentioned it).
>
>
>
> Were you doing an import from an rsync mirror (as in rsync protocol,
> rsync://) or just a DVD or filesystem path? I'm suprised we didn't hit
> that in SELinux testing on previous releases as that hasn't really
> changed.
>
>
Here is the sequence I used with the results
[root]# getsebool -a | grep rsync
allow_rsync_anon_write --> off
rsync_disable_trans --> off
rsync_export_all_ro --> off
Now try to import an iso image something that is locally "loop back mounted"
via
mount /var/rhel-server-5.3-i386-dvd.iso /mnt/RHEL5.3 -o loop
[root]# cobbler import --name=philtrial --arch=x86 --path=/mnt/RHEL5.3
task started:
2009-09-29_162939_import
task started (id=Media import, time=Tue Sep 29 16:29:39
2009)
running: rsync -a '/mnt/RHEL5.3/' /var/www/cobbler/ks_mirror/philtrial-i386
--exclude-from=/etc/cobbler/rsync.exclude --progress
returned:
12
Exception occured: cobbler.cexceptions.CX
Exception value: 'Command
failed'
Exception
Info:
File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 108, in
die
raise
CX(msg)
Exception occured: cobbler.cexceptions.CX
Exception value: 'Command failed'
Exception Info:
File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 94, in run
rc = self._run(self)
File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 223, in
runner
self.logger
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 647, in
import_tree
return importer.run()
File "/usr/lib/python2.4/site-packages/cobbler/action_import.py", line
181, in run
self.run_this(rsync_cmd, (spacer, self.mirror, self.settings.webdir,
self.mirror_name))
File "/usr/lib/python2.4/site-packages/cobbler/action_import.py", line
262, in run_this
utils.die(self.logger,"Command failed")
File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 116, in
die
raise CX(msg)
!!! TASK FAILED !!!
then switch off the SELinux rsync and retry (as it was already done it is
fast :-) )
[root]# setsebool -P rsync_disable_trans=1
[root]# cobbler import --name=philtrial --arch=x86 --path=/mnt/RHEL5.3
task started: 2009-09-29_163011_import
task started (id=Media import, time=Tue Sep 29 16:30:11 2009)
running: rsync -a '/mnt/RHEL5.3/' /var/www/cobbler/ks_mirror/philtrial-i386
--exclude-from=/etc/cobbler/rsync.exclude --progress
building file list ...
2516 files to consider
sent 89541 bytes received 20 bytes 179122.00 bytes/sec
total size is 2729915423 speedup is 30481.07
returned: 0
adding distros
scanning /var/www/cobbler/ks_mirror/philtrial-i386/images/pxeboot for distro
signature
scanning /var/www/cobbler/ks_mirror/philtrial-i386/images for distro
signature
scanning /var/www/cobbler/ks_mirror/philtrial-i386 for distro signature
found content (breed=redhat) at /v
skipping import, as distro name already exists: philtrial-i386
scanning /var/www/cobbler/ks_mirror/philtrial-i386/images/xen for distro
signature
scanning /var/www/cobbler/ks_mirror/philtrial-i386/images for distro
signature
scanning /var/www/cobbler/ks_mirror/philtrial-i386 for distro signature
found content (breed=redhat) at /v
skipping import, as distro name already exists: philtrial-xen-i386
associating repos
associating kickstarts
*** TASK COMPLETE ***
and IIRC, the result was the same when rsyncing from a remote location.
Anyway, let's get a ticket for this one too and we'll check it out.
>
Ok sure.
>
>
>
>
>
>
>
>
>
> Despite we were not using OMAPI our 1.6.x /etc/cobbler/dhcp.template
> was having the declaration below. After migrating to2.0, the
> /etc/cobbler/dhcp.template was still having this declaration (my fault I
> should have removed it):
>
> #if $omapi_enabled
> omapi-port $omapi_port;
> #end if
>
> Then cobbler sync failed with a cheetah template instantiation error.
>
>
>
> Ah, yes, that's one of the .rpmnew files you have to pay attention to on
> upgrades.
>
> This one is not a bug. Thanks very much for filing the others!
>
> --Michael
>
>
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler
>
>
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler