Skip to content

Instantly share code, notes, and snippets.

@ryanlerch
Created June 5, 2020 10:26
Show Gist options
  • Save ryanlerch/45fb65b48ff4082fd849b501a11e1cbe to your computer and use it in GitHub Desktop.
Save ryanlerch/45fb65b48ff4082fd849b501a11e1cbe to your computer and use it in GitHub Desktop.
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Read Certmap Rules
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Read Certmap Rules
2020-06-05T09:37:49Z DEBUG Updating managed permissions for certprofile
2020-06-05T09:37:49Z DEBUG Legacy permission Delete Certificate Profile not found
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Delete Certificate Profile
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Delete Certificate Profile
2020-06-05T09:37:49Z DEBUG Legacy permission Import Certificate Profile not found
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Import Certificate Profile
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Import Certificate Profile
2020-06-05T09:37:49Z DEBUG Legacy permission Modify Certificate Profile not found
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Modify Certificate Profile
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Modify Certificate Profile
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Read Certificate Profiles
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Read Certificate Profiles
2020-06-05T09:37:49Z DEBUG Updating managed permissions for config
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Read Global Configuration
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Read Global Configuration
2020-06-05T09:37:49Z DEBUG Updating managed permissions for cosentry
2020-06-05T09:37:49Z DEBUG Legacy permission Add Group Password Policy costemplate not found
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Add Group Password Policy costemplate
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Add Group Password Policy costemplate
2020-06-05T09:37:49Z DEBUG Legacy permission Delete Group Password Policy costemplate not found
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Delete Group Password Policy costemplate
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Delete Group Password Policy costemplate
2020-06-05T09:37:49Z DEBUG Legacy permission Modify Group Password Policy costemplate not found
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Modify Group Password Policy costemplate
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Modify Group Password Policy costemplate
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Read Group Password Policy costemplate
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Read Group Password Policy costemplate
2020-06-05T09:37:49Z DEBUG Updating managed permissions for dnsconfig
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Read DNS Configuration
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Read DNS Configuration
2020-06-05T09:37:49Z DEBUG Legacy permission Write DNS Configuration not found
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Write DNS Configuration
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Write DNS Configuration
2020-06-05T09:37:49Z DEBUG Updating managed permissions for dnsserver
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Modify DNS Servers Configuration
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Modify DNS Servers Configuration
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Read DNS Servers Configuration
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Read DNS Servers Configuration
2020-06-05T09:37:49Z DEBUG Updating managed permissions for dnszone
2020-06-05T09:37:49Z DEBUG Legacy permission add dns entries not found
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Add DNS Entries
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Add DNS Entries
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Manage DNSSEC keys
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Manage DNSSEC keys
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Manage DNSSEC metadata
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Manage DNSSEC metadata
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Read DNS Entries
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Read DNS Entries
2020-06-05T09:37:49Z DEBUG Legacy permission 'Read DNS Entries' not found
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Read DNSSEC metadata
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Read DNSSEC metadata
2020-06-05T09:37:49Z DEBUG Legacy permission remove dns entries not found
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Remove DNS Entries
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Remove DNS Entries
2020-06-05T09:37:49Z DEBUG Legacy permission update dns entries not found
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Update DNS Entries
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Update DNS Entries
2020-06-05T09:37:49Z DEBUG Updating managed permissions for fasagreement
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Add FAS Agreement
2020-06-05T09:37:49Z DEBUG Updating ACI for managed permission: System: Add FAS Agreement
2020-06-05T09:37:49Z DEBUG Adding ACI '(targetfilter = "(objectclass=fasagreement)")(version 3.0;acl "permission:System: Add FAS Agreement";allow (add) groupdn = "ldap:///cn=System: Add FAS Agreement,cn=permissions,cn=pbac,dc=example,dc=com";)' to cn=fasagreements,dc=example,dc=com
2020-06-05T09:37:49Z DEBUG Destroyed connection context.ldap2_139709993061392
2020-06-05T09:37:49Z ERROR Upgrade failed with no such entry
2020-06-05T09:37:49Z DEBUG Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/ipapython/ipaldap.py", line 1076, in error_handler
yield
File "/usr/lib/python3.7/site-packages/ipapython/ipaldap.py", line 1697, in update_entry
self.conn.modify_s(str(entry.dn), modlist)
File "/usr/lib64/python3.7/site-packages/ldap/ldapobject.py", line 629, in modify_s
return self.modify_ext_s(dn,modlist,None,None)
File "/usr/lib64/python3.7/site-packages/ldap/ldapobject.py", line 602, in modify_ext_s
resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
File "/usr/lib64/python3.7/site-packages/ldap/ldapobject.py", line 749, in result3
resp_ctrl_classes=resp_ctrl_classes
File "/usr/lib64/python3.7/site-packages/ldap/ldapobject.py", line 756, in result4
ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
File "/usr/lib64/python3.7/site-packages/ldap/ldapobject.py", line 329, in _ldap_call
reraise(exc_type, exc_value, exc_traceback)
File "/usr/lib64/python3.7/site-packages/ldap/compat.py", line 44, in reraise
raise exc_value
File "/usr/lib64/python3.7/site-packages/ldap/ldapobject.py", line 313, in _ldap_call
result = func(*args,**kwargs)
ldap.NO_SUCH_OBJECT: {'desc': 'No such object'}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/ipaserver/install/upgradeinstance.py", line 276, in __upgrade
self.modified = (ld.update(self.files) or self.modified)
File "/usr/lib/python3.7/site-packages/ipaserver/install/ldapupdate.py", line 974, in update
self._run_updates(all_updates)
File "/usr/lib/python3.7/site-packages/ipaserver/install/ldapupdate.py", line 935, in _run_updates
self._run_update_plugin(update['plugin'])
File "/usr/lib/python3.7/site-packages/ipaserver/install/ldapupdate.py", line 910, in _run_update_plugin
restart_ds, updates = self.api.Updater[plugin_name]()
File "/usr/lib/python3.7/site-packages/ipalib/frontend.py", line 1479, in __call__
return self.execute(**options)
File "/usr/lib/python3.7/site-packages/ipaserver/install/plugins/update_managed_permissions.py", line 381, in execute
anonymous_read_aci)
File "/usr/lib/python3.7/site-packages/ipaserver/install/plugins/update_managed_permissions.py", line 484, in update_permission
permission_plugin.update_aci(entry)
File "/usr/lib/python3.7/site-packages/ipaserver/plugins/permission.py", line 643, in update_aci
return self._replace_aci(permission_entry, old_name, new_acistring)
File "/usr/lib/python3.7/site-packages/ipaserver/plugins/permission.py", line 668, in _replace_aci
ldap.update_entry(acientry)
File "/usr/lib/python3.7/site-packages/ipapython/ipaldap.py", line 1697, in update_entry
self.conn.modify_s(str(entry.dn), modlist)
File "/usr/lib64/python3.7/contextlib.py", line 130, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python3.7/site-packages/ipapython/ipaldap.py", line 1086, in error_handler
raise errors.NotFound(reason=arg_desc or 'no such entry')
ipalib.errors.NotFound: no such entry
2020-06-05T09:37:49Z DEBUG Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/ipapython/ipaldap.py", line 1076, in error_handler
yield
File "/usr/lib/python3.7/site-packages/ipapython/ipaldap.py", line 1697, in update_entry
self.conn.modify_s(str(entry.dn), modlist)
File "/usr/lib64/python3.7/site-packages/ldap/ldapobject.py", line 629, in modify_s
return self.modify_ext_s(dn,modlist,None,None)
File "/usr/lib64/python3.7/site-packages/ldap/ldapobject.py", line 602, in modify_ext_s
resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
File "/usr/lib64/python3.7/site-packages/ldap/ldapobject.py", line 749, in result3
resp_ctrl_classes=resp_ctrl_classes
File "/usr/lib64/python3.7/site-packages/ldap/ldapobject.py", line 756, in result4
ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
File "/usr/lib64/python3.7/site-packages/ldap/ldapobject.py", line 329, in _ldap_call
reraise(exc_type, exc_value, exc_traceback)
File "/usr/lib64/python3.7/site-packages/ldap/compat.py", line 44, in reraise
raise exc_value
File "/usr/lib64/python3.7/site-packages/ldap/ldapobject.py", line 313, in _ldap_call
result = func(*args,**kwargs)
ldap.NO_SUCH_OBJECT: {'desc': 'No such object'}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/ipaserver/install/upgradeinstance.py", line 276, in __upgrade
self.modified = (ld.update(self.files) or self.modified)
File "/usr/lib/python3.7/site-packages/ipaserver/install/ldapupdate.py", line 974, in update
self._run_updates(all_updates)
File "/usr/lib/python3.7/site-packages/ipaserver/install/ldapupdate.py", line 935, in _run_updates
self._run_update_plugin(update['plugin'])
File "/usr/lib/python3.7/site-packages/ipaserver/install/ldapupdate.py", line 910, in _run_update_plugin
restart_ds, updates = self.api.Updater[plugin_name]()
File "/usr/lib/python3.7/site-packages/ipalib/frontend.py", line 1479, in __call__
return self.execute(**options)
File "/usr/lib/python3.7/site-packages/ipaserver/install/plugins/update_managed_permissions.py", line 381, in execute
anonymous_read_aci)
File "/usr/lib/python3.7/site-packages/ipaserver/install/plugins/update_managed_permissions.py", line 484, in update_permission
permission_plugin.update_aci(entry)
File "/usr/lib/python3.7/site-packages/ipaserver/plugins/permission.py", line 643, in update_aci
return self._replace_aci(permission_entry, old_name, new_acistring)
File "/usr/lib/python3.7/site-packages/ipaserver/plugins/permission.py", line 668, in _replace_aci
ldap.update_entry(acientry)
File "/usr/lib/python3.7/site-packages/ipapython/ipaldap.py", line 1697, in update_entry
self.conn.modify_s(str(entry.dn), modlist)
File "/usr/lib64/python3.7/contextlib.py", line 130, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python3.7/site-packages/ipapython/ipaldap.py", line 1086, in error_handler
raise errors.NotFound(reason=arg_desc or 'no such entry')
ipalib.errors.NotFound: no such entry
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/ipaserver/install/service.py", line 603, in start_creation
run_step(full_msg, method)
File "/usr/lib/python3.7/site-packages/ipaserver/install/service.py", line 589, in run_step
method()
File "/usr/lib/python3.7/site-packages/ipaserver/install/upgradeinstance.py", line 284, in __upgrade
raise RuntimeError(e)
RuntimeError: no such entry
2020-06-05T09:37:49Z DEBUG [error] RuntimeError: no such entry
2020-06-05T09:37:49Z DEBUG [cleanup]: stopping directory server
2020-06-05T09:37:49Z DEBUG Destroyed connection context.ldap2_139710053287760
2020-06-05T09:37:49Z DEBUG Starting external process
2020-06-05T09:37:49Z DEBUG args=['/bin/systemctl', 'stop', '[email protected]']
2020-06-05T09:37:51Z DEBUG Process finished, return code=0
2020-06-05T09:37:51Z DEBUG stdout=
2020-06-05T09:37:51Z DEBUG stderr=
2020-06-05T09:37:51Z DEBUG Stop of [email protected] complete
2020-06-05T09:37:51Z DEBUG step duration: dirsrv __stop_instance 1.74 sec
2020-06-05T09:37:51Z DEBUG [cleanup]: restoring configuration
2020-06-05T09:37:51Z DEBUG Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
2020-06-05T09:37:51Z DEBUG Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
2020-06-05T09:37:51Z DEBUG Saving StateFile to '/var/lib/ipa/sysrestore/sysrestore.state'
2020-06-05T09:37:51Z DEBUG Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
2020-06-05T09:37:51Z DEBUG Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
2020-06-05T09:37:51Z DEBUG Saving StateFile to '/var/lib/ipa/sysrestore/sysrestore.state'
2020-06-05T09:37:51Z DEBUG Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
2020-06-05T09:37:51Z DEBUG Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
2020-06-05T09:37:51Z DEBUG Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
2020-06-05T09:37:51Z DEBUG Saving StateFile to '/var/lib/ipa/sysrestore/sysrestore.state'
2020-06-05T09:37:51Z DEBUG step duration: dirsrv __restore_config 0.07 sec
2020-06-05T09:37:51Z ERROR IPA server upgrade failed: Inspect /var/log/ipaupgrade.log and run command ipa-server-upgrade manually.
2020-06-05T09:37:51Z DEBUG File "/usr/lib/python3.7/site-packages/ipapython/admintool.py", line 179, in execute
return_value = self.run()
File "/usr/lib/python3.7/site-packages/ipaserver/install/ipa_server_upgrade.py", line 56, in run
raise admintool.ScriptError(str(e))
2020-06-05T09:37:51Z DEBUG The ipa-server-upgrade command failed, exception: ScriptError: ('IPA upgrade failed.', 1)
2020-06-05T09:37:51Z ERROR ('IPA upgrade failed.', 1)
2020-06-05T09:37:51Z ERROR The ipa-server-upgrade command failed. See /var/log/ipaupgrade.log for more information
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment