Hi, I followed the instructions on https://www.uyuni-project.org/pages/patches.html and installed the latest update today. But cobbler still doesn't start. Oct 25 07:26:55 smduyuni cobblerd[30160]: INFO | running: ['/usr/sbin/selinuxenabled'] Oct 25 07:26:55 smduyuni cobblerd[30160]: INFO | received on stdout: Oct 25 07:26:55 smduyuni cobblerd[30160]: INFO | Automigration NOT executed Oct 25 07:26:55 smduyuni cobblerd[30160]: INFO | python3-hivex not found. If you need Automatic Windows Installation support, please install. Oct 25 07:26:55 smduyuni cobblerd[30160]: INFO | 11 breeds and 131 OS versions read from the signature file Oct 25 07:26:55 smduyuni cobblerd[30160]: Traceback (most recent call last): Oct 25 07:26:55 smduyuni cobblerd[30160]: File "/usr/lib/python3.6/site-packages/cobbler/cobbler_collections/manager.py", line 212, in deserialize Oct 25 07:26:55 smduyuni cobblerd[30160]: serializer.deserialize(collection) Oct 25 07:26:55 smduyuni cobblerd[30160]: File "/usr/lib/python3.6/site-packages/cobbler/serializer.py", line 128, in deserialize Oct 25 07:26:55 smduyuni cobblerd[30160]: storage_module.deserialize(collection, topological) Oct 25 07:26:55 smduyuni cobblerd[30160]: File "/usr/lib/python3.6/site-packages/cobbler/modules/serializers/file.py", line 160, in deserialize Oct 25 07:26:55 smduyuni cobblerd[30160]: collection.from_list(datastruct) Oct 25 07:26:55 smduyuni cobblerd[30160]: File "/usr/lib/python3.6/site-packages/cobbler/cobbler_collections/collection.py", line 201, in from_list Oct 25 07:26:55 smduyuni cobblerd[30160]: item = self.factory_produce(self.api, item_dict) Oct 25 07:26:55 smduyuni cobblerd[30160]: File "/usr/lib/python3.6/site-packages/cobbler/cobbler_collections/systems.py", line 50, in factory_produce Oct 25 07:26:55 smduyuni cobblerd[30160]: new_system.from_dict(item_dict) Oct 25 07:26:55 smduyuni cobblerd[30160]: File "/usr/lib/python3.6/site-packages/cobbler/items/system.py", line 826, in from_dict Oct 25 07:26:55 smduyuni cobblerd[30160]: super().from_dict(dictionary) Oct 25 07:26:55 smduyuni cobblerd[30160]: File "/usr/lib/python3.6/site-packages/cobbler/items/item.py", line 895, in from_dict Oct 25 07:26:55 smduyuni cobblerd[30160]: raise KeyError("The following keys supplied could not be set: %s" % result.keys()) Oct 25 07:26:55 smduyuni cobblerd[30160]: KeyError: "The following keys supplied could not be set: dict_keys(['ldap_enabled', 'monit_enabled', 'redhat_management_server', 'ldap_type', 'template_remote_kickstarts'])" Oct 25 07:26:55 smduyuni cobblerd[30160]: The above exception was the direct cause of the following exception: Oct 25 07:26:55 smduyuni cobblerd[30160]: Traceback (most recent call last): Oct 25 07:26:55 smduyuni cobblerd[30160]: File "/usr/bin/cobblerd", line 92, in main Oct 25 07:26:55 smduyuni cobblerd[30160]: execute_settings_automigration=options.automigration) Oct 25 07:26:55 smduyuni cobblerd[30160]: File "/usr/lib/python3.6/site-packages/cobbler/api.py", line 105, in __init__ Oct 25 07:26:55 smduyuni cobblerd[30160]: self.deserialize() Oct 25 07:26:55 smduyuni cobblerd[30160]: File "/usr/lib/python3.6/site-packages/cobbler/api.py", line 1797, in deserialize Oct 25 07:26:55 smduyuni cobblerd[30160]: return self._collection_mgr.deserialize() Oct 25 07:26:55 smduyuni cobblerd[30160]: File "/usr/lib/python3.6/site-packages/cobbler/cobbler_collections/manager.py", line 215, in deserialize Oct 25 07:26:55 smduyuni cobblerd[30160]: % (collection.collection_type(), e)) from e Oct 25 07:26:55 smduyuni cobblerd[30160]: cobbler.cexceptions.CX: 'serializer: error loading collection system: "The following keys supplied could not be set: dict_keys([\'ldap_enabled\', \'monit_enabled\', \'redhat_management_server\', \'ldap_type\', \'template_remote_kickstarts\'])". Check /etc/cobbler/modu> Oct 25 07:26:55 smduyuni systemd[1]: cobblerd.service: Main process exited, code=exited, status=1/FAILURE Regards, Torsten
-----Original Message----- From: Julio Gonzalez via Uyuni Users [mailto:users@lists.uyuni-project.org] Sent: Wednesday, October 19, 2022 11:29 AM To: General discussion related to the openSUSE Uyuni project
Cc: Enno Gotthold ; Enno Gotthold via Uyuni Users ; Julio Gonzalez Subject: [EXTERN] Re: [EXTERN] Re: clients can't connect to uyuni server, JWT token El miércoles, 19 de octubre de 2022 9:14:41 (CEST) Enno Gotthold via Uyuni Users escribió:
Hi Thorsten,
Cobbler Upstream (& downstream) Maintainer here. My collegue Pablo wrote a patch for this recently. It is merged into Uyuni and integrated but I guess it has not yet made it into a release.
For details see here:
- https://github.com/uyuni-project/uyuni/pull/5971 - https://github.com/cobbler/cobbler/pull/3258
Speaking about the Uyuni PR: It is part of the 2022.10 release, but it seems the change was not right, so in some cases the migration does not work correctly, as some users already reported.
Pablo is preparing the fix now, and we'll be releasing a patch for this, without waiting for a new Uyuni version.
Although the upstream PR for Cobbler is open at the time of writing, an early version of his PR is already integrated into the Cobbler Uyuni version.
To fix this manually right now you basically have to perform the steps the script from the Cobbler PR automates.
Am Dienstag, 18. Oktober 2022, 10:23:03 CEST schrieb Haupt, Torsten:
The server is permanently "on". I tried to execute the high state, without success. The Eventlog shows: This action will be executed after 10/18/22 10:03:18 AM CEST This action's status is: Failed. The client has not yet completed this action.
Looking at the server, I recognized, that cobbler has a problem, too. Is cobbler necessary for all the actions? A restart of cobbler shows: Oct 18 10:14:24 smduyuni cobblerd[3760]: INFO | running: ['/usr/sbin/selinuxenabled'] Oct 18 10:14:24 smduyuni cobblerd[3760]: INFO | received on stdout: Oct 18 10:14:24 smduyuni cobblerd[3760]: INFO | | Automigration NOT executed Oct 18 10:14:24 smduyuni cobblerd[3760]: INFO | python3-hivex not found. If you need Automatic Windows | Installation support, please install. Oct 18 10:14:24 smduyuni cobblerd[3760]: INFO | 11 breeds and 131 OS versions read from the signature file Oct 18 10:14:24 smduyuni cobblerd[3760]: Traceback (most recent call last): Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/lib/python3.6/site-packages/cobbler/cobbler_collections/manage r.py", line 212, in deserialize Oct 18 10:14:24 smduyuni cobblerd[3760]:
serializer.deserialize(collection) Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/lib/python3.6/site-packages/cobbler/serializer.py", line 128, in
deserialize Oct 18 10:14:24 smduyuni cobblerd[3760]: storage_module.deserialize(collection, topological) Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/lib/python3.6/site-packages/cobbler/modules/serializers/file.p y", line 160, in deserialize Oct 18 10:14:24 smduyuni cobblerd[3760]: collection.from_list(datastruct) Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/lib/python3.6/site-packages/cobbler/cobbler_collections/collection.p y" , line 201, in from_list Oct 18 10:14:24 smduyuni cobblerd[3760]: item = self.factory_produce(self.api, item_dict) Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/lib/python3.6/site-packages/cobbler/cobbler_collections/system s.py", line 50, in factory_produce Oct 18 10:14:24 smduyuni cobblerd[3760]: new_system.from_dict(item_dict) Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/lib/python3.6/site-packages/cobbler/items/system.py", line 826, in from_dict Oct 18 10:14:24 smduyuni cobblerd[3760]: super().from_dict(dictionary) Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/lib/python3.6/site-packages/cobbler/items/item.py", line 890, in from_dict Oct 18 10:14:24 smduyuni cobblerd[3760]: setattr(self, lowered_key, dictionary[key]) Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/lib/python3.6/site-packages/cobbler/items/system.py", line 1801, in power_type Oct 18 10:14:24 smduyuni cobblerd[3760]: power_manager.validate_power_type(power_type) Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/lib/python3.6/site-packages/cobbler/power_manager.py", line 71, in validate_power_type Oct 18 10:14:24 smduyuni cobblerd[3760]: raise CX("power management type must be one of: %s" % ",".join(power_types)) Oct 18 10:14:24 smduyuni cobblerd[3760]: cobbler.cexceptions.CX: 'power management type must be one of: aliyun,alom,amt,apc,apc_snmp,azure_arm,bladecenter,brocade,cisco_mds ,cisco _u cs,compute,docker,drac5,eaton_snmp,emerson,eps,evacuate,gce,hds_cb,hpb lade,i b
o_moon> Oct 18 10:14:24 smduyuni cobblerd[3760]: The above exception was the direct cause of the following exception: Oct 18 10:14:24 smduyuni cobblerd[3760]: Traceback (most recent call last): Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/bin/cobblerd", line 92, in main Oct 18 10:14:24 smduyuni cobblerd[3760]: execute_settings_automigration=options.automigration) Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/lib/python3.6/site-packages/cobbler/api.py", line 105, in __init__ Oct 18 10:14:24 smduyuni cobblerd[3760]: self.deserialize() Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/lib/python3.6/site-packages/cobbler/api.py", line 1797, in deserialize Oct 18 10:14:24 smduyuni cobblerd[3760]: return
self._collection_mgr.deserialize() Oct 18 10:14:24 smduyuni cobblerd[3760]: File
"/usr/lib/python3.6/site-
mblade,ibmz,idrac,ifmib,ilo,ilo2,ilo3,ilo3_ssh,ilo4,ilo4_ssh,ilo5,ilo5 _ssh,i l packages/cobbler/cobbler_collections/manager.py",
line 215, in deserialize Oct 18 10:14:24 smduyuni cobblerd[3760]: % (collection.collection_type(), e)) from e Oct 18 10:14:24 smduyuni cobblerd[3760]: cobbler.cexceptions.CX: "serializer: error loading collection system: 'power management type must be one of: aliyun,alom,amt,apc,apc_snmp,azure_arm,bladecenter,brocade,cisco_mds ,cisco _u cs,compute,docker,drac5,eaton_snmp,emerson,eps,evacuate,gce,hds_cb,hpb lade,i b mblade,ibmz,idrac,ifmib,ilo,ilo2,ilo3> Oct 18 10:14:24 smduyuni systemd[1]: cobblerd.service: Main process exited, code=exited, status=1/FAILURE
Greets Torsten
Regards, Enno
-- Julio González Gil Release Engineer, SUSE Manager and Uyuni jgonzalez@suse.com