Project

General

Profile

Actions

action #178822

closed

coordination #127031: [saga][epic] openQA for SUSE customers

coordination #138365: [epic] openQA works in SELinux enforced environments

openQA in openQA tests failing with unreachable webUI, possibly due to SELinux size:S

Added by okurz about 1 month ago. Updated 20 days ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Observation

From #178642-8 as szarate found out

I wonder if this is more about selinux... https://openqa.opensuse.org/tests/4917476#step/dashboard/7 is the same error that I'm having on my Tumbleweed installation of openQA (after updating just today)

and the logs are showing constant denies from selinux:

ket permissive=0
type=AVC msg=audit(1741786133.379:949): avc:  denied  { name_connect } for  pid=3901 comm="httpd-prefork" dest=9526 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:openqa_port_t:s0 tclass=tcp_socket permissive=0
type=AVC msg=audit(1741786133.379:950): avc:  denied  { name_connect } for  pid=16186 comm="httpd-prefork" dest=9526 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:openqa_port_t:s0 tclass=tcp_socket permissive=0
type=AVC msg=audit(1741786133.379:951): avc:  denied  { name_connect } for  pid=16186 comm="httpd-prefork" dest=9526 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:openqa_port_t:s0 tclass=tcp_socket permissive=0
type=AVC msg=audit(1741786133.379:952): avc:  denied  { name_connect } for  pid=3901 comm="httpd-prefork" dest=9526 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:openqa_port_t:s0 tclass=tcp_socket permissive=0

See
https://openqa.opensuse.org/tests/4914440#step/dashboard/6

Further details

Always latest result in this scenario: latest

Suggestions

Out of scope

  • Complete SELinux profiles for openQA - this could be a follow-up ticket resulting from this ticket, though

Related issues 3 (1 open2 closed)

Related to openQA Project (public) - action #180002: openQA-in-openQA test fails in dashboard with 403 Forbidden size:SResolvedemiler2025-04-032025-04-22

Actions
Copied from openQA Project (public) - action #178642: openQA in openQA tests failing with 503 errors and timeouts due to misbehaving MirrorCache / CDN auto_review:"retry.*zypper.*ref && zypper --no-cd -n in openQA-worker.*timed out" size:SResolvedlivdywan2025-03-11

Actions
Copied to openQA Project (public) - action #180029: [openqa-in-openqa] Can we call configure-web-proxy in "install_from_git" and remove the selinux workaround?New2025-04-04

Actions
Actions #1

Updated by okurz about 1 month ago

  • Copied from action #178642: openQA in openQA tests failing with 503 errors and timeouts due to misbehaving MirrorCache / CDN auto_review:"retry.*zypper.*ref && zypper --no-cd -n in openQA-worker.*timed out" size:S added
Actions #2

Updated by okurz about 1 month ago

  • Parent task set to #138365
Actions #3

Updated by okurz about 1 month ago

  • Project changed from openQA Tests (public) to openQA Project (public)
  • Category changed from Bugs in existing tests to Regressions/Crashes
Actions #4

Updated by tinita about 1 month ago

  • Status changed from New to In Progress
  • Assignee set to tinita
Actions #5

Updated by livdywan about 1 month ago

  • Subject changed from openQA in openQA tests failing with unreachable webUI, possibly due to SELinux to openQA in openQA tests failing with unreachable webUI, possibly due to SELinux size:S
  • Description updated (diff)
Actions #7

Updated by tinita about 1 month ago

  • Description updated (diff)
Actions #8

Updated by tinita about 1 month ago

  • Description updated (diff)

It's actually semanage permissive -a httpd_t not semanage permission -a httpd_t

Actions #9

Updated by tinita about 1 month ago

  • Status changed from In Progress to Feedback
Actions #10

Updated by livdywan about 1 month ago

  • Status changed from Feedback to In Progress

tinita wrote in #note-9:

https://github.com/os-autoinst/os-autoinst-distri-openQA/pull/229

I'm afraid this needs to stay In Progress until the mitigation is in place. Which then allows us to lower priority.

Actions #11

Updated by tinita about 1 month ago

  • Status changed from In Progress to Workable
  • Assignee deleted (tinita)
  • Priority changed from Urgent to High
Actions #12

Updated by dheidler about 1 month ago

  • Assignee set to dheidler
Actions #13

Updated by dheidler about 1 month ago

  • Status changed from Workable to In Progress
Actions #14

Updated by openqa_review about 1 month ago

  • Due date set to 2025-04-02

Setting due date based on mean cycle time of SUSE QE Tools

Actions #15

Updated by dheidler about 1 month ago

  • Status changed from In Progress to Blocked
Actions #16

Updated by dheidler about 1 month ago

  • Status changed from Blocked to In Progress
Actions #17

Updated by dheidler about 1 month ago

Seems like we should use

semanage boolean -m -1 httpd_can_network_connect

Will add that to the script and docs.

Actions #19

Updated by dheidler about 1 month ago

  • Status changed from In Progress to Feedback
Actions #21

Updated by livdywan 26 days ago

  • Status changed from Feedback to Resolved

dheidler wrote in #note-20:

Revert Tina's workaround: https://github.com/os-autoinst/os-autoinst-distri-openQA/pull/231

As this was merged I think we're good here.

Actions #22

Updated by okurz 20 days ago

  • Due date deleted (2025-04-02)
Actions #23

Updated by okurz 19 days ago

  • Copied to action #180029: [openqa-in-openqa] Can we call configure-web-proxy in "install_from_git" and remove the selinux workaround? added
Actions #24

Updated by livdywan 13 days ago

  • Related to action #180002: openQA-in-openQA test fails in dashboard with 403 Forbidden size:S added
Actions

Also available in: Atom PDF