Project

General

Profile

Actions

action #162638

open

[manual-testing] validate opensuse nginx's image

Added by mloviska 10 days ago. Updated 3 days ago.

Status:
Feedback
Priority:
High
Assignee:
Target version:
-
Start date:
2024-06-20
Due date:
% Done:

0%

Estimated time:

Description

As a QA engineer, I would like to reach a point that we use more of our own artefacts rather than pulling images from outside.

We should validate nginx image available in registry.opensuse.org/opensuse/nginx:latest. Ideally, take notes for further automated testing and file bug reports if needed.

For a test scenario inspiration, please have a look at official docs [1] or nginx unit tests 2

[1] https://hub.docker.com/_/nginx/
[2] https://hg.nginx.org/nginx-tests/file/default

Acceptance criteria

1) Container can be easily started
2) Works with ipv4 and ipv6
3) Exports/publishes ports
4) Customization


Related issues 1 (0 open1 closed)

Related to Containers - action #162623: test fails in podman_netavarkResolvedmloviska2024-06-20

Actions
Actions #1

Updated by mloviska 10 days ago

Actions #2

Updated by rbranco 10 days ago

  • Status changed from Workable to Feedback
  • Assignee set to rbranco
Actions #3

Updated by rbranco 6 days ago

  • Status changed from Feedback to In Progress
Actions #4

Updated by rbranco 5 days ago

To make it work with IPv6:

cat >> nginx.conf <<EOF
events {
    worker_connections  1024;
    use epoll;
}

http {
  server {
    listen 80;
    listen [::]:80;

    location / {
        root   /srv/www/htdocs/;
        index  index.html index.htm;
    }
  }
}
EOF

podman run -d --name web --network podman1 -v $PWD/nginx.conf:/etc/nginx/nginx.conf -p [::]:80:80 registry.opensuse.org/opensuse/nginx
Actions #5

Updated by rbranco 5 days ago

  • Status changed from In Progress to Feedback
Actions #6

Updated by rbranco 5 days ago

nginx (but not httpd) is maintained by BCI. Both images are not customized to be container-native but rather reflect the SLES configuration, so IPv6 is turned off by default.

Actions #7

Updated by rbranco 5 days ago

  • nginx image is maintained by BCI, unlike httpd: https://suse.slack.com/archives/C02AF8LALDA/p1719312099642439
  • Neither image is customized to be container-native, not deviating from the respective RPM configuration.
  • As a consequence of the above, neither image comes with IPv6 enabled by default.
  • I find nginx easier to work with as it only needs nginx.conf mounted as a volume. httpd has a potential bug of /var/log/apache2 not being present. The only workaround is passing an empty dir as volume mounted to this directory.
Actions #8

Updated by ggardet_arm 3 days ago

https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/19575 fails on aarch64 Tumbleweed: https://openqa.opensuse.org/tests/4302142#step/podman_netavark/124

Test died: Container webserver_ctr is not running! at microos/tests/containers/podman_netavark.pm line 49.
Actions #9

Updated by rbranco 3 days ago

ggardet_arm wrote in #note-8:

https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/19575 fails on aarch64 Tumbleweed: https://openqa.opensuse.org/tests/4302142#step/podman_netavark/124

Test died: Container webserver_ctr is not running! at microos/tests/containers/podman_netavark.pm line 49.

Fixed by https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/19615

Actions

Also available in: Atom PDF