[Pacemaker] Cannot get "order" constraint to work.

Dejan Muhamedagic dejanmm at fastmail.fm
Wed Oct 14 12:06:11 UTC 2009


Hi,

On Wed, Oct 14, 2009 at 01:47:08PM +0300, Stratos Zolotas wrote:
> Hi,
> 
> all the packages are from the opensuse standard repos.
> 
> alpha:/ # /usr/lib64/heartbeat/crmd version
> CRM Version: 1.0.1 (node: 27be064e090742359bbdd1914f9d7dd363c8e0d8)
> alpha:/ #

That's fairly old. Can you please upgrade.

Thanks,

Dejan

> Thanks.
> 
> On Wed, Oct 14, 2009 at 1:44 PM, Dejan Muhamedagic <dejanmm at fastmail.fm>wrote:
> 
> > Hi,
> >
> > On Wed, Oct 14, 2009 at 01:30:32PM +0300, Stratos Zolotas wrote:
> > > order mysql_after_drbd inf: ms_drbd_mysql:promote mysql:start
> > >
> > > is committed ok, but it doesn't show right in the configuration:
> > >
> > > primitive fs_mysql ocf:heartbeat:Filesystem \
> > >         params device="/dev/drbd0" directory="/service/" fstype="ext3"
> > > primitive ip_mysql ocf:heartbeat:IPaddr2 \
> > >         params ip="192.168.1.72" nic="eth2:0"
> > > primitive mysqld lsb:mysql
> > > primitive apache lsb:apache2
> > > primitive drbd_mysql ocf:linbit:drbd \
> > >         params drbd_resource="r0" \
> > >         operations $id="drbd_mysql-ops" \
> > >         op monitor interval="15s"
> > > group mysql fs_mysql ip_mysql mysqld apache
> > > ms ms_drbd_mysql drbd_mysql \
> > >         meta master-max="1" master-node-max="1" clone-max="2"
> > > clone-node-max="1" notify="true"
> > > colocation mysql_on_drbd INFINITY: mysql ms_drbd_mysql:Master
> > > order mysql_after_drbd INFINITY:
> >
> > Funny. I've never seen this :)
> >
> > > property $id="cib-bootstrap-options" \
> > >         dc-version="1.0.1-node: 27be064e090742359bbdd1914f9d7dd363c8e0d8"
> > \
> >
> > Which version do you run? See with /usr/lib/heartbeat/crmd version.
> >
> > Thanks,
> >
> > Dejan
> >
> > >         no-quorum-policy="ignore" \
> > >         stonith-enabled="false" \
> > >         default-resource-stickiness="1000"
> > >
> > > And if i exit crm and enter again i get:
> > >
> > > alpha:/ # crm
> > > crm(live)# configure
> > > ERROR: syntax : order mysql_after_drbd INFINITY:
> > > crm(live)configure# show
> > > ERROR: object mysql_after_drbd cannot be represented in the CLI notation
> > > crm(live)configure#
> > >
> > > I'm attaching my log.
> > >
> > > Thanks.
> > >
> > > On Wed, Oct 14, 2009 at 1:21 PM, Dejan Muhamedagic <dejanmm at fastmail.fm
> > >wrote:
> > >
> > > > Hi,
> > > >
> > > > On Wed, Oct 14, 2009 at 12:13:42PM +0200, Johan Verrept wrote:
> > > > > Sorry, I missed that. Was already wondering why the error was so
> > > > > cryptic.
> > > > >
> > > > > It is definatly possible, I use it myself:
> > > > >
> > > > > order drbd-before-master-group inf: ms-drbd0:promote
> > master-group:start
> > > > >
> > > > > And master-group is a group with 3 primitives.
> > > > >
> > > > > Maybe try the inf: instead of the mandatory: ?
> > > >
> > > > Maybe, that's equal, though mandatory should work fine as well.
> > > >
> > > > The only way to figure out what's going on is to take a look at
> > > > the logs.
> > > >
> > > > Thanks,
> > > >
> > > > Dejan
> > > >
> > > > > FYI, I am on pacemaker 1.0.5.
> > > > >
> > > > >       J.
> > > > >
> > > > > On Wed, 2009-10-14 at 13:11 +0300, Stratos Zolotas wrote:
> > > > > > As you can see in the config, I have a group named mysql that
> > includes
> > > > > > fs_mysql, ip_mysql, mysqld, apache primitives.
> > > > > >
> > > > > > The expecting result is to start this group after ms_drbd_mysql is
> > > > > > promoted to one of the nodes.
> > > > > >
> > > > > > Is this wrong? Should I try a different approach?
> > > > > >
> > > > > > Stratos.
> > > > > >
> > > > > > On Wed, Oct 14, 2009 at 1:02 PM, Johan Verrept <
> > Johan.Verrept at able.be>
> > > > > > wrote:
> > > > > >         I don't know if it is your only problem but in the order
> > you
> > > > > >         refer to
> > > > > >         primitive "mysql" while in your configuration you have
> > > > > >         primitive
> > > > > >         "mysqld". Note the "d".
> > > > > >         Other than that, the order constraint looks like mine.
> > > > > >
> > > > > >                J.
> > > > > >
> > > > > >
> > > > > >         On Wed, 2009-10-14 at 12:59 +0300, Stratos Zolotas wrote:
> > > > > >         > Hello again.
> > > > > >         >
> > > > > >         > After struggling with the latest versions, i decided to
> > try
> > > > > >         with the
> > > > > >         > versions in the standard opesuse repos, that means:
> > > > > >         >
> > > > > >         > openais 0.80.3
> > > > > >         > libopenais2 0.80.3
> > > > > >         > pacemaker 1.0.1
> > > > > >         > libpacemaker3 1.0.1
> > > > > >         > heartbeat 2.99.3
> > > > > >         > heartbeat-common 2.99.3
> > > > > >         > heartbeat-resources 2.99.3
> > > > > >         > libheartbeat2 2.99.3
> > > > > >         > OpenIPMI 2.0.14
> > > > > >         >
> > > > > >         > It seems to work ok, the nodes are communicating and i
> > can
> > > > > >         connect to
> > > > > >         > cib and create configuration, but i cannot configure an
> > > > > >         order
> > > > > >         > constraint in the configuration file.
> > > > > >         >
> > > > > >         > I try this:
> > > > > >         >
> > > > > >         > order mysql_after_drbd mandatory: ms_drbd_mysql:promote
> > > > > >         mysql:start
> > > > > >         >
> > > > > >         > But when i try to commit i get:
> > > > > >         >
> > > > > >         > Call cib_create failed (-47): Update does not conform to
> > the
> > > > > >         > configured schema/DTD
> > > > > >         > <null>
> > > > > >         > ERROR: could not create mysql_after_drbd
> > > > > >         > offending xml: <rsc_order first="ms_drbd_mysql"
> > > > > >         first-action="promote"
> > > > > >         > id="mysql_after_drbd" score="inf" then="mysql"
> > > > > >         then-action="start"/>
> > > > > >         >
> > > > > >         > Am I doing something wrong?
> > > > > >         >
> > > > > >         > The rest of the configuration is accepted and is:
> > > > > >         >
> > > > > >         > primitive fs_mysql ocf:heartbeat:Filesystem \
> > > > > >         >         params device="/dev/drbd0" directory="/service/"
> > > > > >         fstype="ext3"
> > > > > >         > primitive ip_mysql ocf:heartbeat:IPaddr2 \
> > > > > >         >         params ip="192.168.1.72" nic="eth2:0"
> > > > > >         > primitive mysqld lsb:mysql
> > > > > >         > primitive apache lsb:apache2
> > > > > >         > primitive drbd_mysql ocf:linbit:drbd \
> > > > > >         >         params drbd_resource="r0" \
> > > > > >         >         operations $id="drbd_mysql-ops" \
> > > > > >         >         op monitor interval="15s"
> > > > > >         > group mysql fs_mysql ip_mysql mysqld apache
> > > > > >         > ms ms_drbd_mysql drbd_mysql \
> > > > > >         >         meta master-max="1" master-node-max="1"
> > > > > >         clone-max="2"
> > > > > >         > clone-node-max="1" notify="true"
> > > > > >         > colocation mysql_on_drbd INFINITY: mysql
> > > > > >         ms_drbd_mysql:Master
> > > > > >         > property $id="cib-bootstrap-options" \
> > > > > >         >         dc-version="1.0.1-node:
> > > > > >         > 27be064e090742359bbdd1914f9d7dd363c8e0d8" \
> > > > > >         >         no-quorum-policy="ignore" \
> > > > > >         >         stonith-enabled="false" \
> > > > > >         >         default-resource-stickiness="1000"
> > > > > >         >
> > > > > >         > Thanks in advance
> > > > > >         >
> > > > > >         > Stratos.
> > > > > >         >
> > > > > >
> > > > > >         > _______________________________________________
> > > > > >         > Pacemaker mailing list
> > > > > >         > Pacemaker at oss.clusterlabs.org
> > > > > >         > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> > > > > >
> > > > > >
> > > > > >         _______________________________________________
> > > > > >         Pacemaker mailing list
> > > > > >         Pacemaker at oss.clusterlabs.org
> > > > > >         http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Kernel IT Solutions Ltd
> > > > > > http://www.kernelit.gr
> > > > > >
> > > > > > Cyclades Wireless Network
> > > > > > http://www.cywn.gr
> > > > > > _______________________________________________
> > > > > > Pacemaker mailing list
> > > > > > Pacemaker at oss.clusterlabs.org
> > > > > > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > Pacemaker mailing list
> > > > > Pacemaker at oss.clusterlabs.org
> > > > > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> > > >
> > > > _______________________________________________
> > > > Pacemaker mailing list
> > > > Pacemaker at oss.clusterlabs.org
> > > > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> > > >
> > >
> > >
> > >
> > > --
> > > Kernel IT Solutions Ltd
> > > http://www.kernelit.gr
> > >
> > > Cyclades Wireless Network
> > > http://www.cywn.gr
> >
> >
> > > _______________________________________________
> > > Pacemaker mailing list
> > > Pacemaker at oss.clusterlabs.org
> > > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> >
> >
> > _______________________________________________
> > Pacemaker mailing list
> > Pacemaker at oss.clusterlabs.org
> > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> >

> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker





More information about the Pacemaker mailing list