[et-mgmt-tools] koan 0.2.9 parsing problem (safe_load function)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



New issue with cobbler 0.4.7 and koan 0.2.9.

After installing cobbler 0.4.7 (from RPM), I made `cobbler check` happy, and then proceeded with provisioning `cobbler system add --name=00:16:3E:35:00:71 <--additional items>`.  No problem.  The system profile was allocated properly.

Then, I ensure cobblerd was running.  No problem with XMLRPC port.

I had a dom0 server on which I installed koan 0.2.9 (from RPM).

Then...

====BEGIN OUTPUT=====

[root@koan_test ~]# koan --virt --server=test_virt --system=00:16:3E:35:00:71
- processing profile: None
- fetching configuration for system: 00:16:3E:35:00:71
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 108, in main
    k.run ()
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 174, in run
    self.do_virt()
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 305, in do_virt
    return self.do_net_install ("/tmp",after_download)
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 265, in do_net_install
    profile_data = self.get_system_xmlrpc(self.system)
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 530, in get_system_xmlrpc
    profile_data = self.get_profile_xmlrpc(self.safe_load(system_data,'profile'))
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 250, in safe_load
    if hash.has_key(primary_key):
AttributeError: 'NoneType' object has no attribute 'has_key'

=======END OUTPUT==========

It appears that 'profile' is beting passed as a hash to safe_load(), yet there is something wrong with the hash.

This problem does not occur when running koan with --profile="" rather it only occurs with --system=<system_name>.

Any thoughts?  Thanks. --A.

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux