Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

koan --update-config ?? #33

Open
Brainslugongithub opened this issue Jul 25, 2013 · 3 comments
Open

koan --update-config ?? #33

Brainslugongithub opened this issue Jul 25, 2013 · 3 comments
Labels

Comments

@Brainslugongithub
Copy link

Looking into the CMS part of cobbler right now. Running two physical servers, both Scientifc Linux 6.3 (64bit), cobbler commit 8388a2a660.
My client seems to be able to communicate w/ the server:

[root@test1 tmp]# koan --server=10.2.9.7 --display --system=test1
- looking for Cobbler at http://10.2.9.7:80/cobbler_api
- reading URL: http://10.2.9.7/cblr/svc/op/ks/system/test1
  install_tree: http://10.2.9.7/cblr/links/SL6.3-x86_64
              name  : test1
            distro  : SL6.3-x86_64
           profile  : pdaq-machine1
         kickstart  : http://10.2.9.7/cblr/svc/op/ks/system/test1
           ks_meta  : tree=http://@@http_server@@/cblr/links/SL6.3-x86_64 pdaq_pkg_group=@Emacs 
      install_tree  : http://10.2.9.7/cblr/links/SL6.3-x86_64
            kernel  : /var/www/cobbler/ks_mirror/SL6.3-x86_64/images/pxeboot/vmlinuz
            initrd  : /var/www/cobbler/ks_mirror/SL6.3-x86_64/images/pxeboot/initrd.img
   netboot_enabled  : True
    kernel_options  : ks=http://10.2.9.7/cblr/svc/op/ks/system/test1 ksdevice=link kssendmac lang= text 
             repos  : Dell
          virt_ram  : 512
  virt_disk_driver  : raw
         virt_type  : xenpv
         virt_path  : 
    virt_auto_boot  : 0
     virt_pxe_boot  : 0
  [root@test1 tmp]# 

but I can't do any updates:

[root@test1 tmp]# koan --server=10.2.9.7 --update-config
- looking for Cobbler at http://10.2.9.7:80/cobbler_api
- Auto detected: test1
  Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/koan/app.py", line 869, in update_config
    config = server.get_config_data(hostname)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in **call**
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1253, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response
    return u.close()
  File "/usr/lib64/python2.6/xmlrpclib.py", line 838, in close
    raise Fault(**self._stack[0])
  Fault: <Fault 1: "<type 'exceptions.AttributeError'>:'NoneType' object has no attribute 'get_parent'">
  Could not communicate with 10.2.9.7:None

Any idea what might be going wrong here?

Thanks much!

@jmaas
Copy link
Member

jmaas commented Jun 12, 2014

Issue list cleanup: this is an old issue, probably on an old cobbler version. If this is still an issue for you on a recent cobbler let me know and i will re-open this issue.

@jmaas jmaas closed this as completed Jun 12, 2014
@jmaas
Copy link
Member

jmaas commented Jun 26, 2014

Caleb Moniot writes:

I'm running into a little trouble getting Koan to work with Cobbler and I was hoping that you might be able to point me in the right direction to get it fixed.

When using koan's --update-config option to try and pull down some configuration files I ran into the exact same issue seen on github here https://github.com/cobbler/cobbler/issues/555. I tried to do a list cleanup with no success. I didn't want to try and open the ticket since you mentioned it was an old issue but since I'm running the latest Cobbler (2.6.1) and Koan (2.4.4) I thought I'd contact you.

Is there anything I can check to see if the issue is simply a mis-configuration or damaged install? I've tried to pull down the latest cobbler-2.6.1.tar.gz from https://github.com/cobbler/cobbler/releases/tag/v2.6.1 and ran a make webtest but it errored with the following message.

bin/sh: -c: line 2: syntax error: unexpected end of file
make[1]: **\* [restorestate] Error 1
make[1]: Leaving directory `/root/cobbler-2.6.1'
make: **\* [devinstall] Error 2

Afterwards Koan is still encounters the same error. Any advice you could provide would be greatly appreciated.

Sincerely,

Caleb Moniot

==========Koan error============

[elemental@qa-cobbled ~]$ sudo koan --server=qa-cobbler --update-config
- looking for Cobbler at http://qa-cobbler:80/cobbler_api
- Auto detected: qa-cobbled
  Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/koan/app.py", line 882, in update_config
    config = server.get_config_data(hostname)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in **call**
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1253, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response
    return u.close()
  File "/usr/lib64/python2.6/xmlrpclib.py", line 838, in close
    raise Fault(**self._stack[0])
  Fault: <Fault 1: "<type 'exceptions.AttributeError'>:'NoneType' object has no attribute 'get_parent'">
  Could not communicate with qa-cobbler:None

===============================

@jmaas jmaas reopened this Jun 26, 2014
jmaas referenced this issue in cobbler/cobbler Jun 27, 2014
Fix Makefile for Cobbler 2.6.x as suggested in #555
@caleb-moniot
Copy link

Thanks for looking into this again. Please let me know if there's any info I can provide to help troubleshoot/diagnose the problem.

@SchoolGuy SchoolGuy transferred this issue from cobbler/cobbler Aug 15, 2019
@SchoolGuy SchoolGuy added the bug label Apr 6, 2020
@SchoolGuy SchoolGuy moved this to Bug Reports in Koan Sep 26, 2022
@SchoolGuy SchoolGuy added this to Koan Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Bug Reports
Development

No branches or pull requests

4 participants