cs9 wallaby - ERROR: FileNotFoundError: [Errno 2] No such file or directory: '/etc/tomcat/tomcat.conf'

Bug #2033357 reported by Bhagyashri Shewale
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
In Progress
Critical
Unassigned

Bug Description

configure FreeIPA/ Deploy FreeIPA is failing

"Configuring certificate server (pki-tomcatd). Estimated time: 3 minutes", " [1/30]: configuring certificate server instance", " [error] RuntimeError: CA configuration failed."]}

Error logs:

ERROR: FileNotFoundError: [Errno 2] No such file or directory: '/etc/tomcat/tomcat.conf' File "/usr/lib/python3.9/site-packages/pki/server/pkispawn.py", line 588, in main scriptlet.spawn(deployer) File "/usr/lib/python3.9/site-packages/pki/server/deployment/scriptlets/initialization.py", line 124, in spawn instance.load() File "/usr/lib/python3.9/site-packages/pki/server/instance.py", line 373, in load super().load() File "/usr/lib/python3.9/site-packages/pki/server/_init.py", line 1168, in load self.load_config() File "/usr/lib/python3.9/site-packages/pki/server/init.py", line 1177, in load_config pki.util.load_properties(Tomcat.TOMCAT_CONF, self.config) File "/usr/lib/python3.9/site-packages/pki/util.py", line 359, in load_properties with open(filename, encoding='utf-8') as f: 2023-08-28T23:11:37Z CRITICAL Failed to configure CA instance 2023-08-28T23:11:37Z CRITICAL See the installation logs and the following files/directories for more information: 2023-08-28T23:11:37Z CRITICAL /var/log/pki/pki-tomcat 2023-08-28T23:11:37Z DEBUG Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/ipaserver/install/service.py", line 686, in start_creation run_step(full_msg, method) File "/usr/lib/python3.9/site-packages/ipaserver/install/service.py", line 672, in run_step method() File "/usr/lib/python3.9/site-packages/ipaserver/install/cainstance.py", line 651, in __spawn_instance DogtagInstance.spawn_instance( File "/usr/lib/python3.9/site-packages/ipaserver/install/dogtaginstance.py", line 227, in spawn_instance self.handle_setup_error(e) File "/usr/lib/python3.9/site-packages/ipaserver/install/dogtaginstance.py", line 604, in handle_setup_error raise RuntimeError( RuntimeError: CA configuration failed. 2023-08-28T23:11:37Z DEBUG [error] RuntimeError: CA configuration failed. 2023-08-28T23:11:37Z DEBUG Removing /root/.dogtag/pki-tomcat/ca 2023-08-28T23:11:37Z 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/ipapython/install/cli.py", line 344, in run return cfgr.run() File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 360, in run return self.execute() File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 386, in execute for rval in self._executor(): File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 435, in __runner exc_handler(exc_info) File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 468, in _handle_execute_exception self._handle_exception(exc_info) File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 458, in _handle_exception six.reraise(*exc_info) File "/usr/lib/python3.9/site-packages/six.py", line 709, in reraise raise value File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 425, in __runner step() File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 419, in step_next return next(self.gen) File "/usr/lib/python3.9/site-packages/ipapython/install/util.py", line 81, in run_generator_with_yield_from six.reraise(*exc_info) File "/usr/lib/python3.9/site-packages/six.py", line 709, in reraise raise value File "/usr/lib/python3.9/site-packages/ipapython/install/util.py", line 59, in run_generator_with_yield_from value = gen.send(prev_value) File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 663, in _configure next(executor) File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 435, in __runner exc_handler(exc_info) File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 468, in _handle_execute_exception self._handle_exception(exc_info) File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 526, in _handle_exception self.parent._handle_exception(exc_info) File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 458, in _handle_exception six.reraise(*exc_info) File "/usr/lib/python3.9/site-packages/six.py", line 709, in reraise raise value File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 523, in _handle_exception super(ComponentBase, self)._handle_exception(exc_info) File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 458, in _handle_exception six.reraise(*exc_info) File "/usr/lib/python3.9/site-packages/six.py", line 709, in reraise raise value File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 425, in __runner step() File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 419, in step_next return next(self.gen) File "/usr/lib/python3.9/site-packages/ipapython/install/util.py", line 81, in run_generator_with_yield_from six.reraise(*exc_info) File "/usr/lib/python3.9/site-packages/six.py", line 709, in reraise raise value File "/usr/lib/python3.9/site-packages/ipapython/install/util.py", line 59, in run_generator_with_yield_from value = gen.send(prev_value) File "/usr/lib/python3.9/site-packages/ipapython/install/common.py", line 65, in _install for unused in self._installer(self.parent): File "/usr/lib/python3.9/site-packages/ipaserver/install/server/init_.py", line 566, in main master_install(self) File "/usr/lib/python3.9/site-packages/ipaserver/install/server/install.py", line 278, in decorated func(installer) File "/usr/lib/python3.9/site-packages/ipaserver/install/server/install.py", line 914, in install ca.install_step_0(False, None, options, custodia=custodia) File "/usr/lib/python3.9/site-packages/ipaserver/install/ca.py", line 422, in install_step_0 ca.configure_instance( File "/usr/lib/python3.9/site-packages/ipaserver/install/cainstance.py", line 506, in configure_instance self.start_creation(runtime=runtime) File "/usr/lib/python3.9/site-packages/ipaserver/install/service.py", line 686, in start_creation run_step(full_msg, method) File "/usr/lib/python3.9/site-packages/ipaserver/install/service.py", line 672, in run_step method() File "/usr/lib/python3.9/site-packages/ipaserver/install/cainstance.py", line 651, in __spawn_instance DogtagInstance.spawn_instance( File "/usr/lib/python3.9/site-packages/ipaserver/install/dogtaginstance.py", line 227, in spawn_instance self.handle_setup_error(e) File "/usr/lib/python3.9/site-packages/ipaserver/install/dogtaginstance.py", line 604, in handle_setup_error raise RuntimeError( 2023-08-28T23:11:37Z DEBUG The ipa-server-install command failed, exception: RuntimeError: CA configuration failed. 2023-08-28T23:11:37Z ERROR CA configuration failed. 2023-08-28T23:11:37Z ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information

┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ current-tripleo ┃ tripleo-ci-testing ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ openstack-tripleo-heat-templates-14.3.1-0.20230816173924.9f4224d.el9 │ openstack-tripleo-heat-templates-14.3.1-0.20230824220000.df461df.el9 │
│ tripleo-ansible-3.3.1-0.20230815085422.bd032f7.el9 │ tripleo-ansible-3.3.1-0.20230825040935.0ab5533.el9 │
│ openstack-tripleo-validations-14.3.2-0.20230620155438.3fe963d.el9 │ openstack-tripleo-validations-14.3.2-0.20230822220510.c264e11.el9 │
└─────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────────────────────────────┘

nothing suspicious got merged on tripleo side

Note: One thing i observed is
tomcat-el-3.0-api-9.0.62-14.el9.noarch
tomcat-servlet-4.0-api-9.0.62-14.el9.noarch
is getting installed in the failing job [2] but it's not installed the past passing job [3]

[1]: https://logserver.rdoproject.org/openstack-periodic-integration-stable1/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-centos-9-standalone-on-multinode-ipa-wallaby/e6bf02c/logs/192.168.25.102/var/log/ipaserver-install.log

[2]: https://logserver.rdoproject.org/openstack-periodic-integration-stable1/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-centos-9-standalone-on-multinode-ipa-wallaby/e6bf02c/logs/192.168.25.102/var/log/extra/rpm-list.txt

[3]: https://logserver.rdoproject.org/openstack-periodic-integration-stable1/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-centos-9-standalone-on-multinode-ipa-wallaby/5b91058/logs/192.168.25.158/var/log/extra/rpm-list.txt

[4]: https://logserver.rdoproject.org/openstack-periodic-integration-stable1/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-centos-9-standalone-on-multinode-ipa-wallaby/e6bf02c/job-output.txt

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-quickstart (master)
Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-quickstart (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-quickstart/+/893160
Committed: https://opendev.org/openstack/tripleo-quickstart/commit/3737173794033d641b00f44bc7c7cf488838748f
Submitter: "Zuul (22348)"
Branch: master

commit 3737173794033d641b00f44bc7c7cf488838748f
Author: bshewale <email address hidden>
Date: Wed Aug 30 16:48:16 2023 +0530

    Install tomcat-9.0.62-16.el9 norach rpms

    This is the workaround to fix the Bug: #2033357
    We will revert this once we have builds updated.

    Partial-Bug: #2033357

    Change-Id: Id11208678780369db0bde72b60754c82ffe6201f

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.