#8518 Upgrade F32 to F33 fails in DNS upgrade code
Closed: fixed a month ago by cheimes. Opened a month ago by abbra.

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)

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

a month ago

master:

  • 2c393c0 Pre-populate IP addresses for the name server upgrades

ipa-4-8:

  • 8f94e4a Pre-populate IP addresses for the name server upgrades

Metadata Update from @cheimes:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

a month ago

Metadata Update from @abbra:
- Custom field affects_doc adjusted to on
- Custom field knownissue adjusted to on
- Issue status updated to: Open (was: Closed)

a month ago

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:

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.

master:

  • 38d083e configure_dns_resolver: call self.restore_context

ipa-4-8:

  • 4ba71ae configure_dns_resolver: call self.restore_context

Metadata Update from @cheimes:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

a month ago

Login to comment on this ticket.

Metadata