Hi!

The help message in crm shell suggests that the "lifetime" parameter in the 
"migrate" command is a duration:

crm(live)resource# migrate prm_xen_s06 2
Invalid duration specified: 2
Please refer to http://en.wikipedia.org/wiki/ISO_8601#Duration for examples of 
valid durations
Error performing operation: Invalid argument

However if you specify a duration like "P2", the duration is not added to the 
current time; instead the current time is used as lifetime (it seems):

Sep 26 13:55:03 o1 cib: [13067]: info: cib:diff: +           <date_expression 
id="cli-prefer-lifetime-end-prm_xen_s01" operation="lt" end="2013-07-26 
11:55:03Z" />

So when the change being logged includes up to the second exactly the current 
time, the duration is effectively ignored.

Must IT be so complicated? If you insist on ISO syntax on one hand, I expect 
you understand the syntax correctly, so a duration has to be added to the 
current time to make any sense.

To make things worse, why is crm shell displaying the time in UTC (in non-XML 
mode)? In Perl ist a simple "scalar localtime $time" that will make things 
easier to read.

Regards,
Ulrich


_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to