[Pacemaker] Extending CTS with other tests

Andrew Beekhof andrew at beekhof.net
Tue Nov 30 16:03:53 UTC 2010


On Tue, Nov 30, 2010 at 1:32 PM, Vit Pelcak <vpelcak at suse.cz> wrote:
> class OCFS2(CIB10):
>    def add_resources(self):
>        self._create('''primitive clvm ocf:lvm2:clvmd op start interval="0"
> timeout="90s" op stop interval="0" timeout="100s"''')
>        self._create('''primitive cmirror ocf:lvm2:cmirrord op start
> interval="0" timeout="90s" op stop interval="0" timeout="100s"''')
>        self._create('''primitive dlm ocf:pacemaker:controld op start
> interval="0" timeout="90s" op stop interval="0" timeout="100s"''')
>        self._create('''primitive o2cb ocf:ocfs2:o2cb op start interval="0"
> timeout="90s" op stop interval="0" timeout="100s"''')
>        self._create('''primitive ocfs2 ocf:heartbeat:Filesystem params
> directory="%s" fstype="ocfs2" device="%s" op monitor interval="20"
> timeout="40" op start interval="0" timeout="60s" op stop interval="0"
> timeout="60s"''' % ("mount-dir", "ocfs2-disk"))
>        self._create('''group o2stage dlm clvm o2cb cmirror''')
>        self._create('''clone c-o2stage o2stage meta interleave="true"''')
>        self._create('''clone c-ocfs2 ocfs2 meta interleave="true"
> ordered="true"''')
>        self._create('''colocation colo-ocfs2-o2stage inf: c-ocfs2
> c-o2stage''')
>        self._create('''order order-ocfs2-o2stage 0: c-o2stage c-ocfs2''')
>
> class MYSQL(CIB10):
>    def add_resources(self):
>        self._create('''primitive fs1 ocf:heartbeat:Filesystem op monitor
> interval="20" timeout="40" start-delay="10" params device="%s"
> directory="%s" fstype="%s"''' % ("disk", "mysql-dir", "fstype"))
>        self._create('''property no-quorum-policy="ignore" op monitor
> interval="10" timeout="120" start-delay="10 params binary="%s" pid="%s''' %
> ("mysql-exec", "mysql-pid"))
>        self._create('''primitive sql1 ocf:heartbeat:mysql''')
>        self._create('''colocation col-sql1 +inf: sql1 fs1''')
>        self._create('''order order-sql1 +inf: fs1 sql1''')


Oh, these were independent scenarios?




More information about the Pacemaker mailing list