Bug 2143636
| Summary: | [RHEL9] ndctl test suites security.sh failed | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Zhang Yi <yizhan> |
| Component: | ndctl | Assignee: | Jeff Moyer <jmoyer> |
| Status: | ASSIGNED --- | QA Contact: | Zhang Yi <yizhan> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | medium | ||
| Version: | 9.2 | CC: | bgurney, cwei, jmoyer |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Zhang Yi
2022-11-17 13:04:53 UTC
++ keyctl show ++ grep -Eo '_uid.[0-9]+' ++ head -1 ++ cut -d. -f2- + uid= + '[' '' -ne 0 ']' /root/rpmbuild/BUILD/ndctl-71.1/test/security.sh: line 245: [: : integer expression expected That's odd. It looks like there isn't a session keyring. Has the test environment changed? I tested kernel-5.14.0-198.el9 locally, and security.sh passes. You could try running 'keyctl session; keyctl link @u @s' before kicking off the tests. We ran into a similar problem in RHEL 8, where the user keyring was not linked into the session keyring. See this comment for an explanation of why this happens: https://bugzilla.redhat.com/show_bug.cgi?id=1736748#c4 Is the test harness running as a systemd service? Anyway, I think the most robust way to run the test is to ensure that: 1) there is a session keyring and 2) the user keyring is linked in to the session keyring before running the tests. I will propose a patch for the test harness upstream. (In reply to Jeff Moyer from comment #9) > We ran into a similar problem in RHEL 8, where the user keyring was not > linked into the session keyring. See this comment for an explanation of why > this happens: https://bugzilla.redhat.com/show_bug.cgi?id=1736748#c4 > > Is the test harness running as a systemd service? Yes, the test harness is restraint. https://github.com/restraint-harness/restraint > > Anyway, I think the most robust way to run the test is to ensure that: > 1) there is a session keyring and > 2) the user keyring is linked in to the session keyring > before running the tests. > > I will propose a patch for the test harness upstream. Thanks |