Bug 2226778
| Summary: | `pcs property describe` does not raise an error for non-existent properties | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Peter Romancik <promanci> |
| Component: | pcs | Assignee: | Peter Romancik <promanci> |
| Status: | POST --- | QA Contact: | cluster-qe <cluster-qe> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 8.9 | CC: | cluster-maint, idevat, mlisik, mpospisi, omular, tojeline |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 8.10 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause:
Filter function skipped check for properties without metadata in commands `pcs property describe` and `pcs property defaults`.
Consequence:
If specified properties in the commands `pcs property describe` and `pcs property defaults` did not have metadata no error was displayed.
Fix:
Fix filter function to check properties without metadata.
Result:
If specified properties in the commands do not have metadata error message is printed.
|
Story Points: | --- |
| Clone Of: | 2222744 | 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: | |||
| Bug Depends On: | 2222744 | ||
| Bug Blocks: | |||
|
Description
Peter Romancik
2023-07-26 13:43:21 UTC
Upstream commit: https://github.com/ClusterLabs/pcs/commit/e455b9bebd089cf284df7fb43dc2a971807bcb1f Updated commands: * pcs property describe * pcs property defaults Test: # pcs property describe nonexistent Error: No description for property: 'nonexistent' # echo $? 1 # pcs property defaults nonexistent1 nonexistent2 Error: No default value for properties: 'nonexistent1', 'nonexistent2' # echo $? 1 |