Re: [Linux-HA] Antw: Re: crmsh fails to stop already stopped resource

2015-02-18 Thread Vladislav Bogdanov
18.02.2015 11:03, Ulrich Windl wrote: Lars Marowsky-Bree l...@suse.com schrieb am 16.02.2015 um 12:34 in Nachricht 20150216113433.gb4...@suse.de: On 2015-02-16T09:20:22, Kristoffer Grönlund kgronl...@suse.com wrote: Actually, I decided that it does make sense to return 0 as the error code

Re: [Linux-HA] crmsh fails to stop already stopped resource

2015-02-16 Thread Vladislav Bogdanov
16.02.2015 14:34, Lars Marowsky-Bree wrote: On 2015-02-16T09:20:22, Kristoffer Grönlund kgronl...@suse.com wrote: Actually, I decided that it does make sense to return 0 as the error code even if the resource to delete doesn't exist, so I pushed a commit to change this. The error message is

[Linux-HA] [PATCH] low: cibconfig: Do not fail on deletion of non-existing objects

2015-02-16 Thread Vladislav Bogdanov
--- modules/cibconfig.py |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/modules/cibconfig.py b/modules/cibconfig.py index 8689c1b..8680f33 100644 --- a/modules/cibconfig.py +++ b/modules/cibconfig.py @@ -3463,8 +3463,6 @@ class CibFactory(object): for obj_id in

Re: [Linux-HA] crmsh fails to stop already stopped resource

2015-02-16 Thread Vladislav Bogdanov
16.02.2015 11:15, Kristoffer Grönlund wrote: Vladislav Bogdanov bub...@hoster-ok.com writes: Hi Kristoffer, may be it is worth to silently (or at least with rc=0) allow deletion of non-existing or already-deleted configuration statements? Background for that is that I keep track of the all

Re: [Linux-HA] crmsh fails to stop already stopped resource

