RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1369029 - Bad node(s) in error message(s) when executing maintenance/unmaintenance commands with nodes
Summary: Bad node(s) in error message(s) when executing maintenance/unmaintenance comm...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: pcs
Version: 6.8
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: Ondrej Mular
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-22 11:09 UTC by Miroslav Lisik
Modified: 2017-03-21 11:04 UTC (History)
5 users (show)

Fixed In Version: pcs-0.9.154-1.el6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-21 11:04:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0707 0 normal SHIPPED_LIVE pcs bug fix update 2017-03-21 12:40:33 UTC

Description Miroslav Lisik 2016-08-22 11:09:00 UTC
Description of problem:
Bad node(s) in error message(s) when executing maintenance/unmaintenance commands with more nodes which aren't in cluster.

Version-Release number of selected component (if applicable):
pcs-0.9.148-7.el6.x86_64

How reproducible:
always

Steps to Reproduce:

Cluster nodes:
[root@virt-242 ~]# pcs status nodes config
Corosync Nodes:
 virt-242 virt-243 virt-262
Pacemaker Nodes:
 virt-242 virt-243 virt-262

1. Try these commands:

a)
[root@virt-242 ~]# pcs node  maintenance virt-00{1..3}
Error: Node 'virt-001' does not appear to exist in configuration
Error: Node 'virt-001' does not appear to exist in configuration
Error: Node 'virt-001' does not appear to exist in configuration

b)
[root@virt-242 ~]# pcs node  unmaintenance virt-00{1..3}
Error: Node 'virt-001' does not appear to exist in configuration
Error: Node 'virt-001' does not appear to exist in configuration
Error: Node 'virt-001' does not appear to exist in configuration

c)
[root@virt-242 ~]# pcs node  maintenance virt-242 virt-00{1..3}
Error: Node 'virt-242' does not appear to exist in configuration
Error: Node 'virt-242' does not appear to exist in configuration
Error: Node 'virt-242' does not appear to exist in configuration
[root@virt-242 ~]# echo $?
1
[root@virt-242 ~]# pcs cluster cib | grep maintenance
          <nvpair id="nodes-virt-242-maintenance" name="maintenance" value="on"/>

NOTE: The maintenance mode was set despite the exit error code.

Actual results:
Bad node in error messages. First given node is always in each error message.

Expected results:
Right node names in error messages.

Additional info:
If cluster node and other hosts are mixed, maintenance mode is set on the cluster nodes and error messages are written for others. Command exits with error code, which is inconsistent.

Comment 3 Tomas Jelinek 2016-08-23 08:57:34 UTC
Fixed in upstream: https://github.com/ClusterLabs/pcs/commit/1a95e216d0d6f5a71e2c8111c2b8323efa3d9fe4

See bz1247088 comment 14 for details

Comment 4 Ivan Devat 2016-10-19 07:03:04 UTC
Before Fix:

[vm-rhel67-1 ~] $ rpm -q pcs
pcs-0.9.148-7.el6_8.1.x86_64

[vm-rhel67-1 ~] $ pcs status nodes pacemaker
Pacemaker Nodes:
 Online: vm-rhel67-1 vm-rhel67-2
 Standby:
 Maintenance:
 Offline:
Pacemaker Remote Nodes:
 Online:
 Standby:
 Maintenance:
 Offline:
[vm-rhel67-1 ~] $ pcs node maintenance vm-rhel67-2 bad1 bad2
Error: Node 'vm-rhel67-2' does not appear to exist in configuration
Error: Node 'vm-rhel67-2' does not appear to exist in configuration
[vm-rhel67-1 ~] $ pcs status nodes pacemaker
Pacemaker Nodes:
 Online: vm-rhel67-1
 Standby:
 Maintenance: vm-rhel67-2
 Offline:
Pacemaker Remote Nodes:
 Online:
 Standby:
 Maintenance:
 Offline:


After Fix:

[vm-rhel67-1 ~] $ rpm -q pcs
pcs-0.9.154-1.el6.x86_64
[vm-rhel67-1 ~] $ pcs status nodes pacemaker
Pacemaker Nodes:
 Online: vm-rhel67-1 vm-rhel67-2
 Standby:
 Maintenance:
 Offline:
Pacemaker Remote Nodes:
 Online:
 Standby:
 Maintenance:
 Offline:
You have new mail.
[vm-rhel67-1 ~] $ pcs node maintenance vm-rhel67-2 bad1 bad2
Error: Node 'bad1' does not appear to exist in configuration
Error: Node 'bad2' does not appear to exist in configuration
[vm-rhel67-1 ~] $ pcs status nodes pacemaker
Pacemaker Nodes:
 Online: vm-rhel67-1 vm-rhel67-2
 Standby:
 Maintenance:
 Offline:
Pacemaker Remote Nodes:
 Online:
 Standby:
 Maintenance:
 Offline:

Comment 8 errata-xmlrpc 2017-03-21 11:04:12 UTC
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/RHBA-2017-0707.html


Note You need to log in before you can comment on or make changes to this bug.