Upgrade from Fedora 32 to Fedora 33 with FreeIPA 4.8.10 fails in new DNS upgrade code: https://openqa.fedoraproject.org/tests/677717#
2020-09-26T10:56:40Z ERROR IPA server upgrade failed: Inspect /var/log/ipaupgrade.log and run command ipa-server-upgrade manually. 2020-09-26T10:56:40Z DEBUG File "/usr/lib/python3.9/site-packages/ipapython/admintool.py", line 180, in execute return_value = self.run() File "/usr/lib/python3.9/site-packages/ipaserver/install/ipa_server_upgrade.py", line 54, in run server.upgrade() File "/usr/lib/python3.9/site-packages/ipaserver/install/server/upgrade.py", line 1844, in upgrade upgrade_configuration() File "/usr/lib/python3.9/site-packages/ipaserver/install/server/upgrade.py", line 1682, in upgrade_configuration upgrade_bind(fstore) File "/usr/lib/python3.9/site-packages/ipaserver/install/server/upgrade.py", line 1405, in upgrade_bind bind.setup_resolv_conf() File "/usr/lib/python3.9/site-packages/ipaserver/install/bindinstance.py", line 1140, in setup_resolv_conf tasks.configure_dns_resolver( File "/usr/lib/python3.9/site-packages/ipaplatform/redhat/tasks.py", line 624, in configure_dns_resolver assert nameservers and isinstance(nameservers, list)
@cheimes please have a look.
Tarball with logs attached <img alt="role_deploy_domain_controller_check-var_log.tar.gz" src="/freeipa/issue/raw/files/59fbaa9d902380c67856bb863c0b9d635f7e5b1f9e209a81f0719445ec08850a-role_deploy_domain_controller_check-var_log.tar.gz" />
PR: https://github.com/freeipa/freeipa/pull/5153
F32 to F33 upgrade in OpenQA succeeds with the PR: https://openqa.fedoraproject.org/tests/overview?distri=fedora&version=33&build=Update-FEDORA-2020-e9e815177e where previous version (without the PR) failed.
Metadata Update from @abbra: - Issue assigned to abbra
master:
ipa-4-8:
Metadata Update from @cheimes: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Metadata Update from @abbra: - Custom field affects_doc adjusted to on - Custom field knownissue adjusted to on - Issue status updated to: Open (was: Closed)
The issue is still there as OpenQA fails to run upgrade code. https://openqa.fedoraproject.org/tests/679578#step/role_deploy_domain_controller_check/3
Sadly, ipaupgrade.log has no real details. I tried to reproduce it locally and was able to get the same issue in a VM with Fedora Rawhide and freeipa-4.8.10-4.fc34 build from Koji. Below is a screen shot of the exception I get in interactive Python session:
ipaupgrade.log
freeipa-4.8.10-4.fc34
<img alt="Screenshot_from_2020-09-29_10-40-04.png" src="/freeipa/issue/raw/files/941da2fe95ddfeb83ae50b06db00d5d394e57b3de1dd1ab94da8a7beb1b9c248-Screenshot_from_2020-09-29_10-40-04.png" />
Looks like that the call in base/tasks.py would use local tasks instance which does not have implemented restore_context and that fails.
base/tasks.py
tasks
restore_context
Log in to comment on this ticket.