https://bugzilla.novell.com/show_bug.cgi?id=855099 https://bugzilla.novell.com/show_bug.cgi?id=855099#c0 Summary: Atomic ticket ops via crm_ticket Classification: openSUSE Product: openSUSE Factory Version: 13.2 Milestone 0 Platform: x86-64 OS/Version: SUSE Other Status: NEW Severity: Normal Priority: P5 - None Component: High Availability AssignedTo: lmb@suse.com ReportedBy: philipp.marek@linbit.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0 Iceweasel/25.0 Please get "crm_ticket" to accept multiple -S, --set-attr=value Set the named attribtue for a ticket and -v, --attr-value=value Attribute value to use with -S options in a single call, along with -g, --grant Grant a ticket to this cluster site resp. -r, --revoke Revoke a ticket from this cluster site, so that a single call to crm_ticket can cause all necessary changes in an atomic CIB operation. I'd hope for something like crm_ticket -t ticket-name -g --force -S expires -v 1386836569 -S owner -v site1 -S ballot -v 123 (which might be easy - just parse an array of key/value pairs from the commandline), or, for a bit shorter lines, crm_ticket -t ticket-name -g --force -S expires=1386836569 -S owner -v site1 -S ballot -v 123 BTW, crm_ticket only allows a few ticket attributes, but doesn't throw an error for "invalid" things: geo-rz1-a:/ # crm_ticket -t ticket-nfs -S test=test -v 1 geo-rz1-a:/ # echo $? 0 geo-rz1-a:/ # cibadmin -Q | less .. <ticket_state id="ticket-nfs" owner="1375433697" expires="1386836742" ballot="31554" granted="true" last-granted="1386323457"/> Ie. the "test=test" => "1" pair isn't stored, but there's no warning or error either. (pacemaker-cli-1.1.10+git20131112.2383f6c-1.1.x86_64) Thanks a lot. Reproducible: Always Steps to Reproduce: 1. Look at the help text. Actual Results: Multiple calls required Expected Results: Single call setting multiple attributes none. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.