>I'm going to take a wild guess and say that your cobbler server is now
>2.0.x and your koan version is 1.6.x? That would make sense for the
>problems that you are seeing. If not, I'd love to see a copy of
>/var/log/cobbler/cobbler.log (sanitized for anything you don't want to
>share of course).

Hey there shenson!

Thanks for your reply!

At this point both versions match:

server:

[root@VIRCENT14 ~]# rpm -qa | grep cobbler
cobbler-web-2.0.10-1.el5
cobbler-2.0.10-1.el5

client:

[root@LCENT02:~] #rpm -qa | grep koan
koan-2.0.10-1.el5


----- Original Message -----
From: "Scott Henson" <[email protected]>
To: "Tim Dunphy" <[email protected]>, [email protected]
Sent: Tuesday, April 19, 2011 2:33:25 PM
Subject: Re: cobbler / koan mismatch

On Mon, 18 Apr 2011 03:46:46 -0000 (UTC), Tim Dunphy <[email protected]> 
wrote:
> hello list!
> 
> I recently had to rebuild a cobbler server on the network. however for some 
> reason once everything seemed to be working I notice that when I try to list 
> profiles using koan on the client it does not match the profiles I see when I 
> run cobbler list. Also when I try toi build a host it complains that it 
> cannot find the cobbler_api.

I'm going to take a wild guess and say that your cobbler server is now
2.0.x and your koan version is 1.6.x? That would make sense for the
problems that you are seeing. If not, I'd love to see a copy of
/var/log/cobbler/cobbler.log (sanitized for anything you don't want to
share of course).


Yet when I run koan on the client this is what happens:

