[et-mgmt-tools] koan 0.2.9 parsing problem (safe_load function)
Michael DeHaan
mdehaan at redhat.com
Mon Apr 23 18:32:20 UTC 2007
Adam Rosenwald wrote:
> 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 at 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=<profile_name>; rather it only occurs with
> --system=<system_name>.
>
> Any thoughts? Thanks. --A.
Not immediately. I'll see if I can reproduce this.
> ------------------------------------------------------------------------
>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools at redhat.com
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools
More information about the et-mgmt-tools
mailing list