Bug 2065821
| Summary: | sos collector pulls duplicate sosreport if local node's hostname does not match its pacemaker node name | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Reid Wahl <nwahl> |
| Component: | sos | Assignee: | Pavel Moravec <pmoravec> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Adriana Jurkechova <ajurkech> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8.5 | CC: | agk, ajurkech, bmr, plambri, pmoravec, sbradley, theute |
| Target Milestone: | rc | Keywords: | OtherQA, Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | sos-4.5.0-1.el8.noarch | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-03-16 21:37:06 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
Reid Wahl
2022-03-18 19:57:05 UTC
Still broken :( fastvm-rhel-8-0-23 == node1 and fastvm-rhel-8-0-24 == node2. BEFORE: [root@fastvm-rhel-8-0-23 ~]# rpm -q sos sos-4.2-19.el8_6.noarch [root@fastvm-rhel-8-0-23 ~]# sos collect --batch -o pacemaker ... The following is a list of nodes to collect from: fastvm-rhel-8-0-23 node1 node2 AFTER: [root@fastvm-rhel-8-0-23 ~]# rpm -q sos sos-4.4-1.el8.noarch [root@fastvm-rhel-8-0-23 ~]# sos collect --batch -o pacemaker ... The following is a list of nodes to collect from: fastvm-rhel-8-0-23 node1 node2 I tried adding debug statements to collector.get_nodes() and none of them are printing. Also tried writing them to a file in case of any output redirection. So I'm not sure what's appending these nodes to the node list. Disregard the previous comment. It'll use get_nodes_from_cluster Sorry for a late response, this felt off my table. Could you please prepare a reproducer that would last for a week (to ensure when I look at it a few days after you ping me, it is still available)? I will debug it there by myself. From resolution timeframe perspective: this will probably miss 8.8/9.2 (until we find a fix soon and we would do a respin (not planned now)). (In reply to Pavel Moravec from comment #8) > Sorry for a late response, this felt off my table. > > Could you please prepare a reproducer that would last for a week (to ensure > when I look at it a few days after you ping me, it is still available)? I > will debug it there by myself. > > From resolution timeframe perspective: this will probably miss 8.8/9.2 > (until we find a fix soon and we would do a respin (not planned now)). Hey, no problem, these BZs tend to fall of my table too. I moved from the support team back in July :) I always have a bad time with Beaker so I decided to take another look myself. SoSCollector.collect() and SoSCollector.display_nodes() both need to consider self.cluster.strict_node_list. Currently they only consider self.opts.no_local. There may be other places that need self.cluster.strict_node_list, but adding it in those two places seems to suffice from my perspective as a user. It may be better to set no_local if strict_node_list is set, and rely on that. I haven't looked into whether that would have any undesirable side effects. That idea seems reasonable - I will check (in next weeks) in detail if there cant be some gotchas. Anyway a cluster where I could test it would be great.. Re-scheduling to RHEL8.9 as we would hardly squeeze it to 8.8. It seems sos collector does not properly respect strict_node_list specified in https://github.com/sosreport/sos/blob/main/sos/collector/clusters/pacemaker.py#L23 - the collector "arbitrarily" adds primary's hostname when it fails to spot it in nodes list. https://github.com/sosreport/sos/pull/3096 is an attempt to fix it, though I feel the PR might break some use case - review pending. I can confirm that changes from https://github.com/sosreport/sos/pull/3096 are included in the build. Since we are in time pressure I am switching this bugzilla to Tested,SanityOnly but Reid please feel free to do OtherQA later on. Closing the bugzilla as the fix has been delivered in sos-4.5.0-1.el8 released via https://access.redhat.com/errata/RHBA-2023:1300 errata. |