[Pacemaker] Extending CTS with other tests

Vit Pelcak vpelcak at suse.cz
Wed Dec 1 03:16:19 EST 2010


Dne 30.11.2010 17:03, Andrew Beekhof napsal(a):
> 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?

Yes. Is it correct?

> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker





More information about the Pacemaker mailing list