2018-03-19T17:26:58Z ERROR IPA server upgrade failed: Inspect /var/log/ipaupgrade.log and run command ipa-server-upgrade manually. 2018-03-19T17:26:58Z DEBUG File "/usr/lib/python3.6/site-packages/ipapython/admintool.py", line 174, in execute return_value = self.run() File "/usr/lib/python3.6/site-packages/ipaserver/install/ipa_server_upgrade.py", line 50, in run server.upgrade() File "/usr/lib/python3.6/site-packages/ipaserver/install/server/upgrade.py", line 1953, in upgrade upgrade_configuration() File "/usr/lib/python3.6/site-packages/ipaserver/install/server/upgrade.py", line 1656, in upgrade_configuration "ipa.conf.template")) File "/usr/lib/python3.6/site-packages/ipaserver/install/server/upgrade.py", line 191, in upgrade_file update_conf(sub_dict, filename, template) File "/usr/lib/python3.6/site-packages/ipaserver/install/server/upgrade.py", line 117, in update_conf template = ipautil.template_file(template_filename, sub_dict) File "/usr/lib/python3.6/site-packages/ipapython/ipautil.py", line 313, in template_file return template_str(f.read(), vars) File "/usr/lib/python3.6/site-packages/ipapython/ipautil.py", line 300, in template_str val = string.Template(txt).substitute(vars) File "/usr/lib64/python3.6/string.py", line 130, in substitute return self.pattern.sub(convert, self.template) File "/usr/lib64/python3.6/string.py", line 123, in convert return str(mapping[named]) 2018-03-19T17:26:58Z DEBUG The ipa-server-upgrade command failed, exception: KeyError: 'WSGI_PREFIX_DIR' 2018-03-19T17:26:58Z ERROR Unexpected error - see /var/log/ipaupgrade.log for details: KeyError: 'WSGI_PREFIX_DIR' 2018-03-19T17:26:58Z ERROR The ipa-server-upgrade command failed. See /var/log/ipaupgrade.log for more information
Metadata Update from @abbra: - Issue assigned to abbra
@abbra 's proposed fix for this was incomplete, it just causes the upgrade to fail on GSSAPI_SESSION_KEY instead.
GSSAPI_SESSION_KEY
So I went poking about for what caused this in the first place, and I believe it's e6c707b . So it seems logical that we need to add all the keys that commit added to httpinstance.py, to the sub_dict dict here as well.
httpinstance.py
sub_dict
I've adjusted the patch in the downstream package to do this, and sent -4 builds to Rawhide and F28, which I'll edit into the update and test once they're done:
https://src.fedoraproject.org/rpms/freeipa/c/8bb66c5db75ba324cc7af8b550649a7573e8fb46?branch=master
master:
Metadata Update from @tdudlak: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
ipa-4-6:
Login to comment on this ticket.