Hello.
I just imported a new distro/profile but when I attempt to associate to a system, I am noticing this error below. I have also noticed that, when I delete the system and associate it with a profile that existed before, I don't get any error.
What could be a good cause of investigating what could have caused it?
[root@cobbler ~]# cobbler system add --name=iron --hostname=iron.eng.example.com --gateway=192.168.20.168 --profile=rhel-workstation-7.4-x86_64 --dns-name=iron.eng.example.com --mac=0c:c4:7a:43:39:d8 --ip-address=192.168.20.26 --subnet=255.255.255.0 --status=production --interface=eth0 --static=1 exception on server: unhashable type: 'list' [root@cobbler ~]#
[root@cobbler ~]# tail -n -50 /var/log/cobbler/cobbler.log Fri Sep 15 13:35:58 2017 - INFO | REMOTE modify_item(system); user(<DIRECT>); object_id(___NEW___system::WEJnr50ajDQAAcjDvCfKF5iN3XGL07Pfjw==); attribute(profile) Fri Sep 15 13:35:58 2017 - DEBUG | REMOTE CLI Authorized; user(?) Fri Sep 15 13:35:58 2017 - INFO | REMOTE modify_item(system); user(<DIRECT>); object_id(___NEW___system::WEJnr50ajDQAAcjDvCfKF5iN3XGL07Pfjw==); attribute(name) Fri Sep 15 13:35:58 2017 - DEBUG | REMOTE CLI Authorized; user(?) Fri Sep 15 13:35:58 2017 - INFO | REMOTE modify_item(system); user(<DIRECT>); object_id(___NEW___system::WEJnr50ajDQAAcjDvCfKF5iN3XGL07Pfjw==); attribute(hostname) Fri Sep 15 13:35:58 2017 - DEBUG | REMOTE CLI Authorized; user(?) Fri Sep 15 13:35:58 2017 - INFO | REMOTE modify_item(system); user(<DIRECT>); object_id(___NEW___system::WEJnr50ajDQAAcjDvCfKF5iN3XGL07Pfjw==); attribute(interface) Fri Sep 15 13:35:58 2017 - DEBUG | REMOTE CLI Authorized; user(?) Fri Sep 15 13:35:58 2017 - INFO | REMOTE modify_item(system); user(<DIRECT>); object_id(___NEW___system::WEJnr50ajDQAAcjDvCfKF5iN3XGL07Pfjw==); attribute(in_place) Fri Sep 15 13:35:58 2017 - DEBUG | REMOTE CLI Authorized; user(?) Fri Sep 15 13:35:58 2017 - INFO | REMOTE modify_item(system); user(<DIRECT>); object_id(___NEW___system::WEJnr50ajDQAAcjDvCfKF5iN3XGL07Pfjw==); attribute(gateway) Fri Sep 15 13:35:58 2017 - DEBUG | REMOTE CLI Authorized; user(?) Fri Sep 15 13:35:58 2017 - INFO | REMOTE modify_item(system); user(<DIRECT>); object_id(___NEW___system::WEJnr50ajDQAAcjDvCfKF5iN3XGL07Pfjw==); attribute(modify_interface) Fri Sep 15 13:35:58 2017 - DEBUG | REMOTE CLI Authorized; user(?) Fri Sep 15 13:35:58 2017 - INFO | find_items; ['system'] Fri Sep 15 13:35:59 2017 - INFO | find_items; ['system'] Fri Sep 15 13:35:59 2017 - INFO | find_items; ['system'] Fri Sep 15 13:35:59 2017 - INFO | REMOTE save_item(system); user(<DIRECT>); object_id(___NEW___system::WEJnr50ajDQAAcjDvCfKF5iN3XGL07Pfjw==) Fri Sep 15 13:35:59 2017 - DEBUG | REMOTE CLI Authorized; user(?) Fri Sep 15 13:35:59 2017 - INFO | add_item(system); ['iron'] Fri Sep 15 13:35:59 2017 - DEBUG | get_items; ['system'] Fri Sep 15 13:35:59 2017 - DEBUG | done with get_items; ['system'] Fri Sep 15 13:35:59 2017 - INFO | Exception occured: <type 'exceptions.TypeError'> Fri Sep 15 13:35:59 2017 - INFO | Exception value: unhashable type: 'list' Fri Sep 15 13:35:59 2017 - INFO | Exception Info: File "/usr/lib/python2.7/site-packages/cobbler/remote.py", line 2074, in _dispatch return method_handle(*params) File "/usr/lib/python2.7/site-packages/cobbler/remote.py", line 974, in xapi_object_edit return self.save_item(object_type, handle, token) File "/usr/lib/python2.7/site-packages/cobbler/remote.py", line 988, in save_item rc = self.api.add_item(what,obj) File "/usr/lib/python2.7/site-packages/cobbler/api.py", line 462, in add_item return self.get_items(what).add(ref,check_for_duplicate_names=check_for_duplicate_names,save=save,logger=logger) File "/usr/lib/python2.7/site-packages/cobbler/collection.py", line 345, in add self.lite_sync.add_single_system(ref.name) File "/usr/lib/python2.7/site-packages/cobbler/action_litesync.py", line 157, in add_single_system self.tftpd.add_single_system(system) File "/usr/lib/python2.7/site-packages/cobbler/modules/manage_in_tftpd.py", line 155, in add_single_system self.pxegen.write_all_system_files(system, menu_items) File "/usr/lib/python2.7/site-packages/cobbler/pxegen.py", line 303, in write_all_system_files self.write_pxe_file(f2, system, profile, distro, working_arch, metadata=pxe_metadata) File "/usr/lib/python2.7/site-packages/cobbler/pxegen.py", line 582, in write_pxe_file blended = utils.blender(self.api, True, system) File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 607, in blender __consolidate(node,results) File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 797, in __consolidate results[field] = uniquify(results[field]) File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 753, in uniquify if marker in seen:
[root@cobbler ~]#
Regards, William
Hello,
Just realised I had forgotten the version details when I sent the mail earlier
[root@cobbler ~]# rpm -qa | grep cobbler cobbler-2.8.0-4.el7.x86_64 cobbler-web-2.8.0-4.el7.noarch
CentOS Linux release 7.3.1611 (Core) [root@cobbler ~]#
I just imported a new distro/profile but when I attempt to associate to a system, I am noticing this error below. I have also noticed that, when I delete the system and associate it with a profile that existed before, I don't get any error.
What could be a good cause of investigating what could have caused it?
[root@cobbler ~]# cobbler system add --name=iron --hostname=iron.eng.example.com --gateway=192.168.20.168 --profile=rhel-workstation-7.4-x86_64 --dns-name=iron.eng.example.com --mac=0c:c4:7a:43:39:d8 --ip-address=192.168.20.26 --subnet=255.255.255.0 --status=production --interface=eth0 --static=1 exception on server: unhashable type: 'list' [root@cobbler ~]#
Regards, William
cobbler@lists.fedorahosted.org