Bug 1112021

Summary: cobbler import fails with cobbler.cexceptions.CX on Fedora-20 (importing either F20 or CentOS 6.5)
Product: [Fedora] Fedora Reporter: Charles Butterfield <cb20777>
Component: cobblerAssignee: Orion Poplawski <orion>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: cb20777, jimi, orion, scott, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-24 19:48:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
/var/log/cobbler/cobber.log none

Description Charles Butterfield 2014-06-22 20:20:02 UTC
Description of problem:  Try to import and die with exception


Version-Release number of selected component (if applicable):
cobbler.noarch 2.4.4-1.fc20

How reproducible: Always


Steps to Reproduce:
1. install cobbler and tweak settings IP addresses
2. cobbler import ...
3. BOOM

Actual results:

See below


Expected results:


Additional info:

 cobbler import --name=F20 --path=localhost:/media/RD-DOWNLOADS/LocalMirrors/MirrorRoot/fedora/releases/20/Fedora/x86_64/os --available-as=http://192.168.20.66/mirrors/fedora/releases/20/Fedora/x86_64/os --arch=x86_64
task started: 2014-06-22_161913_import
task started (id=Media import, time=Sun Jun 22 16:19:13 2014)
Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'Command failed'
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 231, in runner
    self.logger
   File "/usr/lib/python2.7/site-packages/cobbler/api.py", line 880, in import_tree
    utils.run_this(rsync_cmd, (spacer, mirror_url, path), self.logger)
   File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 920, in run_this
    die(logger,"Command failed")
   File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 137, in die
    raise CX(msg)

!!! TASK FAILED !!!

Comment 1 Orion Poplawski 2014-06-23 15:52:43 UTC
Please attach /var/log/cobbler/cobbler.log

Comment 2 Charles Butterfield 2014-06-24 01:34:33 UTC
Created attachment 911616 [details]
/var/log/cobbler/cobber.log

As requested

Comment 3 Orion Poplawski 2014-06-24 19:48:20 UTC
Looks like this is your issue:

Sun Jun 22 15:52:57 2014 - INFO | running: rsync -a  -e "ssh"  'localhost:/media/RD-DOWNLOADS/LocalMirrors/MirrorRoot/centos/6.5/os/x86_64/' /var/www/cobbler/ks_mirror/C65-x86_64 --progress --include-from=/etc/cobbler/import_rsync_whitelist
Sun Jun 22 15:52:57 2014 - INFO | received on stdout: 
Sun Jun 22 15:52:57 2014 - DEBUG | received on stderr: Host key verification failed.
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(226) [Receiver=3.1.0]

Looks like some ssh host key issues on your machine.