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: | CLOSED MIGRATED | QA Contact: | Zhang Yi <yizhan> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | medium | ||
| Version: | 9.2 | CC: | bgurney, cwei, jmoyer |
| Target Milestone: | rc | Keywords: | MigratedToJIRA, Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| 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: | 2023-09-23 12:56:11 UTC | 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 Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug. This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there. Due to differences in account names between systems, some fields were not replicated. Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information. To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer. You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like: "Bugzilla Bug" = 1234567 In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information. |