ha/service-mgmt/sm-db-1.0.0/patches/sm_db_cinder_lvm_install.patch

61 lines
5.2 KiB
Diff

#
# Copyright (c) 2014 Wind River Systems, Inc.
# SPDX-License-Identifier: Apache-2.0
#
#
#
#
# Description: installs the services for the cinder LVM backend on the controllers.
#
INSERT INTO "SERVICE_GROUP_MEMBERS_V1" VALUES(57,'controller-services','drbd-cinder','critical');
INSERT INTO "SERVICE_GROUP_MEMBERS_V1" VALUES(58,'controller-services','cinder-lvm','critical');
INSERT INTO "SERVICE_GROUP_MEMBERS_V1" VALUES(59,'controller-services','tgtd','critical');
INSERT INTO "SERVICE_GROUP_MEMBERS_V1" VALUES(60,'controller-services','cinder-ip','critical');
INSERT INTO "SERVICES_V1" VALUES(57,'drbd-cinder','initial','initial','none','none',2,1,60000,4,16,'');
INSERT INTO "SERVICES_V1" VALUES(58,'cinder-lvm','initial','initial','none','none',2,1,60000,4,16,'');
INSERT INTO "SERVICES_V1" VALUES(59,'tgtd','initial','initial','none','none',2,1,60000,4,16,'');
INSERT INTO "SERVICES_V1" VALUES(60,'cinder-ip','initial','initial','none','none',2,1,60000,4,16,'');
INSERT INTO "SERVICE_DEPENDENCY_V1" VALUES('action','drbd-cinder','not-applicable','go-active','management-ip','enabled-active');
INSERT INTO "SERVICE_DEPENDENCY_V1" VALUES('action','cinder-lvm','not-applicable','enable','drbd-cinder','enabled-active');
INSERT INTO "SERVICE_DEPENDENCY_V1" VALUES('action','tgtd','not-applicable','enable','cinder-lvm','enabled-active');
INSERT INTO "SERVICE_DEPENDENCY_V1" VALUES('action','tgtd','not-applicable','enable','drbd-cgcs','enabled-active');
INSERT INTO "SERVICE_DEPENDENCY_V1" VALUES('action','cinder-ip','not-applicable','enable','tgtd','enabled-active');
INSERT INTO "SERVICE_DEPENDENCY_V1" VALUES('action','cinder-volume','not-applicable','enable','cinder-ip','enabled-active');
INSERT INTO "SERVICE_DEPENDENCY_V1" VALUES('action','cinder-ip','not-applicable','disable','cgcs-nfs-ip','disabled');
INSERT INTO "SERVICE_DEPENDENCY_V1" VALUES('action','cinder-ip','not-applicable','disable','cinder-volume','disabled');
INSERT INTO "SERVICE_DEPENDENCY_V1" VALUES('action','tgtd','not-applicable','disable','cinder-ip','disabled');
INSERT INTO "SERVICE_DEPENDENCY_V1" VALUES('action','drbd-cgcs','not-applicable','disable','tgtd','disabled');
INSERT INTO "SERVICE_DEPENDENCY_V1" VALUES('action','cinder-lvm','not-applicable','disable','tgtd','disabled');
INSERT INTO "SERVICE_DEPENDENCY_V1" VALUES('action','drbd-cinder','not-applicable','go-standby','cinder-lvm','disabled');
# drbd_cinder service
INSERT INTO "SERVICE_ACTIONS_V1" VALUES('drbd-cinder','enable','ocf-script','linbit','drbd','start','master_max=1,master_node_max=1,clone_max=2,clone_node_max=1,notify=true,globally_unique=false',2,2,2,90,'');
INSERT INTO "SERVICE_ACTIONS_V1" VALUES('drbd-cinder','disable','ocf-script','linbit','drbd','stop','master_max=1,master_node_max=1,clone_max=2,clone_node_max=1,notify=true,globally_unique=false',1,1,1,180,'');
INSERT INTO "SERVICE_ACTIONS_V1" VALUES('drbd-cinder','go-active','ocf-script','linbit','drbd','promote','master_max=1,master_node_max=1,clone_max=2,clone_node_max=1,notify=true,globally_unique=false',2,2,2,180,'');
INSERT INTO "SERVICE_ACTIONS_V1" VALUES('drbd-cinder','go-standby','ocf-script','linbit','drbd','demote','master_max=1,master_node_max=1,clone_max=2,clone_node_max=1,notify=true,globally_unique=false',2,2,2,180,'');
INSERT INTO "SERVICE_ACTIONS_V1" VALUES('drbd-cinder','audit-enabled','ocf-script','linbit','drbd','monitor','master_max=1,master_node_max=1,clone_max=2,clone_node_max=1,notify=true,globally_unique=false',2,2,2,20,30);
INSERT INTO "SERVICE_ACTIONS_V1" VALUES('drbd-cinder','audit-disabled','ocf-script','linbit','drbd','monitor','master_max=1,master_node_max=1,clone_max=2,clone_node_max=1,notify=true,globally_unique=false',0,0,0,20,28);
# cinder_lvm service
INSERT INTO "SERVICE_ACTIONS_V1" VALUES('cinder-lvm','enable','ocf-script','heartbeat','LVM','start','',2,2,2,30,'');
INSERT INTO "SERVICE_ACTIONS_V1" VALUES('cinder-lvm','disable','ocf-script','heartbeat','LVM','stop','',1,1,1,30,'');
INSERT INTO "SERVICE_ACTIONS_V1" VALUES('cinder-lvm','audit-enabled','ocf-script','heartbeat','LVM','monitor','',2,2,2,30,10);
INSERT INTO "SERVICE_ACTIONS_V1" VALUES('cinder-lvm','audit-disabled','ocf-script','heartbeat','LVM','monitor','',0,0,0,30,10);
# tgtd service
# The tgtd init script blocks until it exports all the existing targets. Using
# a very long timeout to ensure that it is never killed while doing this.
INSERT INTO "SERVICE_ACTIONS_V1" VALUES('tgtd','enable','lsb-script','','tgtd','start','',2,2,2,180,'');
INSERT INTO "SERVICE_ACTIONS_V1" VALUES('tgtd','disable','lsb-script','','tgtd','forcedstop','',1,1,1,10,'');
INSERT INTO "SERVICE_ACTIONS_V1" VALUES('tgtd','audit-enabled','lsb-script','','tgtd','status','',2,2,2,10,5);
INSERT INTO "SERVICE_ACTIONS_V1" VALUES('tgtd','audit-disabled','lsb-script','','tgtd','status','',0,0,0,10,5);
# cinder_ip service
INSERT INTO "SERVICE_ACTIONS_V1" VALUES('cinder-ip','enable','ocf-script','heartbeat','IPaddr2','start','',2,2,2,20,'');
INSERT INTO "SERVICE_ACTIONS_V1" VALUES('cinder-ip','disable','ocf-script','heartbeat','IPaddr2','stop','',1,1,1,20,'');
INSERT INTO "SERVICE_ACTIONS_V1" VALUES('cinder-ip','audit-enabled','ocf-script','heartbeat','IPaddr2','monitor','',2,2,2,20,5);
INSERT INTO "SERVICE_ACTIONS_V1" VALUES('cinder-ip','audit-disabled','ocf-script','heartbeat','IPaddr2','monitor','',0,0,0,20,5);