2015-02-16 Thread Vladislav Bogdanov
Hi Dejan, 16.02.2015 13:47, Dejan Muhamedagic wrote: Hi, On Mon, Feb 16, 2015 at 11:20:16AM +0300, Vladislav Bogdanov wrote: 16.02.2015 11:15, Kristoffer Grönlund wrote: Vladislav Bogdanov bub...@hoster-ok.com writes: Hi Kristoffer, may be it is worth to silently (or at least with rc=0

Re: [Linux-HA] crmsh fails to stop already stopped resource

2015-02-13 Thread Vladislav Bogdanov
Hi Kristoffer, 13.02.2015 17:20, Kristoffer Grönlund wrote: Vladislav Bogdanov bub...@hoster-ok.com writes: Hi, Following fails with the current crmsh (e4b10ee). # crm resource stop cl-http-lv # crm resource stop cl-http-lv ERROR: crm_diff apparently failed to produce the diff (rc=0

Re: [Linux-HA] crmsh fails to stop already stopped resource

2015-02-13 Thread Vladislav Bogdanov
13.02.2015 18:04, Kristoffer Grönlund wrote: Vladislav Bogdanov bub...@hoster-ok.com writes: Hi Kristoffer, 13.02.2015 17:20, Kristoffer Grönlund wrote: Vladislav Bogdanov bub...@hoster-ok.com writes: Hi, Following fails with the current crmsh (e4b10ee). # crm resource stop cl-http-lv

Re: [Linux-HA] [Patch] Collection of patches for crmsh

2015-01-19 Thread Vladislav Bogdanov
Hi Dejan, 19.01.2015 16:30, Dejan Muhamedagic wrote: Hi Vladislav, [...] Fix transition start detection. --- a/modules/constants.py 2014-12-22 08:48:26.0 + +++ b/modules/constants.py 2014-12-22 13:07:43.945077805 + @@ -272,7 +272,7 @@ # r.group(3) file number

Re: [Linux-HA] [Patch] Collection of patches for crmsh

2015-01-19 Thread Vladislav Bogdanov
19.01.2015 16:27, Kristoffer Grönlund wrote: Vladislav Bogdanov bub...@hoster-ok.com writes: Hi Kristoffer, there are two patches, one for crmsh and one for parallax. They make history commands work. Thanks! I have created a pull request with the patches for crmsh here: https

[Linux-HA] [Patch] Collection of patches for crmsh

2015-01-19 Thread Vladislav Bogdanov
Hi Kristoffer, there are two patches, one for crmsh and one for parallax. They make history commands work. --- a/modules/crm_pssh.py 2015-01-19 11:42:02.0 + +++ b/modules/crm_pssh.py 2015-01-19 12:17:46.328000847 + @@ -85,14 +85,14 @@ def do_pssh(l, opts):

Re: [Linux-HA] crm configure show to a pipe

2014-11-17 Thread Vladislav Bogdanov
17.11.2014 14:00, Dejan Muhamedagic пишет: Hi, On Mon, Nov 17, 2014 at 10:05:59AM +0300, Vladislav Bogdanov wrote: Hi Kristoffer, all, running 'crm configure show file' appends non-printable chars at the end (at least if op_defaults is used): Best to use crm configure save

Re: [Linux-HA] crm configure show to a pipe

2014-11-17 Thread Vladislav Bogdanov
17.11.2014 15:39, Kristoffer Grönlund wrote: Dejan Muhamedagic deja...@fastmail.fm writes: Hi, On Mon, Nov 17, 2014 at 10:05:59AM +0300, Vladislav Bogdanov wrote: Hi Kristoffer, all, running 'crm configure show file' appends non-printable chars at the end (at least if op_defaults

[Linux-HA] crmsh and 'no such resource agent' error

2014-11-17 Thread Vladislav Bogdanov
Hi Kristoffer, all, It seems like with introduction of 'resource-discovery' 'symmetric-cluster=true' becomes not so strict in sense of resource agents sets across nodes. May be it is possible to add a config options to disable error messages like: got no meta-data, does this RA exist? no such

[Linux-HA] crm configure show to a pipe

2014-11-16 Thread Vladislav Bogdanov
Hi Kristoffer, all, running 'crm configure show file' appends non-printable chars at the end (at least if op_defaults is used): ... property cib-bootstrap-options: \ dc-version=1.1.12-c191bf3 \ cluster-infrastructure=corosync \ cluster-recheck-interval=10m \

Re: [Linux-HA] Antw: Re: Pending state support

2014-11-13 Thread Vladislav Bogdanov
implemented and used for other features. Vladislav Bogdanov bub...@hoster-ok.com schrieb am 13.11.2014 um 07:26 in Nachricht 54644f2c.3020...@hoster-ok.com: Hi Kristoffer! May I bump this one? Best, Vladislav 04.11.2014 11:15, Vladislav Bogdanov wrote: Hi Kristoffer, Dejan, all. May

[Linux-HA] crmsh and 'resource-discovery'

2014-11-12 Thread Vladislav Bogdanov
Hi Kristoffer, Dejan. Do you have plans to add support to crmsh for 'resource-discovery' location constraint option (added to pacemaker by David in pull requests #589 and #605) as well as for the 'pacemaker-next' schema (this one seems to be trivial)? Best, Vladislav

Re: [Linux-HA] crmsh and 'resource-discovery'

2014-11-12 Thread Vladislav Bogdanov
12.11.2014 23:32, Kristoffer Grönlund wrote: Vladislav Bogdanov bub...@hoster-ok.com writes: Hi Kristoffer, Dejan. Do you have plans to add support to crmsh for 'resource-discovery' location constraint option (added to pacemaker by David in pull requests #589 and #605) as well

Re: [Linux-HA] crmsh and 'resource-discovery'

2014-11-12 Thread Vladislav Bogdanov
13.11.2014 00:12, Kristoffer Grönlund wrote: Vladislav Bogdanov bub...@hoster-ok.com writes: I haven't had time to look closer at resource-discovery, but yes, I certainly intend to support every option that makes it into a released version of pacemaker at least. Great. Can't wait

Re: [Linux-HA] Pending state support

2014-11-12 Thread Vladislav Bogdanov
Hi Kristoffer! May I bump this one? Best, Vladislav 04.11.2014 11:15, Vladislav Bogdanov wrote: Hi Kristoffer, Dejan, all. May be it is time to add '-j' param to 'crm_mon -1' by default (if supported)? Best, Vladislav ___ Linux-HA mailing

[Linux-HA] Pending state support

2014-11-04 Thread Vladislav Bogdanov
Hi Kristoffer, Dejan, all. May be it is time to add '-j' param to 'crm_mon -1' by default (if supported)? Best, Vladislav ___ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also:

Re: [Linux-HA] Remote node attributes support in crmsh

2014-10-29 Thread Vladislav Bogdanov
29.10.2014 12:49, Dejan Muhamedagic wrote: ... On the other hand, this feature is relatively new (has it ever been released?) so it is much simpler to fix that breakage in pacemaker. It's not pacemaker, it's just a resource agent. Which makes it much easier to fix, just by introducing one

Re: [Linux-HA] Remote node attributes support in crmsh

2014-10-29 Thread Vladislav Bogdanov
29.10.2014 13:55, Dejan Muhamedagic wrote: On Wed, Oct 29, 2014 at 01:03:50PM +0300, Vladislav Bogdanov wrote: 29.10.2014 12:49, Dejan Muhamedagic wrote: ... On the other hand, this feature is relatively new (has it ever been released?) so it is much simpler to fix that breakage

Re: [Linux-HA] Remote node attributes support in crmsh

2014-10-28 Thread Vladislav Bogdanov
28.10.2014 21:15, David Vossel wrote: - Original Message - 22.10.2014 12:02, Dejan Muhamedagic wrote: On Mon, Oct 20, 2014 at 07:12:23PM +0300, Vladislav Bogdanov wrote: 20.10.2014 18:23, Dejan Muhamedagic wrote: Hi Vladislav, Hi Dejan! On Mon, Oct 20, 2014 at 09:03:40AM

Re: [Linux-HA] Remote node attributes support in crmsh

2014-10-22 Thread Vladislav Bogdanov
22.10.2014 12:02, Dejan Muhamedagic wrote: On Mon, Oct 20, 2014 at 07:12:23PM +0300, Vladislav Bogdanov wrote: 20.10.2014 18:23, Dejan Muhamedagic wrote: Hi Vladislav, Hi Dejan! On Mon, Oct 20, 2014 at 09:03:40AM +0300, Vladislav Bogdanov wrote: Hi Kristoffer, do you plan to add support

[Linux-HA] Remote node attributes support in crmsh

2014-10-20 Thread Vladislav Bogdanov
Hi Kristoffer, do you plan to add support for recently added remote node attributes feature to chmsh? Currently (at least as of 2.1, and I do not see anything relevant in the git log) crmsh fails to update CIB if it contains node attributes for remote (bare-metal) node, complaining that

Re: [Linux-HA] Remote node attributes support in crmsh

2014-10-20 Thread Vladislav Bogdanov
20.10.2014 18:23, Dejan Muhamedagic wrote: Hi Vladislav, Hi Dejan! On Mon, Oct 20, 2014 at 09:03:40AM +0300, Vladislav Bogdanov wrote: Hi Kristoffer, do you plan to add support for recently added remote node attributes feature to chmsh? Currently (at least as of 2.1, and I do not see

Re: [Linux-ha-dev] crmsh 2.0 released, and moving to Github

2014-05-26 Thread Vladislav Bogdanov
26.05.2014 15:01, Kristoffer Grönlund wrote: On Tue, 13 May 2014 11:42:16 +0300 Vladislav Bogdanov bub...@hoster-ok.com wrote: crmsh 2.0 as released unfortunately does not support rules in attribute lists. However, I am working on this specific feature right now, and it is almost ready

Re: [Linux-ha-dev] crmsh 2.0 released, and moving to Github

2014-05-13 Thread Vladislav Bogdanov
13.05.2014 11:30, Kristoffer Grönlund wrote: On Tue, 13 May 2014 08:26:27 +0300 Vladislav Bogdanov bub...@hoster-ok.com wrote: Hi Kristoffer, I may be missing something, but anyways. crmsh did not support Using Rules to Control Resource Options (http://clusterlabs.org/doc/en-US/Pacemaker

Re: [Linux-ha-dev] crmsh 2.0 released, and moving to Github

2014-05-12 Thread Vladislav Bogdanov
Hi Kristoffer, I may be missing something, but anyways. crmsh did not support Using Rules to Control Resource Options (http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/_using_rules_to_control_resource_options.html) in the past. Is it supported now, or, if not, do you have

Re: [Linux-HA] drbd/pacemaker multiple tgt targets, portblock, and race conditions (long-ish)

2013-11-19 Thread Vladislav Bogdanov
19.11.2013 13:48, Lars Ellenberg wrote: On Wed, Nov 13, 2013 at 09:02:47AM +0300, Vladislav Bogdanov wrote: 13.11.2013 04:46, Jefferson Ogata wrote: ... In practice i ran into failover problems under load almost immediately. Under load, when i would initiate a failover, there was a race

Re: [Linux-HA] iSCSI corruption during interconnect failure with pacemaker+tgt+drbd+protocol C

2013-11-12 Thread Vladislav Bogdanov
13.11.2013 06:10, Jefferson Ogata wrote: Here's a problem i don't understand, and i'd like a solution to if possible, or at least i'd like to understand why it's a problem, because i'm clearly not getting something. I have an iSCSI target cluster using CentOS 6.4 with stock

Re: [Linux-HA] drbd/pacemaker multiple tgt targets, portblock, and race conditions (long-ish)

2013-11-12 Thread Vladislav Bogdanov
13.11.2013 04:46, Jefferson Ogata wrote: ... In practice i ran into failover problems under load almost immediately. Under load, when i would initiate a failover, there was a race condition: the iSCSILogicalUnit RA will take down the LUNs one at a time, waiting for each connection to

Re: [Linux-HA] Xen RA and rebooting

2013-09-17 Thread Vladislav Bogdanov
17.09.2013 20:51, Tom Parker wrote: On 09/17/2013 01:13 AM, Vladislav Bogdanov wrote: 14.09.2013 07:28, Tom Parker wrote: Hello All Does anyone know of a good way to prevent pacemaker from declaring a vm dead if it's rebooted from inside the vm. It seems to be detecting the vm as stopped

Re: [Linux-HA] Xen RA and rebooting

2013-09-16 Thread Vladislav Bogdanov
14.09.2013 07:28, Tom Parker wrote: Hello All Does anyone know of a good way to prevent pacemaker from declaring a vm dead if it's rebooted from inside the vm. It seems to be detecting the vm as stopped for the brief moment between shutting down and starting up. Often this causes the

Re: [Linux-HA] Using rules for resource options control question

2013-09-13 Thread Vladislav Bogdanov
12.09.2013 11:57, Dejan Muhamedagic wrote: Hi Vladislav, On Wed, Sep 11, 2013 at 02:06:12PM +0300, Vladislav Bogdanov wrote: Hi Dejan, all, Didn't find the way to configure rule-controlled resource options (http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained

[Linux-HA] Using rules for resource options control question

2013-09-11 Thread Vladislav Bogdanov
Hi Dejan, all, Didn't find the way to configure rule-controlled resource options (http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/_using_rules_to_control_resource_options.html) in crmsh manual. Is it implemented and, if yes, how to use it? Thanks, Vladislav

Re: [Linux-HA] Max number of resources under Pacemaker ?

2013-09-04 Thread Vladislav Bogdanov
04.09.2013 07:16, Andrew Beekhof wrote: On 03/09/2013, at 9:20 PM, Moullé Alain alain.mou...@bull.net wrote: Hello, A simple question : is there a maximum number of resources (let's say simple primitives) that Pacemaker can support at first at configuration of ressources via crm, and

Re: [Linux-HA] Quick 'death match cycle' question.

2013-09-03 Thread Vladislav Bogdanov
03.09.2013 07:04, Digimer wrote: ... To solve problem 1, you can set a delay against one of the nodes. Say you set the fence primitive for node 01 to have 'delay=15'. When node 1 goes to fence node 2, it starts immediately. When node 2 starts to fence node 1, it sees the 15 second delay and

Re: [Linux-HA] Quick 'death match cycle' question.

2013-09-03 Thread Vladislav Bogdanov
03.09.2013 21:45, Digimer wrote: On 03/09/13 14:14, Vladislav Bogdanov wrote: 03.09.2013 07:04, Digimer wrote: ... To solve problem 1, you can set a delay against one of the nodes. Say you set the fence primitive for node 01 to have 'delay=15'. When node 1 goes to fence node 2, it starts

Re: [Linux-HA] Quick 'death match cycle' question.

2013-09-03 Thread Vladislav Bogdanov
03.09.2013 21:36, Lars Marowsky-Bree wrote: On 2013-09-03T21:14:02, Vladislav Bogdanov bub...@hoster-ok.com wrote: To solve problem 2, simply disable corosync/pacemaker from starting on boot. This way, the fenced node will be (hopefully) back up and running, so you can ssh into it and look

Re: [Linux-ha-dev] crmsh error : cib-bootstrap-options already exist

2013-08-27 Thread Vladislav Bogdanov
23.08.2013 16:48, Kristoffer Grönlund wrote: Hi, On Fri, 23 Aug 2013 16:33:28 +0300 Vladislav Bogdanov bub...@hoster-ok.com wrote: No-no, it was before that fix too, at least with 19a3f1e5833c. Should I still try? Ah, in that case, it has not been fixed. No need to try. I

Re: [Linux-ha-dev] crmsh error : cib-bootstrap-options already exist

2013-08-27 Thread Vladislav Bogdanov
27.08.2013 19:11, Dejan Muhamedagic wrote: Hi, On Tue, Aug 27, 2013 at 12:06:40PM +0300, Vladislav Bogdanov wrote: 23.08.2013 16:48, Kristoffer Grönlund wrote: Hi, On Fri, 23 Aug 2013 16:33:28 +0300 Vladislav Bogdanov bub...@hoster-ok.com wrote: No-no, it was before that fix too

Re: [Linux-ha-dev] crmsh error : cib-bootstrap-options already exist

2013-08-23 Thread Vladislav Bogdanov
22.08.2013 13:57, Kristoffer Grönlund wrote: Hi Takatoshi-san, On Wed, 21 Aug 2013 13:56:34 +0900 Takatoshi MATSUO matsuo@gmail.com wrote: Hi Kristoffer I reproduced the error with latest changest(b5ffd99e). Thank you, with your description I was able to reproduce and create a

Re: [Linux-ha-dev] crmsh error : cib-bootstrap-options already exist

2013-08-23 Thread Vladislav Bogdanov
23.08.2013 16:10, Kristoffer Grönlund wrote: Hi Vladislav, On Fri, 23 Aug 2013 11:50:54 +0300 Vladislav Bogdanov bub...@hoster-ok.com wrote: Kristoffer, Dejan, could you please also look why I loose the whole rsc_defaults $id=rsc_options section when I do 'crm configure edit' and edit

Re: [Linux-HA] Storing arbitrary metadata in the CIB

2013-08-22 Thread Vladislav Bogdanov
22.08.2013 15:08, Ferenc Wagner wrote: Hi, Our setup uses some cluster wide pieces of meta information. Think access control lists for resource instances used by some utilities or some common configuration data used by the resource agents. Currently this info is stored in local files on

Re: [Linux-HA] Adding node in advance

2013-07-15 Thread Vladislav Bogdanov
15.07.2013 12:36, Dejan Muhamedagic wrote: Hi Vladislav, On Fri, Jul 12, 2013 at 01:48:34PM +0300, Vladislav Bogdanov wrote: Hi, I wanted to add new node into CIB in advance, before it is powered on (to power it on in a standby mode while cl#5169 is not implemented). So, I did

[Linux-HA] crm resource restart is broken (d4de3af6dd33)

2013-07-12 Thread Vladislav Bogdanov
Hi Dejan, It seems like resource restart does not work any longer. # crm resource restart test01-vm INFO: ordering test01-vm to stop Traceback (most recent call last): File /usr/sbin/crm, line 44, in module main.run() File /usr/lib64/python2.6/site-packages/crmsh/main.py, line 442, in

Re: [Linux-HA] crm resource restart is broken (d4de3af6dd33)

2013-07-12 Thread Vladislav Bogdanov
12.07.2013 12:06, Vladislav Bogdanov wrote: Hi Dejan, It seems like resource restart does not work any longer. Ah, this seems to be fixed by bb39cce17f20. Sorry for noise. ___ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux

Re: [Linux-HA] crm node delete

2013-07-12 Thread Vladislav Bogdanov
01.07.2013 17:29, Vladislav Bogdanov wrote: Hi, I'm trying to look if it is now safe to delete non-running nodes (corosync 2.3, pacemaker HEAD, crmsh tip). # crm node delete v02-d WARNING: 2: crm_node bad format: 7 v02-c WARNING: 2: crm_node bad format: 8 v02-d WARNING: 2: crm_node bad

[Linux-HA] Adding node in advance

2013-07-12 Thread Vladislav Bogdanov
Hi, I wanted to add new node into CIB in advance, before it is powered on (to power it on in a standby mode while cl#5169 is not implemented). So, I did == [root@vd01-a tmp]# cat u node $id=4 vd01-d \ attributes standby=on virtualization=true [root@vd01-a tmp]# crm configure load

Re: [Linux-HA] crm node delete

2013-07-10 Thread Vladislav Bogdanov
10.07.2013 18:14, Dejan Muhamedagic wrote: ... [root@v02-b ~]# crm node delete v02-d ERROR: according to crm_node, node v02-d is still active You can now: # crm --force node delete ... Thanks, Vladislav ___ Linux-HA mailing list

Re: [Linux-HA] crm node delete

2013-07-09 Thread Vladislav Bogdanov
03.07.2013 19:31, Dejan Muhamedagic wrote: On Tue, Jul 02, 2013 at 07:53:52AM +0300, Vladislav Bogdanov wrote: 01.07.2013 18:29, Dejan Muhamedagic wrote: Hi, On Mon, Jul 01, 2013 at 05:29:31PM +0300, Vladislav Bogdanov wrote: Hi, I'm trying to look if it is now safe to delete non-running

Re: [Linux-HA] crm node delete

2013-07-09 Thread Vladislav Bogdanov
10.07.2013 03:39, Andrew Beekhof wrote: On 10/07/2013, at 1:51 AM, Vladislav Bogdanov bub...@hoster-ok.com wrote: 03.07.2013 19:31, Dejan Muhamedagic wrote: On Tue, Jul 02, 2013 at 07:53:52AM +0300, Vladislav Bogdanov wrote: 01.07.2013 18:29, Dejan Muhamedagic wrote: Hi, On Mon, Jul 01

Re: [Linux-HA] crm node delete

2013-07-09 Thread Vladislav Bogdanov
10.07.2013 07:05, Andrew Beekhof wrote: On 10/07/2013, at 2:04 PM, Vladislav Bogdanov bub...@hoster-ok.com wrote: 10.07.2013 03:39, Andrew Beekhof wrote: On 10/07/2013, at 1:51 AM, Vladislav Bogdanov bub...@hoster-ok.com wrote: 03.07.2013 19:31, Dejan Muhamedagic wrote: On Tue, Jul 02

Re: [Linux-HA] crm node delete

2013-07-09 Thread Vladislav Bogdanov
10.07.2013 08:13, Andrew Beekhof wrote: On 10/07/2013, at 2:15 PM, Vladislav Bogdanov bub...@hoster-ok.com wrote: 10.07.2013 07:05, Andrew Beekhof wrote: On 10/07/2013, at 2:04 PM, Vladislav Bogdanov bub...@hoster-ok.com wrote: 10.07.2013 03:39, Andrew Beekhof wrote: On 10/07/2013

Re: [Linux-HA] crm node delete

2013-07-09 Thread Vladislav Bogdanov
10.07.2013 08:38, Andrew Beekhof wrote: On 10/07/2013, at 3:37 PM, Vladislav Bogdanov bub...@hoster-ok.com wrote: 10.07.2013 08:13, Andrew Beekhof wrote: On 10/07/2013, at 2:15 PM, Vladislav Bogdanov bub...@hoster-ok.com wrote: 10.07.2013 07:05, Andrew Beekhof wrote: On 10/07/2013

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-07-05 Thread Vladislav Bogdanov
04.07.2013 19:09, Dejan Muhamedagic wrote: On Thu, Jul 04, 2013 at 05:40:07PM +0300, Vladislav Bogdanov wrote: 04.07.2013 17:25, Dejan Muhamedagic wrote: On Wed, Jul 03, 2013 at 04:33:20PM +0300, Vladislav Bogdanov wrote: 03.07.2013 15:43, Dejan Muhamedagic wrote: Hi Lars, On Wed, Jul 03

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-07-05 Thread Vladislav Bogdanov
05.07.2013 14:38, Dejan Muhamedagic wrote: On Fri, Jul 05, 2013 at 09:31:07AM +0300, Vladislav Bogdanov wrote: 04.07.2013 19:09, Dejan Muhamedagic wrote: On Thu, Jul 04, 2013 at 05:40:07PM +0300, Vladislav Bogdanov wrote: 04.07.2013 17:25, Dejan Muhamedagic wrote: On Wed, Jul 03, 2013 at 04

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-07-05 Thread Vladislav Bogdanov
05.07.2013 16:25, Vladislav Bogdanov wrote: 05.07.2013 14:38, Dejan Muhamedagic wrote: On Fri, Jul 05, 2013 at 09:31:07AM +0300, Vladislav Bogdanov wrote: 04.07.2013 19:09, Dejan Muhamedagic wrote: On Thu, Jul 04, 2013 at 05:40:07PM +0300, Vladislav Bogdanov wrote: 04.07.2013 17:25, Dejan

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-07-05 Thread Vladislav Bogdanov
05.07.2013 19:46, Lars Marowsky-Bree wrote: On 2013-07-05T19:06:54, Vladislav Bogdanov bub...@hoster-ok.com wrote: params #merge param1=value1 param2=value2 meta #replace ... utilization #keep and so on. With default to #replace? Even more. If we allow such meta lexems anywhere

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-07-04 Thread Vladislav Bogdanov
03.07.2013 02:24, Andrew Beekhof wrote: ... I don't even know what I'm thinking half the time, I'd not recommend trying to guess :) No fundamental objection to such a feature, but I'd be reluctant to add it until we get an attrd that was truly atomic. That code is mostly bandages and

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-07-04 Thread Vladislav Bogdanov
03.07.2013 16:28, Vladislav Bogdanov wrote: ... So I'd probably just hack crmsh to not touch node utilization attributes if whole 'utilization' part is missing in the update. Unfortunately this doesn't seem to be possible with my python programming level (near zero)... :( It is clear for me

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-07-04 Thread Vladislav Bogdanov
04.07.2013 17:25, Dejan Muhamedagic wrote: On Wed, Jul 03, 2013 at 04:33:20PM +0300, Vladislav Bogdanov wrote: 03.07.2013 15:43, Dejan Muhamedagic wrote: Hi Lars, On Wed, Jul 03, 2013 at 12:05:17PM +0200, Lars Marowsky-Bree wrote: On 2013-07-03T10:26:09, Dejan Muhamedagic deja...@fastmail.fm

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-07-04 Thread Vladislav Bogdanov
04.07.2013 17:40, Vladislav Bogdanov wrote: ... The only question is how to remove existing attributes. Another one is how to forcibly replace the whole section or the whole object definition, without caring about its original content. ___ Linux-HA

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-07-03 Thread Vladislav Bogdanov
03.07.2013 13:00, Lars Marowsky-Bree wrote: On 2013-07-03T00:20:19, Vladislav Bogdanov bub...@hoster-ok.com wrote: I do not edit them. I my setup I generate full crm config with template-based framework. And then you do a load/replace? Tough; yes, that'll clearly overwrite Actually 'load

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-07-03 Thread Vladislav Bogdanov
03.07.2013 15:43, Dejan Muhamedagic wrote: Hi Lars, On Wed, Jul 03, 2013 at 12:05:17PM +0200, Lars Marowsky-Bree wrote: On 2013-07-03T10:26:09, Dejan Muhamedagic deja...@fastmail.fm wrote: Not sure that is expected by most people. How you then delete attributes? Tough call :) Ideas

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-07-02 Thread Vladislav Bogdanov
28.06.2013 17:47, Dejan Muhamedagic wrote: ... If you want to test here's a new patch. It does work with unrelated changes happening in the meantime. I didn't test yet really concurrent updates. One thing I see immediately, is that node utilization attributes are deleted after I do 'load

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-07-02 Thread Vladislav Bogdanov
02.07.2013 12:27, Lars Marowsky-Bree wrote: On 2013-07-02T11:05:01, Vladislav Bogdanov bub...@hoster-ok.com wrote: One thing I see immediately, is that node utilization attributes are deleted after I do 'load update' with empty node utilization sections. That is probably not specific

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-07-02 Thread Vladislav Bogdanov
02.07.2013 14:55, Andrew Beekhof wrote: On 02/07/2013, at 8:14 PM, Vladislav Bogdanov bub...@hoster-ok.com wrote: 02.07.2013 12:27, Lars Marowsky-Bree wrote: On 2013-07-02T11:05:01, Vladislav Bogdanov bub...@hoster-ok.com wrote: One thing I see immediately, is that node utilization

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-07-02 Thread Vladislav Bogdanov
02.07.2013 15:13, Lars Marowsky-Bree wrote: On 2013-07-02T13:14:48, Vladislav Bogdanov bub...@hoster-ok.com wrote: Yes, that's exactly what you need here. I know, but I do not expect that to be implemented soon. crm_attribute -l reboot -z doesn't strike me as an unlikely request. You

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-07-02 Thread Vladislav Bogdanov
03.07.2013 00:16, Lars Marowsky-Bree wrote: On 2013-07-03T00:11:53, Vladislav Bogdanov bub...@hoster-ok.com wrote: F.e. I need to do CIB update (think of it as of full replace), because I generate crmsh configuration with custom template-based system. And I have some RAs which set

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-07-02 Thread Vladislav Bogdanov
03.07.2013 00:20, Vladislav Bogdanov wrote: ... But tickets currently are quite limited - they have only 4 states, so it is impossible to put f.e. number there. What are you trying to do with that? That is very convenient way to f.e stop dozen of resources in one shot for some maintenance

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-07-02 Thread Vladislav Bogdanov
02.07.2013 20:05, Dejan Muhamedagic wrote: On Tue, Jul 02, 2013 at 11:05:01AM +0300, Vladislav Bogdanov wrote: 28.06.2013 17:47, Dejan Muhamedagic wrote: ... If you want to test here's a new patch. It does work with unrelated changes happening in the meantime. I didn't test yet really

[Linux-HA] crm node delete

2013-07-01 Thread Vladislav Bogdanov
Hi, I'm trying to look if it is now safe to delete non-running nodes (corosync 2.3, pacemaker HEAD, crmsh tip). # crm node delete v02-d WARNING: 2: crm_node bad format: 7 v02-c WARNING: 2: crm_node bad format: 8 v02-d WARNING: 2: crm_node bad format: 5 v02-a WARNING: 2: crm_node bad format: 6

Re: [Linux-HA] crm node delete

2013-07-01 Thread Vladislav Bogdanov
01.07.2013 18:29, Dejan Muhamedagic wrote: Hi, On Mon, Jul 01, 2013 at 05:29:31PM +0300, Vladislav Bogdanov wrote: Hi, I'm trying to look if it is now safe to delete non-running nodes (corosync 2.3, pacemaker HEAD, crmsh tip). # crm node delete v02-d WARNING: 2: crm_node bad format: 7

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-06-27 Thread Vladislav Bogdanov
26.06.2013 18:30, Dejan Muhamedagic wrote: On Wed, Jun 26, 2013 at 06:13:33PM +0300, Vladislav Bogdanov wrote: 26.06.2013 15:57, Dejan Muhamedagic wrote: On Thu, Jun 06, 2013 at 05:19:03PM +0200, Dejan Muhamedagic wrote: Hi, On Thu, Jun 06, 2013 at 03:11:16PM +0300, Vladislav Bogdanov wrote

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-06-26 Thread Vladislav Bogdanov
26.06.2013 15:57, Dejan Muhamedagic wrote: On Thu, Jun 06, 2013 at 05:19:03PM +0200, Dejan Muhamedagic wrote: Hi, On Thu, Jun 06, 2013 at 03:11:16PM +0300, Vladislav Bogdanov wrote: 06.06.2013 08:43, Vladislav Bogdanov wrote: [...] I recall that LDAP has similar problem, which is easily

[Linux-HA] crmsh and fencing_topology

2013-06-13 Thread Vladislav Bogdanov
Dejan, here is the patch to fix parsing of fencing_topology: --- a/modules/xmlutil.py2013-06-07 07:21:10.0 + +++ b/modules/xmlutil.py2013-06-13 07:51:09.704924693 + @@ -937,7 +937,7 @@ def get_set_nodes(e,setname,create = 0): def xml_noorder_hash(n): return

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-06-06 Thread Vladislav Bogdanov
06.06.2013 09:02, Andrew Beekhof wrote: On 06/06/2013, at 3:45 PM, Vladislav Bogdanov bub...@hoster-ok.com wrote: 06.06.2013 08:14, Andrew Beekhof wrote: On 06/06/2013, at 2:50 PM, Vladislav Bogdanov bub...@hoster-ok.com wrote: 06.06.2013 07:31, Andrew Beekhof wrote: On 06/06/2013

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-06-06 Thread Vladislav Bogdanov
06.06.2013 08:43, Vladislav Bogdanov wrote: [...] I recall that LDAP has similar problem, which is easily worked around with specifying two values, one is original, second is new. That way you tell LDAP server: Replace value Y in attribute X to value Z. And if value is not Y at the moment

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-06-05 Thread Vladislav Bogdanov
05.06.2013 02:04, Andrew Beekhof wrote: On 05/06/2013, at 5:08 AM, Ferenc Wagner wf...@niif.hu wrote: Dejan Muhamedagic deja...@fastmail.fm writes: On Mon, Jun 03, 2013 at 06:19:06PM +0200, Ferenc Wagner wrote: I've got a script for resource creation, which puts the new resource in a

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-06-05 Thread Vladislav Bogdanov
06.06.2013 07:31, Andrew Beekhof wrote: On 06/06/2013, at 2:27 PM, Vladislav Bogdanov bub...@hoster-ok.com wrote: 05.06.2013 02:04, Andrew Beekhof wrote: On 05/06/2013, at 5:08 AM, Ferenc Wagner wf...@niif.hu wrote: Dejan Muhamedagic deja...@fastmail.fm writes: On Mon, Jun 03, 2013

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-06-05 Thread Vladislav Bogdanov
06.06.2013 08:14, Andrew Beekhof wrote: On 06/06/2013, at 2:50 PM, Vladislav Bogdanov bub...@hoster-ok.com wrote: 06.06.2013 07:31, Andrew Beekhof wrote: On 06/06/2013, at 2:27 PM, Vladislav Bogdanov bub...@hoster-ok.com wrote: 05.06.2013 02:04, Andrew Beekhof wrote: On 05/06/2013

Re: [Linux-HA] disallowing concurrent configuration (CIB modifications)

2013-06-05 Thread Vladislav Bogdanov
06.06.2013 08:14, Andrew Beekhof wrote: On 06/06/2013, at 2:50 PM, Vladislav Bogdanov bub...@hoster-ok.com wrote: 06.06.2013 07:31, Andrew Beekhof wrote: On 06/06/2013, at 2:27 PM, Vladislav Bogdanov bub...@hoster-ok.com wrote: 05.06.2013 02:04, Andrew Beekhof wrote: On 05/06/2013

Re: [Linux-HA] Behaviour of fence/stonith device fence_imm

2013-04-17 Thread Vladislav Bogdanov
16.04.2013 12:47, Andreas Mock wrote: Hi Marek, hi all, we just investigated this problem a little further while looking at the sources of fence_imm. It seems that the IMM device does a soft shutdown despite documented differently. I can reproduce this with the ipmitool directly and also

Re: [Linux-HA] master/slave drbd resource STILL will not failover

2012-12-01 Thread Vladislav Bogdanov
02.12.2012 00:34, Robinson, Eric wrote: Try to set 'target-role=Started' in both of them. Okay, but how does that address the problem of error code 11 from drbdadm? Well, you have error promoting resources. 11 is EAGAIN, usually meaning you did not demote the other side. Your logs contain

Re: [Linux-HA] master/slave drbd resource STILL will not failover

2012-11-30 Thread Vladislav Bogdanov
30.11.2012 00:14, Robinson, Eric wrote: Bump... does anyone have some insight on this? Google is not turning up anything useful. Our newest cluster will not failover master/slave drbd resources. It works fine manually using drbdadm from a shell prompt, but when we try it using 'crm node

Re: [Linux-HA] cib_replace failed?

2012-11-01 Thread Vladislav Bogdanov
31.10.2012 20:55, Robinson, Eric wrote: Okay, the two node names are ha09a and ha09b. Starting clean with all services turned off. This is what I get in /var/log/corosync.log on ha09a when I start corosync... Oct 31 10:22:43 corosync [MAIN ] Corosync Cluster Engine ('1.4.3'): started

Re: [Linux-HA] clvm/dlm/gfs2 hangs if a node crashes

2012-03-15 Thread Vladislav Bogdanov
14.03.2012 00:42, William Seligman wrote: [snip] These were the log messages, which show that stonith_admin did its job and CMAN was notified of the fencing: http://pastebin.com/jaH820Bv. Could you please look at the output of 'dlm_tool ls' and 'dlm_tool dump'? You probably have 'kern_stop'

Re: [Linux-HA] clvm/dlm/gfs2 hangs if a node crashes

2012-03-15 Thread Vladislav Bogdanov
15.03.2012 18:43, William Seligman wrote: On 3/15/12 3:43 AM, Vladislav Bogdanov wrote: 14.03.2012 00:42, William Seligman wrote: [snip] These were the log messages, which show that stonith_admin did its job and CMAN was notified of the fencing: http://pastebin.com/jaH820Bv. Could you

Re: [Linux-ha-dev] [ha-wg-technical] Proposal to drop vgck in LVM RA

2012-02-20 Thread Vladislav Bogdanov
Hi Dejan, 20.02.2012 20:23, Dejan Muhamedagic wrote: Hi Vladislav, On Fri, Feb 03, 2012 at 10:33:52AM +0300, Vladislav Bogdanov wrote: Hi Dejan, all, 02.02.2012 19:44, Dejan Muhamedagic wrote: Hello all, Sorry for crossposting, but can anybody comment on the matter bellow? Thanks

Re: [Linux-ha-dev] [ha-wg-technical] Proposal to drop vgck in LVM RA

2012-02-02 Thread Vladislav Bogdanov
___ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/ #!/bin/bash # # LV management RA # # Copyright (c) 2011 Vladislav Bogdanov bub...@hoster-ok.com # # Partially based on LVM RA by Alan

[Linux-HA] crmsh property management regression

2012-01-16 Thread Vladislav Bogdanov
Hi Dejan, I'm evaluating crmsh in place of pacemaker bundled crm (because of rsc_ticket support). With current crmsh (b4b063507de0) it is impossible (ok, very hard) to manage cluster properties: # crm configure crm(live)configure# property [tab] ERROR: crmd:metadata: could not parse meta-data:

Re: [Linux-HA] crmsh property management regression

2012-01-16 Thread Vladislav Bogdanov
Hi Dejan, thank you very much for a good pointer, you saved me much time. 16.01.2012 16:20, Dejan Muhamedagic wrote: Hi Vladislav, On Mon, Jan 16, 2012 at 02:14:29PM +0300, Vladislav Bogdanov wrote: Hi Dejan, I'm evaluating crmsh in place of pacemaker bundled crm (because of rsc_ticket

Re: [Linux-HA] crmsh property management regression

2012-01-16 Thread Vladislav Bogdanov
16.01.2012 20:56, Dejan Muhamedagic wrote: On Mon, Jan 16, 2012 at 06:47:54PM +0300, Vladislav Bogdanov wrote: Hi Dejan, thank you very much for a good pointer, you saved me much time. 16.01.2012 16:20, Dejan Muhamedagic wrote: Hi Vladislav, On Mon, Jan 16, 2012 at 02:14:29PM +0300

Re: [Linux-HA] Resended : Understanding how heartbeat and pacemaker work together

2012-01-14 Thread Vladislav Bogdanov
13.01.2012 13:04, Niclas Müller wrote: I've grouped both as www-services and not it is running like i want. Change to takeover is 4-6 sec. Its good, but I want to go to 1-3 sec as far as possible. Much process last will there not because I only made a Pacemaker runs monitor actions at a

Re: [Linux-HA] Antw: limited usefulness of ocf_take_lock()

2011-11-28 Thread Vladislav Bogdanov
28.11.2011 13:09, Ulrich Windl wrote: Hi! I posted one more implementation in http://www.mail-archive.com/linux-ha@lists.linux-ha.org/msg19760.html as a part of bigger code snippet. It just uses -C shell option to create lock files (exists at least in bash and dash). Here is a locking

Re: [Linux-HA] Error running corosync

2011-11-20 Thread Vladislav Bogdanov
21.11.2011 04:18, Nick Khamis wrote: Correction! Some of the ocfs2_controld.pcmk errors posted earlier was due to pacemaker not running with /service.d/pcmk. The error is actually: http://pastebin.com/XCiuhU20. If I can get the standard dlm working it will all come together! You can't.

Re: [Linux-HA] Error running corosync

2011-11-20 Thread Vladislav Bogdanov
21.11.2011 01:18, Andrew Beekhof wrote: On Sat, Nov 19, 2011 at 1:02 AM, Nick Khamis sym...@gmail.com wrote: Hello Andrew, Thank you so much for your response. My concern was elimination as much of cman as possible, Then don't use it at all. since the goal was to run pacemaker on top

Re: [Linux-HA] Error running corosync

2011-11-18 Thread Vladislav Bogdanov
Hi, 18.11.2011 17:02, Nick Khamis wrote: [snip] Vladislav, was this ocfs2 stack kernel crash you were experiencing one year ago: To be frank, I do not remember. It was a year ago ;) Starting ocfs2_controld... [ OK ] Message from syslogd@astdrbd1 at Nov 18 08:51:59 ... kernel:[

  1   2   >