Bug 1221775 - [Build 67.1] openQA test fails in apache - no doc files created for apache2 under /usr/share/doc/packages/
Summary: [Build 67.1] openQA test fails in apache - no doc files created for apache2 u...
Status: RESOLVED FIXED
Alias: None
Product: PUBLIC SUSE Linux Enterprise Server 15 SP6
Classification: openSUSE
Component: Other (show other bugs)
Version: unspecified
Hardware: aarch64 SLES 15
: P2 - High : Normal
Target Milestone: ---
Assignee: David Anes
QA Contact:
URL: http://openqa.suse.de/tests/13828659/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-20 19:14 UTC by Zaoliang Luo
Modified: 2024-04-03 17:13 UTC (History)
5 users (show)

See Also:
Found By: openQA
Services Priority:
Business Priority:
Blocker: Yes
Marketing QA Status: ---
IT Deployment: ---
rtsvetkov: needinfo? (afaerber)


Attachments
yast logs (508.30 KB, application/x-xz)
2024-03-20 19:39 UTC, Zaoliang Luo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zaoliang Luo 2024-03-20 19:14:26 UTC
confirm that there is no /usr/share/doc/packages from installation on my RPi 4



## Observation

openQA test in scenario sle-15-SP6-Online-aarch64-default@aarch64 fails in
[apache](http://openqa.suse.de/tests/13828659/modules/apache/steps/135)

## Test suite description
Maintainer: QE Core

The standard scenario where we mainly just follow installation suggestions without any adjustments.


## Reproducible

Fails since (at least) Build [67.1](http://openqa.suse.de/tests/13828659) (current job)


## Expected result

Last good: [64.2](http://openqa.suse.de/tests/13810413) (or more recent)


## Further details

Always latest result in this scenario: [latest](http://openqa.suse.de/tests/latest?arch=aarch64&distri=sle&flavor=Online&machine=aarch64&test=default&version=15-SP6)
Comment 1 Zaoliang Luo 2024-03-20 19:38:28 UTC
I got during http-server installation via YasT2: 


Error: Cannot adjust 'apache2' service.

After installation of apache2 I checked apache2.service:

--


localhost:~ # systemctl status apache2
× apache2.service - The Apache Webserver
     Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Wed 2024-03-20 20:31:57 CET; 1min 25s ago
    Process: 3099 ExecStart=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k start (code=exited, status=1/FAILURE)
   Main PID: 3099 (code=exited, status=1/FAILURE)
        CPU: 136ms

Mar 20 20:31:57 localhost systemd[1]: Starting The Apache Webserver...
Mar 20 20:31:57 localhost start_apache2[3099]: [Wed Mar 20 20:31:57.453480 2024] [php7:crit] [pid 3099:tid 28147303>
Mar 20 20:31:57 localhost start_apache2[3099]: AH00013: Pre-configuration failed
Mar 20 20:31:57 localhost systemd[1]: apache2.service: Main process exited, code=exited, status=1/FAILURE
Mar 20 20:31:57 localhost systemd[1]: apache2.service: Failed with result 'exit-code'.
Mar 20 20:31:57 localhost systemd[1]: Failed to start The Apache Webserver.
localhost:~ # systemctl restart apache2
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.
localhost:~ # journalctl -xeu apache2
~
~
~
~
~
~
~
Mar 20 20:31:57 localhost systemd[1]: Starting The Apache Webserver...
░░ Subject: A start job for unit apache2.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit apache2.service has begun execution.
░░ 
░░ The job identifier is 4056.
Mar 20 20:31:57 localhost start_apache2[3099]: [Wed Mar 20 20:31:57.453480 2024] [php7:crit] [pid 3099:tid 28147303>
Mar 20 20:31:57 localhost start_apache2[3099]: AH00013: Pre-configuration failed
Mar 20 20:31:57 localhost systemd[1]: apache2.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit apache2.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
Mar 20 20:31:57 localhost systemd[1]: apache2.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit apache2.service has entered the 'failed' state with result 'exit-code'.
Mar 20 20:31:57 localhost systemd[1]: Failed to start The Apache Webserver.
░░ Subject: A start job for unit apache2.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit apache2.service has finished with a failure.
░░ 
░░ The job identifier is 4056 and the job result is failed.
Mar 20 20:33:35 localhost systemd[1]: Starting The Apache Webserver...
░░ Subject: A start job for unit apache2.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit apache2.service has begun execution.
░░ 
░░ The job identifier is 4166.
Mar 20 20:33:35 localhost start_apache2[3356]: [Wed Mar 20 20:33:35.117142 2024] [php7:crit] [pid 3356:tid 28147321>
Mar 20 20:33:35 localhost start_apache2[3356]: AH00013: Pre-configuration failed
Mar 20 20:33:35 localhost systemd[1]: apache2.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit apache2.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
Mar 20 20:33:35 localhost systemd[1]: apache2.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit apache2.service has entered the 'failed' state with result 'exit-code'.
Mar 20 20:33:35 localhost systemd[1]: Failed to start The Apache Webserver.
░░ Subject: A start job for unit apache2.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit apache2.service has finished with a failure.
░░ 
░░ The job identifier is 4166 and the job result is failed.


--

I think "Pre-configuration failed" is the error.
Comment 2 Zaoliang Luo 2024-03-20 19:39:17 UTC
Created attachment 873669 [details]
yast logs
Comment 3 Zaoliang Luo 2024-03-20 19:57:24 UTC
I compared with build 64.2 which doesn't have issue with apache2, but /usr/share/doc/packages/apache2 is not available neither.
Comment 4 Zaoliang Luo 2024-03-26 09:44:07 UTC
with latest build71.1 I am not able to reproduce this issue.
But the problem with /usr/share/doc/packages is still remaining.

It means apache2 packages got installed without doc files.
Comment 5 Zaoliang Luo 2024-03-26 09:47:34 UTC
https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/18953 can help in this case. apache2 test is passed so far.

But the issue with doc needs your attention, thanks!
Comment 6 Richard Fan 2024-03-26 09:59:13 UTC
Hi Zaoliang and developer,

I would like to add my findings as well.

Now we have the below apache2 packages on sle15sp6 build 71.1:

# rpm -qa |grep apache2
apache2-2.4.58-150600.1.1.x86_64
apache2-prefork-2.4.58-150600.1.1.x86_64
apache2-utils-2.4.58-150600.1.1.x86_64

# rpm -q apache2-2.4.58-150600.1.1.x86_64 --changelog |more
* Mon Mar 18 2024 eugenio.paolantonio@suse.com
- SLE-only: forward-port gensslcert change to generate dhparams certificate
  using a valid FIPS method (bsc#1198913)

* Tue Feb 20 2024 dimstar@opensuse.org
- Use %autosetup macro. Allows to eliminate the usage of deprecated
  %patchN.

* Mon Jan 29 2024 dmueller@suse.com
- use grep -E for egrep

---------------------------------------------------------------

And I can find that some changes are happening now:

1. the file /usr/share/doc/packages/apache2/httpd.conf.default is gone, and below 2 files can be seen and some contents are changed as well:

# rpm -ql apache2-2.4.58-150600.1.1.x86_64 |grep httpd-default.conf
/usr/share/doc/packages/apache2/conf/extra/httpd-default.conf
/usr/share/doc/packages/apache2/conf/original/extra/httpd-default.conf

2. 'httpd2-prefork' binary file is gone, and now it is '/usr/sbin/httpd-prefork'
# rpm -ql apache2-prefork-2.4.58-150600.1.1.x86_64 |grep sbin
/usr/sbin/httpd
/usr/sbin/httpd-prefork

-----------------------------------------------------------------

The test can pass with my code changes below:

https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/18953/files

https://openqa.suse.de/tests/13872532#details

----------------------------------------------------------------

So Can I ask for developer's kindly confirmation?

1. Are these changes are expected or regression issues?
2. If the changes are expected, do they only happen on sle15sp6?  [how about TW/leap and other sle releases]

Please let me know if you need access my test setup to debug.
Comment 7 Eugenio Paolantonio 2024-03-26 15:58:13 UTC
Hi,

I'm CCing David as he's the apache2 maintainer.

On build 73.1, apache2 reintroduces the compatibility symlinks (including for example http2-prefork), so I hope that most of the issues are solved there (bsc#1221880).


For the configuration file, @David, please confirm if the example configuration being moved to /usr/share/doc/packages/apache2/conf/httpd.conf is okay (to my untrained eye, since it's the example one, I suppose it's fine).

I prepared one fix for the testsuite to move to the new configuration file here [0], I will submit it as a Pull Request soon.

Thanks!


[0] https://github.com/g7/os-autoinst-distri-opensuse/commit/cfe74e2e22bfa23da159a1b8200b2e0b4947b6ac
Comment 8 David Anes 2024-03-27 08:59:32 UTC
> For the configuration file, @David, please confirm if the example
> configuration being moved to 
> /usr/share/doc/packages/apache2/conf/httpd.conf is okay (to my 
> untrained eye, since it's the example one, I suppose it's fine).

Yes, it's fine to put it there but please explicitly mention we are adding it to /usr/share/dpc it on the changelog.

Thank you again!
Comment 9 Radoslav Tzvetkov 2024-04-02 10:09:48 UTC
Please indicate the current expectation for fixing the bug using the Target Milestone field. What do we believe is possible? 

In the cases where we do not plan to deliver or cannot guess (!?) please do not enter anything, but you can comment if you wish to provide more details.