#8519 Fedora container platform is incomplete
Closed: fixed 3 years ago by cheimes. Opened 3 years ago by abbra.

# ipa-server-upgrade 
Traceback (most recent call last):
  File "/usr/sbin/ipa-server-upgrade", line 10, in <module>
    from ipaserver.install.ipa_server_upgrade import ServerUpgrade
  File "/usr/lib/python3.8/site-packages/ipaserver/install/ipa_server_upgrade.py", line 9, in <module>
    from ipalib import api
  File "/usr/lib/python3.8/site-packages/ipalib/__init__.py", line 919, in <module>
    from ipalib import plugable
  File "/usr/lib/python3.8/site-packages/ipalib/plugable.py", line 42, in <module>
    from ipalib import errors
  File "/usr/lib/python3.8/site-packages/ipalib/errors.py", line 110, in <module>
    from ipalib import messages
  File "/usr/lib/python3.8/site-packages/ipalib/messages.py", line 41, in <module>
    from ipalib.capabilities import client_has_capability
  File "/usr/lib/python3.8/site-packages/ipalib/capabilities.py", line 28, in <module>
    from ipapython.ipautil import APIVersion
  File "/usr/lib/python3.8/site-packages/ipapython/ipautil.py", line 54, in <module>
    from ipaplatform.constants import User, Group
ImportError: cannot import name 'User' from 'ipaplatform.fedora_container.constants' (/usr/lib/python3.8/site-packages/ipaplatform/fedora_container/constants.py)

Steps to reproduce:

  1. podman run -ti -h master.ipa.test freeipa/freeipa-server:fedora-32, install IPA master with default parameters with DNS.
  2. In a separate console do podman exec -ti <container-name> /bin/bash and upgrade to any of IPA git master PR CI targets that succeed, for example, http://freeipa-org-pr-ci.s3-website.eu-central-1.amazonaws.com/jobs/5685e328-017f-11eb-a566-fa163e8fbded/rpms/freeipa-prci.repo
  3. Upgrade with dnf upgrade
  4. Run ipa-server-upgrade

Metadata Update from @abbra:
- Issue assigned to cheimes

3 years ago

Metadata Update from @cheimes:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/5161
- Issue priority set to: important
- Issue set to the milestone: FreeIPA 4.8.10
- Issue tagged with: containers

3 years ago

master:

  • 1684b0f Add missing fedora_container platform members

Does the 4.8.10 build have a bad patch? 4.8.10 upstream release and 4.8 branch do not have the User and Group classes. It's a 4.9-only thing.

https://pagure.io/freeipa/blob/a44bb2e0682e0a1e061bdd6673d04f511807fb34/f/ipapython/ipautil.py#_54

Metadata Update from @cheimes:
- Issue set to the milestone: FreeIPA 4.9 (was: FreeIPA 4.8.10)

3 years ago

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

3 years ago

Login to comment on this ticket.

Metadata