[root@LCENT02:~] # koan --virt --server=cobbler --profile=base64 
--virt-name=vm11
- looking for Cobbler at http://cobbler/cobbler_api
- reading URL: http://192.168.1.36/cblr/svc/op/ks/profile/base64
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/koan/utils.py", line 130, in urlread
    fd = urllib2.urlopen(url)
  File "/usr/lib64/python2.4/urllib2.py", line 130, in urlopen
    return _opener.open(url, data)
  File "/usr/lib64/python2.4/urllib2.py", line 364, in open
    response = meth(req, response)
  File "/usr/lib64/python2.4/urllib2.py", line 471, in http_response
    response = self.parent.error(
  File "/usr/lib64/python2.4/urllib2.py", line 402, in error
    return self._call_chain(*args)
  File "/usr/lib64/python2.4/urllib2.py", line 337, in _call_chain
    result = func(*args)
  File "/usr/lib64/python2.4/urllib2.py", line 480, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found
libvirtd (pid  2749) is running...
downloading initrd initrd.img to /var/lib/xen/initrd.img
url=http://cobbler/cobbler/images/rhel5-64-xen-x86_64/initrd.img
- reading URL: http://cobbler/cobbler/images/rhel5-64-xen-x86_64/initrd.img
downloading kernel vmlinuz to /var/lib/xen/vmlinuz
url=http://cobbler/cobbler/images/rhel5-64-xen-x86_64/vmlinuz
- reading URL: http://cobbler/cobbler/images/rhel5-64-xen-x86_64/vmlinuz
Tue, 19 Apr 2011 23:42:16 DEBUG    No conn passed to Guest, opening URI 'None'
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByUUID
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName
Tue, 19 Apr 2011 23:42:16 DEBUG    Creating guest from:
<domain type='xen'>
  <name>vm11</name>
  <currentMemory>262144</currentMemory>
  <memory>262144</memory>
  <uuid>66606e0f-870e-2e12-eece-8e6fd6853ed1</uuid>
  <os>
    <type>linux</type>
    <kernel>/var/lib/xen/vmlinuz</kernel>
    <initrd>/var/lib/xen/initrd.img</initrd>
    <cmdline>ks=http://192.168.1.36/cblr/svc/op/ks/profile/base64 ksdevice=link 
kssendmac lang= text </cmdline>
  </os>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>destroy</on_reboot>
  <on_crash>destroy</on_crash>
  <vcpu>1</vcpu>
  <devices>
    <disk type='file' device='disk'>
      <source file='/mnt/store/xen/vm11-disk0'/>
      <target dev='xvda' bus='xen'/>
    </disk>
    <interface type='bridge'>
      <source bridge='xenbr0'/>
      <mac address='00:16:3e:37:86:00'/>
    </interface>
    <input type='mouse' bus='xen'/>
    <graphics type='vnc' port='-1' keymap='en-us'/>
  </devices>
</domain>

Tue, 19 Apr 2011 23:42:18 DEBUG    Created guest, looking to see if it is 
running
Tue, 19 Apr 2011 23:42:18 DEBUG    Saving XML boot config:
<domain type='xen'>
  <name>vm11</name>
  <currentMemory>262144</currentMemory>
  <memory>262144</memory>
  <uuid>66606e0f-870e-2e12-eece-8e6fd6853ed1</uuid>
  <bootloader>/usr/bin/pygrub</bootloader>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <vcpu>1</vcpu>
  <devices>
    <disk type='file' device='disk'>
      <source file='/mnt/store/xen/vm11-disk0'/>
      <target dev='xvda' bus='xen'/>
    </disk>
    <interface type='bridge'>
      <source bridge='xenbr0'/>
      <mac address='00:16:3e:37:86:00'/>
    </interface>
    <input type='mouse' bus='xen'/>
    <graphics type='vnc' port='-1' keymap='en-us'/>
  </devices>
</domain>

use virt-manager or reconnect with virsh console vm11


So it looks like koan is working enough at this point to contact the cobbler 
server which it wasn't before. However it is not finding it's kickstart file:

Welcome to CentOS                                                               
                                                                                
                                                                                
                                                                                
                                                                                
        +-------------+ Error downloading kickstart file +-------------+        
        |                                                              |        
        | Unable to download the kickstart file.  Please modify the    |        
        | kickstart parameter below or press Cancel to proceed as an   |        
        | interactive installation.                                    |        
        |                                                              |        
        | http://192.168.1.36/cblr/svc/op/ks/profile/base64___________ |        
        |                                                              |        
        |            +----+                      +--------+            |        
        |            | OK |                      | Cancel |            |        
        |            +----+                      +--------+            |        
        |                                                              |        
        |                                                              |        
        +--------------------------------------------------------------+        
                                                                                
                                                                                
                                                                                
                                                                                
  <Tab>/<Alt-Tab> between elements  | <Space> selects | <F12> next screen  


This is what's going on in the cobblerd.log file on the server

[root@VIRCENT14 ~]# tail -f /var/log/cobbler/cobbler.log
Tue Apr 19 10:56:05 2011 - DEBUG | XMLRPC running on 25151
Tue Apr 19 23:36:15 2011 - DEBUG | get_items; ['profile']
Tue Apr 19 23:40:24 2011 - DEBUG | get_items; ['distro']
Tue Apr 19 23:40:24 2011 - DEBUG | get_items; ['profile']
Tue Apr 19 23:40:24 2011 - DEBUG | get_items; ['system']
Tue Apr 19 23:40:24 2011 - DEBUG | get_items; ['repo']
Tue Apr 19 23:40:24 2011 - DEBUG | get_items; ['image']
Tue Apr 19 23:41:03 2011 - INFO | REMOTE get_profile_as_rendered; user(?); 
name(base64)
Tue Apr 19 23:42:15 2011 - INFO | REMOTE get_profile_as_rendered; user(?); 
name(base64)
Tue Apr 19 23:46:07 2011 - INFO | REMOTE get_profile_as_rendered; user(?); 
name(base64)
^NTue Apr 19 23:53:40 2011 - INFO | REMOTE get_profile_as_rendered; user(?); 
name(base64)


And I cannot telnet into port 69 or 25151:


[root@LCENT02:~] #telnet cobbler 69
Trying 192.168.1.36...
telnet: connect to address 192.168.1.36: No route to host
telnet: Unable to connect to remote host: No route to host


[root@LCENT02:~] #telnet cobbler 25151
Trying 192.168.1.36...
telnet: connect to address 192.168.1.36: No route to host
telnet: Unable to connect to remote host: No route to host

But I can on 80

[root@LCENT02:~] #telnet cobbler 80
Trying 192.168.1.36...
Connected to cobbler.summitnjhome.com (192.168.1.36).
Escape character is '^]'.


Firewall is off (temporarily) on the server:

[root@VIRCENT14 ~]# service iptables status
Firewall is stopped

xinetd is running

[root@VIRCENT14 ~]# service xinetd status
xinetd (pid  19039) is running...



and neither rsync or tftpd are disabled 

[root@VIRCENT14 ~]# cat /etc/xinetd.d/rsync 
# default: off
# description: The rsync server is a good addition to an ftp server, as it \
#       allows crc checksumming etc.
service rsync
{
        disable = no 
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/bin/rsync
        server_args     = --daemon
        log_on_failure  += USERID
}
[root@VIRCENT14 ~]# cat /etc/xinetd.d/tftp 
# default: off
# description: The tftp server serves files using the trivial file transfer \
#       protocol.  The tftp protocol is often used to boot diskless \
#       workstations, download configuration files to network-aware printers, \
#       and to start the installation process for some operating systems.
service tftp
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /tftpboot
        disable                 = no
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}


I hope this is enough to go on for now!! thanks so much for any help you can 
render!

tim


-- 
Scott Henson
Red Hat CIS Operator
WVU Alum BSAE/BSME
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to