Bug 1457191
| Summary: | Provide the ability to run the "navicli" plugin non-interactively | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Renaud Métrich <rmetrich> | ||||
| Component: | sos | Assignee: | Pavel Moravec <pmoravec> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Miroslav Hradílek <mhradile> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 8.0 | CC: | agk, bmr, cww, mhradile, mmezynsk, plambri, pmoravec, sbradley | ||||
| Target Milestone: | rc | Keywords: | Reopened | ||||
| Target Release: | 8.0 | Flags: | pm-rhel:
mirror+
|
||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | sos-3.9.1-2.el8 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2020-11-04 01:57:52 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: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1594286 | ||||||
| Attachments: |
|
||||||
|
Description
Renaud Métrich
2017-05-31 09:45:06 UTC
Created attachment 1283681 [details]
Patch proposal
This patch proposes to add option "navicli.ipaddrs", a list of IP addresses of the EMC agents.
I also added the "batch" flag be pushed to plugins so that they can take action accordingly.
Please note that due to an unexpected split of lists when specifying comma (",") as a separator, the space (" ") separator is used instead.
BZ to be filed later for that.
BZ for comma-separated list is 1457200 Created a pull request for that: https://github.com/sosreport/sos/pull/1024 no plans to fix in 7.6, deferring to 7.7 I do not plan to fix this (at least in 7.7) until some contributor proposes a viable solution/PR - recently we hit few issues esp. expanding list of items separated by comma. Alright, unfortunately I don't have the time to work on this either. Current status: Few PRs were opened and closed due to various reasons. Basic requirement from sos side is, that the plugin must run non-interactivelly _at_least_ when --batch is used. Anyway, even in interactive mode I am quite against interactive plugins, so the plugin should not prompt users for anything. Rather it should rely on a plugin option, optionally with a default value (or with a value fetched from a config file) Could we agree on implementation: - add "navicli.ipaddrs" plugin option with comma- or space-delimited list of IP addresses - default value will be ??? (empty? or localhost? or fecth from some config file?) - for each address: - if "navicli -h <address> getsptime" returns success, call self.get_navicli_SP_info(address) Is this implementation acceptable? If so, I can prepare a PR for it. Hi Pavel, Fell free to implement your proposal, I'm sorry this BZ fell completely out of my radar. > - default value will be ??? (empty? or localhost? or fecth from some config file?)
I think default value should be empty.
Thanks for info, upstream PR pending. Fixed in upstream, will go to 8.3 or 8.4 the latest. Hello, could you please promise verification of the fixes by yourself? This falls beyond scope of sos report QE team.. (once the candidate build will be ready / in one week, I will ask for the verification itself) Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (sos bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2020:4534 |