1

What specific command or configuration syntax must be used to resolve the module mismatch errors that are showing up in the logs of a dnf update -y command shown below?

CONTEXT:

1.) The Packer azure-arm builder is creating a RHEL8 image starting from the official Red Hat RHEL8 image available in Azure.

2.) A cloud-init startup script is used by the Packer azure-arm builder to provision the RHEL8 image.

3.) One of the commands run in the cloud-init script is dnf update -y.

4.) An error appears in the logs.

ERROR MESSAGES:

The following error messages are printed into the logs while the dnf update -y command is running:

....other lines with unrelated log data
azure-arm: ldb: module version mismatch in ../../modules/asq.c : ldb_version=1.4.2 module_version=2.2.0
azure-arm: ldb: failed to initialise module /usr/lib64/ldb/modules/ldb/asq.so : Unavailable
azure-arm: Could not open available domains
azure-arm: ldb: module version mismatch in ../../modules/asq.c : ldb_version=1.4.2 module_version=2.2.0
azure-arm: ldb: failed to initialise module /usr/lib64/ldb/modules/ldb/asq.so : Unavailable
azure-arm: Could not open available domains
azure-arm: ldb: module version mismatch in ../../modules/asq.c : ldb_version=1.4.2 module_version=2.2.0
azure-arm: ldb: failed to initialise module /usr/lib64/ldb/modules/ldb/asq.so : Unavailable
azure-arm: Could not open available domains
azure-arm: ldb: module version mismatch in ../../modules/asq.c : ldb_version=1.4.2 module_version=2.2.0
azure-arm: ldb: failed to initialise module /usr/lib64/ldb/modules/ldb/asq.so : Unavailable
azure-arm: Could not open available domains
....other lines with unrelated log data
azure-arm: ldb: module version mismatch in ../modules/paged_results.c : ldb_version=2.2.0 module_version=1.4.2
azure-arm: ldb: failed to initialise module /usr/lib64/ldb/modules/ldb/paged_results.so : Unavailable
azure-arm: (2021-06-10 21:36:53:114305): [sss_cache] [init_domains] (0x0020): Could not initialize connection to the confdb
azure-arm: Could not open available domains
azure-arm: (2021-06-10 21:36:53:114362): [sss_cache] [init_context] (0x0040): Initialization of sysdb connections failed
azure-arm: (2021-06-10 21:36:53:114380): [sss_cache] [main] (0x0020): Error initializing context for the application
azure-arm: ldb: module version mismatch in ../modules/paged_results.c : ldb_version=2.2.0 module_version=1.4.2
azure-arm: ldb: failed to initialise module /usr/lib64/ldb/modules/ldb/paged_results.so : Unavailable
azure-arm: (2021-06-10 21:36:53:127487): [sss_cache] [init_domains] (0x0020): Could not initialize connection to the confdb
azure-arm: Could not open available domains
azure-arm: (2021-06-10 21:36:53:127542): [sss_cache] [init_context] (0x0040): Initialization of sysdb connections failed
azure-arm: (2021-06-10 21:36:53:127561): [sss_cache] [main] (0x0020): Error initializing context for the application
....other lines with unrelated log data

What specific changes must be made to the cloud-init script so that these module mismatch errors will not be thrown?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.