clients can't connect to uyuni server, JWT token
Hi, since some time my clients can't contact the uyuni server. A "zypper ref" shows for example: zypper ref Permission to access 'https://xxxuyuni.xxx.de:443/rhn/manager/download/sle12_5-utilities-x86_64/re...' denied. Abort, retry, ignore? [a/r/i/...? shows all options] (a): i Last contact time in uyuni is also a long time ago. If I copy the url above in a browser, it get: Token is not valid to access repomd.xml in sle12_5-utilities-x86_64: JWT (claims->{"exp":1652861921,"iat":1621325921,"nbf":1621325801,"jti":"kufB_AaMdzSgIr92uq9cfA","org":1,"onlyChannels":["sle12_5-utilities-x86_64"]}) rejected due to invalid claims. Additional details: [The JWT is no longer valid - the evaluation time NumericDate{1666073380 -> 18.10.2022, 08:09:40 MESZ} is on or after the Expiration Time (exp=NumericDate{1652861921 -> 18.05.2022, 10:18:41 MESZ}) claim value.] It seems a token is to old; but how to renew it? Greets Torsten
Hi, Am Dienstag, 18. Oktober 2022, 08:30:12 CEST schrieb Haupt, Torsten:
Hi,
since some time my clients can't contact the uyuni server. A "zypper ref" shows for example: zypper ref Permission to access 'https://xxxuyuni.xxx.de:443/rhn/manager/download/sle12_5-utilities-x86_64/re...' denied. Abort, retry, ignore? [a/r/i/...? shows all options] (a): i
Last contact time in uyuni is also a long time ago.
If I copy the url above in a browser, it get: Token is not valid to access repomd.xml in sle12_5-utilities-x86_64: JWT (claims->{"exp":1652861921,"iat":1621325921,"nbf":1621325801,"jti":"kufB_AaMdzSgIr92uq9cfA","org":1,"onlyChannels":["sle12_5-utilities-x86_64"]}) rejected due to invalid claims. Additional details: [The JWT is no longer valid - the evaluation time NumericDate{1666073380 -> 18.10.2022, 08:09:40 MESZ} is on or after the Expiration Time (exp=NumericDate{1652861921 -> 18.05.2022, 10:18:41 MESZ}) claim value.]
It seems a token is to old; but how to renew it?
Execute a highstate on that client. A new token should be already available in the DB, but only a state.apply deliver it to the client. Is your server permanently "on", or do you turn "off" the most of the time and only start it when you want to manage something? We calculate the expire time and somewhen on the last 30% of the time we renew the tokens and ship them when you call a highstate. But when the server is "off" most of the time this mechanism might break. -- Regards Michael Calmer -------------------------------------------------------------------------- Michael Calmer SUSE Software Solutions Germany GmbH, Frankenstraße 146, D-90461 Nuernberg T: +49 (0) 911 74053 0 F: +49 (0) 911 74053575 - e-mail: Michael.Calmer@suse.com -------------------------------------------------------------------------- SUSE Software Solutions Germany GmbH, GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman (HRB 36809, AG Nürnberg)
Hi,
Hi,
Am Dienstag, 18. Oktober 2022, 08:30:12 CEST schrieb Haupt, Torsten:
Hi,
since some time my clients can't contact the uyuni server. A "zypper ref" shows for example: zypper ref Permission to access 'https://xxxuyuni.xxx.de:443/rhn/manager/download/sle12_5-utilities- x86_64/repodata/repomd.xml?eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2NTI4NjE5MjE sImlhdCI6MTYyMTMyNTkyMSwibmJmIjoxNjIxMzI1ODAxLCJqdGkiOiJrdWZCX0Fh TWR6U2dJcjkydXE5Y2ZBIiwib3JnIjoxLCJvbmx5Q2hhbm5lbHMiOlsic2xlMTJfNS11 dGlsaXRpZXMteDg2XzY0Il19.jqrKWNT4-qkaRIvcOBtypKPl9qfyE3SZBzcGPqishbk' denied. Abort, retry, ignore? [a/r/i/...? shows all options] (a): i
Last contact time in uyuni is also a long time ago.
If I copy the url above in a browser, it get: Token is not valid to access repomd.xml in sle12_5-utilities-x86_64: JWT (claims->{"exp":1652861921,"iat":1621325921,"nbf":1621325801,"jti":"ku fB_AaMdzSgIr92uq9cfA","org":1,"onlyChannels":["sle12_5-utilities-x86_6 4"]}) rejected due to invalid claims. Additional details: [The JWT is no longer valid - the evaluation time NumericDate{1666073380 -> 18.10.2022, 08:09:40 MESZ} is on or after the Expiration Time (exp=NumericDate{1652861921 -> 18.05.2022, 10:18:41 MESZ}) claim value.]
It seems a token is to old; but how to renew it?
Execute a highstate on that client. A new token should be already available in the DB, but only a state.apply deliver it to the client. Is your server permanently "on", or do you turn "off" the most of the time and only start it when you want to manage something? We calculate the expire time and somewhen on the last 30% of the time we renew the tokens and ship them when you call a highstate. But when the server is "off" most of the time this mechanism might break.
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/manager.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.py", 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.py", 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/systems.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_ucs,compute,docker,drac5,eaton_snmp,emerson,eps,evacuate,gce,hds_cb,hpblade,ibmblade,ibmz,idrac,ifmib,ilo,ilo2,ilo3,ilo3_ssh,ilo4,ilo4_ssh,ilo5,ilo5_ssh,ilo_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-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_ucs,compute,docker,drac5,eaton_snmp,emerson,eps,evacuate,gce,hds_cb,hpblade,ibmblade,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
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 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/manager.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.py", 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.py" , 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/systems.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,hpblade,ib
mblade,ibmz,idrac,ifmib,ilo,ilo2,ilo3,ilo3_ssh,ilo4,ilo4_ssh,ilo5,ilo5_ssh,il
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-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,hpblade,ib
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
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/manager.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.py", 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/systems.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,hpblade,i b
mblade,ibmz,idrac,ifmib,ilo,ilo2,ilo3,ilo3_ssh,ilo4,ilo4_ssh,ilo5,ilo5_ssh,i l
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-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,hpblade,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
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
participants (4)
-
Enno Gotthold
-
Haupt, Torsten
-
Julio Gonzalez
-
Michael Calmer