| Summary: | attrd_updater -Q prints attribute error rather than usage error | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Ken Gaillot <kgaillot> |
| Component: | pacemaker | Assignee: | Klaus Wenninger <kwenning> |
| Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.8 | CC: | abeekhof, cluster-maint, jkortus, mnovacek |
| Target Milestone: | rc | ||
| Target Release: | 6.9 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | pacemaker-1.1.15-3.el6 | Doc Type: | No Doc Update |
| Doc Text: |
undefined
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-03-21 09:52:33 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: | |
|
Description
Ken Gaillot
2016-10-25 16:09:35 UTC
HAVE_ATOMIC_ATTRD is either 0 or 1 thus usage of #ifdef in attrd_updater makes it behave as if it had atomic-attrd but the messaging upon a query fails which makes it think the attribute is not defined. Fixed in https://github.com/ClusterLabs/pacemaker/pull/1160/commits/a22b02ec46e9c7323489fef9f2680f2d0c078083 I have verified that calling 'attrd_updater' with incorrect parameter shows usage instead of reporting error with pacemaker-1.1.15-4 fixed version: pacemaker-1.1.15-4.el6.x86_64 -------------------------------------------- [root@virt-009 ~]# rpm -q pacemaker pacemaker-1.1.15-4.el6.x86_64 [root@virt-009 ~]# pcs node attribute Node Attributes: virt-009: a=a [root@virt-009 ~]# attrd_updater -Q attrd_updater: invalid option -- 'Q' attrd_updater - Tool for updating cluster node attributes Usage: attrd_updater command -n attribute [options] Options: -?, --help This text -$, --version Version information -V, --verbose Increase debug output -n, --name=value The attribute's name Commands: -U, --update=value Update the attribute's value in attrd. If this causes the value to change, it will also be updated in the cluster configuration -B, --update-both=value Update the attribute's value and time to wait (dampening) in attrd. If this causes the value or dampening to change, the attribute will also be written to the cluster configuration, so be aware that repeatedly changing the dampening reduces its effectiveness. -D, --delete Delete the attribute in attrd. If a value was previously set, it will also be removed from the cluster configuration -R, --refresh (Advanced) Force the attrd daemon to resend all current values to the CIB Additional options: -d, --delay=value The time to wait (dampening) in seconds for further changes before writing -s, --set=value (Advanced) The attribute set in which to place the value -N, --node=value Set the attribute for the named node (instead of the local one) -l, --lifetime=value Lifetime of the node attribute. Allowed values: forever, reboot Report bugs to pacemaker.org 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, 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://rhn.redhat.com/errata/RHEA-2017-0629.html |