Hide Forgot
Description of problem: resource creation fails when used with duplicate arguments, see reproducer. How reproducible: always Steps to Reproduce: 1. setup pcs 2. #pcs resource create dummy dummy aaa=bbb aaa=ccc --force Actual results: command fails and CIB is dumped Expected results: error message or override of the previous(duplicate) parameters Additional info: applies to all resources
Created attachment 1246692 [details] proposed fix (part1)
Created attachment 1246693 [details] proposed fix (part2) Tests are in the patch.
After Fix: [vm-rhel72-1 ~] $ rpm -q pcs pcs-0.9.156-1.el7.x86_64 [vm-rhel72-1 ~] $ pcs resource create dummy ocf:heartbeat:Dummy aaa=bbb aaa=ccc Error: duplicate option 'aaa' with different values 'bbb' and 'ccc' [vm-rhel72-1 ~] $ pcs resource create dummy ocf:heartbeat:Dummy aaa=bbb aaa=ccc --force Error: duplicate option 'aaa' with different values 'bbb' and 'ccc'
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://access.redhat.com/errata/RHBA-2017:1958