SUSE / BCI-dockerfile-generator

7 stars 20 forks source link

update logging framework in postfix SP6 image #1506

Closed Priyankasaggu11929 closed 1 month ago

Priyankasaggu11929 commented 1 month ago

For addressing failing SP6 tests, as per – https://github.com/SUSE/BCI-tests/pull/487#issuecomment-2270049197

PR updates logging framework from syslog to rsyslog in case of SP6

github-actions[bot] commented 1 month ago

Created a staging project on OBS for 6: home:defolos:BCI:Staging:SLE-15-SP6:6-1506 Changes pushed to branch 6-1506 as commit b30359152508680e3bb836d98779798021d23eab Build succeeded ✅

Build Results Repository `images` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1506](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1506) for `x86_64`: current state: published Build results: package name | status | build log -------------|--------|---------- sac-postfix-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1506/sac-postfix-image/images/x86_64) Repository `images` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1506](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1506) for `aarch64`: current state: published Build results: package name | status | build log -------------|--------|---------- sac-postfix-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1506/sac-postfix-image/images/aarch64) Repository `images` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1506](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1506) for `s390x`: current state: published Build results: package name | status | build log -------------|--------|---------- sac-postfix-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1506/sac-postfix-image/images/s390x) Repository `images` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1506](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1506) for `ppc64le`: current state: published Build results: package name | status | build log -------------|--------|---------- sac-postfix-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1506/sac-postfix-image/images/ppc64le) Repository `containerfile` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1506](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1506) for `x86_64`: current state: published Build results: package name | status | build log -------------|--------|---------- sac-postfix-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1506/sac-postfix-image/containerfile/x86_64) Repository `containerfile` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1506](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1506) for `aarch64`: current state: published Build results: package name | status | build log -------------|--------|---------- sac-postfix-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1506/sac-postfix-image/containerfile/aarch64) Repository `containerfile` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1506](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1506) for `s390x`: current state: published Build results: package name | status | build log -------------|--------|---------- sac-postfix-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1506/sac-postfix-image/containerfile/s390x) Repository `containerfile` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1506](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1506) for `ppc64le`: current state: published Build results: package name | status | build log -------------|--------|---------- sac-postfix-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1506/sac-postfix-image/containerfile/ppc64le)

Build succeeded ✅

To run BCI-tests against this PR, use the following command:

OS_VERSION=15.6 TARGET=custom BASEURL=registry.opensuse.org/home/defolos/bci/staging/sle-15-sp6/6-1506/ tox -- -n auto
The following images can be pulled from the staging project: - `registry.opensuse.org/home/defolos/bci/staging/sle-15-sp6/6-1506/containerfile/containers/postfix`
github-actions[bot] commented 1 month ago

Created a staging project on OBS for Tumbleweed: home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1506 Changes pushed to branch Tumbleweed-1506 as commit 6d0416b7a3127c41d0cf2ad8ad3b40b2af12519a Build succeeded ✅

Build Results Repository `images` in [home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1506](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1506) for `x86_64`: current state: published Build results: package name | status | build log -------------|--------|---------- postfix-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1506/postfix-image/images/x86_64) Repository `images` in [home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1506](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1506) for `aarch64`: current state: published Build results: package name | status | build log -------------|--------|---------- postfix-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1506/postfix-image/images/aarch64) Repository `containerfile` in [home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1506](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1506) for `x86_64`: current state: published Build results: package name | status | build log -------------|--------|---------- postfix-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1506/postfix-image/containerfile/x86_64) Repository `containerfile` in [home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1506](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1506) for `aarch64`: current state: published Build results: package name | status | build log -------------|--------|---------- postfix-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1506/postfix-image/containerfile/aarch64)

Build succeeded ✅

To run BCI-tests against this PR, use the following command:

OS_VERSION=tumbleweed TARGET=custom BASEURL=registry.opensuse.org/home/defolos/bci/staging/tumbleweed/tumbleweed-1506/ tox -- -n auto
The following images can be pulled from the staging project: - `registry.opensuse.org/home/defolos/bci/staging/tumbleweed/tumbleweed-1506/containerfile/opensuse/postfix`
Priyankasaggu11929 commented 1 month ago

will check again in the morning.

SP6 build failing on rsyslog installation

[   47s] Problem: 1: nothing provides '/bin/gawk' needed by the to be installed sysconfig-netconfig-0.85.9-150200.12.1.x86_64
[   47s]  Solution 1: do not install rsyslog-8.2306.0-150600.10.6.x86_64
[   47s]  Solution 2: break sysconfig-netconfig-0.85.9-150200.12.1.x86_64 by ignoring some of its dependencies

I've tested locally trying to install rsyslog in a registry.suse.com/suse/sle15:15.6 container, and that goes without errors.

podman run -it -d --name sle15sp6 registry.suse.com/suse/sle15:15.6

6f8633ad9dda:/ # zypper search --provides gawk
Refreshing service 'container-suseconnect-zypp'.
Loading repository data...
Reading installed packages...

S | Name | Summary | Type
--+------+---------+--------
i | gawk | GNU awk | package

6f8633ad9dda:/ # zypper info rsyslog
Refreshing service 'container-suseconnect-zypp'.
Loading repository data...
Reading installed packages...

Information for package rsyslog:
--------------------------------
Repository     : SLE_BCI
Name           : rsyslog
Version        : 8.2306.0-150600.10.6
Arch           : x86_64
Vendor         : SUSE LLC <https://www.suse.com/>
Support Level  : unsupported
Installed Size : 2.5 MiB
Installed      : Yes
Status         : up-to-date
Source package : rsyslog-8.2306.0-150600.10.6.src
Upstream URL   : http://www.rsyslog.com/
Summary        : The enhanced syslogd for Linux and Unix
Priyankasaggu11929 commented 1 month ago

@dirkmueller, I've tried building the sp6 image without installing rsyslog as a Dockerfile step in OBS, and later manually installing rsyslog in the built image container (registry.opensuse.org/home/defolos/bci/staging/sle-15-sp6/6-1506/containerfile/containers/postfix:3.8) and installation works.

Could you please point out what is different in the OBS build tooling that's causing the build fail for SP6 variant. Thanks!

Failing build logs - https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1506/sac-postfix-image/containerfile/x86_64

dirkmueller commented 1 month ago

@dirkmueller,> Could you please point out what is different in the OBS build tooling that's causing the build fail for SP6 variant. Thanks!

Thats a missing Fileprovides on gawk. I've filed an issue to get that fixed, but for now we can fix this by manually installing gawk. updated your patch accordingly.

Priyankasaggu11929 commented 1 month ago

@dirkmueller,> Could you please point out what is different in the OBS build tooling that's causing the build fail for SP6 variant. Thanks!

Thats a missing Fileprovides on gawk. I've filed an issue to get that fixed, but for now we can fix this by manually installing gawk. updated your patch accordingly.

Thank you!