freeipa-container icon indicating copy to clipboard operation
freeipa-container copied to clipboard

rocky-9 update failed.

Open f3rr opened this issue 9 months ago • 2 comments

Pulled new rocky-9 image, update process started and failed. The problem is that bind cannot start. as far as im using the rocky-9 tag i can only assume: old image was: freeipa/freeipa-server:rocky-9-4.10.1 new image is: freeipa/freeipa-server:rocky-9-4.10.2 Something in rocky is broken, see: https://forums.rockylinux.org/t/upgrade-to-rocky9-3-breaks-freeipa-running-instalation-bind-core-dump/13709/10 i got the same error message.

f3rr avatar May 04 '24 18:05 f3rr

If I understand the thread at the forums.rockylinux.org, that issues is not container-specific as others have experienced it outside of containerized installation. Is that a fair assessment?

adelton avatar May 04 '24 20:05 adelton

There is an update to bind to fix security issue that changes ABI and requires a corresponding bind-dyndb-ldap update. They have to be installed together.

abbra avatar May 05 '24 03:05 abbra

The quay.io/freeipa/freeipa-server:rocky-9 currently contains

bind-9.16.23-14.el9_3.4.x86_64
bind-dyndb-ldap-11.9-8.el9_3.3.x86_64

Is this combination problematic? It passed our GitHub Action tests ...

When similar situation happened in RHEL 8 a couple of weeks ago, the GitHub Action testing caught the problem.

I remember that in the past (many years ago) we talked about releasing those in the same erratas, and ideally having rpm dependencies to avoid installations where the ABIs would be mismatched ...

adelton avatar May 05 '24 06:05 adelton

They should be released in the dependant errata. This was tested and ensured in RHEL.

abbra avatar May 05 '24 13:05 abbra

See https://access.redhat.com/solutions/7065748

Correct RHEL 9 versions:

  • bind-9.16.23-14.el9_3.4 or newer
  • bind-dyndb-ldap-11.9-8.el9_3.3 or newer

abbra avatar May 05 '24 13:05 abbra

These are exactly the versions that are in the current quay.io/freeipa/freeipa-server:rocky-9.

@f3rr Can you run

$ podman run --rm --entrypoint rpm quay.io/freeipa/freeipa-server:rocky-9 -q bind bind-dyndb-ldap

(or equivalent) and check if you have an image with the package versions above?

adelton avatar May 05 '24 14:05 adelton

This is what i have in my container:

[root@ipa1 /]# rpm -qa | grep ^bind bind-license-9.16.23-14.el9_3.4.noarch bind-libs-9.16.23-14.el9_3.4.x86_64 bind-utils-9.16.23-14.el9_3.4.x86_64 bind-dnssec-doc-9.16.23-14.el9_3.4.noarch bind-dnssec-utils-9.16.23-14.el9_3.4.x86_64 bind-9.16.23-14.el9_3.4.x86_64 bind-dyndb-ldap-11.9-8.el9_3.3.x86_64 [root@ipa1 /]#

bind does start sometimes, sometimes dont. Its random. Temporary fix is to start the container and if IPA does not come up i have to start bind manually up to 2-10 times until the service starts, after that ipactl restart, and my IPA is up and running again.

No i'm confused a bit, i tought rocky-9 is based on 9.4 but it looks like its 9.3.

f3rr avatar May 05 '24 14:05 f3rr

Note that versions are not enough. The packages had to be built in the this order as well. Eg first bind, then bind-dyndb-ldap against that bind build.

abbra avatar May 05 '24 18:05 abbra

The thread at https://forums.rockylinux.org/t/upgrade-to-rocky9-3-breaks-freeipa-running-instalation-bind-core-dump/13709 indicates that the packages got updated in Rocky Linux 9.3 and will get upgraded for Rocky Linux 9.4. It is possible that the order they got built in 9.3 did not end up as a working solution.

It seems AlmaLinux now has 9.4 out so you might want to test with quay.io/freeipa/freeipa-server:almalinux-9.

In any case, since this seems to be reproduced by multiple people on multiple OSes outside of the containerized deployment, I'd conclude that it is a generic problem with bind and bind-dyndb-ldap package builds that needs to be solved in those operating system builds. It's not a FreeIPA containerization specific issue.

Hence closing this issue.

adelton avatar May 09 '24 12:05 adelton