cinder-scheduler.xml revision 6033
45e9809aff7304721fddb95654901b32195c9c7avboxsync<?xml version="1.0" ?>
45e9809aff7304721fddb95654901b32195c9c7avboxsync<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
45e9809aff7304721fddb95654901b32195c9c7avboxsync<!--
45e9809aff7304721fddb95654901b32195c9c7avboxsync Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync Licensed under the Apache License, Version 2.0 (the "License"); you may
45e9809aff7304721fddb95654901b32195c9c7avboxsync not use this file except in compliance with the License. You may obtain
45e9809aff7304721fddb95654901b32195c9c7avboxsync a copy of the License at
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync http://www.apache.org/licenses/LICENSE-2.0
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync Unless required by applicable law or agreed to in writing, software
45e9809aff7304721fddb95654901b32195c9c7avboxsync distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
45e9809aff7304721fddb95654901b32195c9c7avboxsync WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
45e9809aff7304721fddb95654901b32195c9c7avboxsync License for the specific language governing permissions and limitations
45e9809aff7304721fddb95654901b32195c9c7avboxsync under the License.
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync NOTE: This service manifest is not editable; its contents will
45e9809aff7304721fddb95654901b32195c9c7avboxsync be overwritten by package or patch operations, including
45e9809aff7304721fddb95654901b32195c9c7avboxsync operating system upgrade. Make customizations in a different
45e9809aff7304721fddb95654901b32195c9c7avboxsync file.
45e9809aff7304721fddb95654901b32195c9c7avboxsync-->
45e9809aff7304721fddb95654901b32195c9c7avboxsync<service_bundle type="manifest" name="cinder-scheduler">
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync <service version="1" type="service"
45e9809aff7304721fddb95654901b32195c9c7avboxsync name="application/openstack/cinder/cinder-scheduler">
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync <dependency name='multiuser' grouping='require_all' restart_on='error'
45e9809aff7304721fddb95654901b32195c9c7avboxsync type='service'>
45e9809aff7304721fddb95654901b32195c9c7avboxsync <service_fmri value='svc:/milestone/multi-user:default' />
45e9809aff7304721fddb95654901b32195c9c7avboxsync </dependency>
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync <dependency name='upgrade' grouping='require_all' restart_on='none'
45e9809aff7304721fddb95654901b32195c9c7avboxsync type='service'>
45e9809aff7304721fddb95654901b32195c9c7avboxsync <service_fmri
45e9809aff7304721fddb95654901b32195c9c7avboxsync value='svc:/application/openstack/cinder/cinder-upgrade' />
45e9809aff7304721fddb95654901b32195c9c7avboxsync </dependency>
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync <!-- create a dependency on the cinder_db service so the cinder
45e9809aff7304721fddb95654901b32195c9c7avboxsync services do not collide when creating the database -->
45e9809aff7304721fddb95654901b32195c9c7avboxsync <dependency name='cinder_db' grouping='optional_all' restart_on='error'
45e9809aff7304721fddb95654901b32195c9c7avboxsync type='service'>
45e9809aff7304721fddb95654901b32195c9c7avboxsync <service_fmri value='svc:/application/openstack/cinder/cinder-db'/>
45e9809aff7304721fddb95654901b32195c9c7avboxsync </dependency>
<dependency name='ntp' grouping='optional_all' restart_on='none'
type='service'>
<service_fmri value='svc:/network/ntp'/>
</dependency>
<dependency name='rabbitmq' grouping='optional_all' restart_on='none'
type='service'>
<service_fmri value='svc:/application/rabbitmq'/>
</dependency>
<logfile_attributes permissions='600'/>
<exec_method timeout_seconds="60" type="method" name="start"
exec="/lib/svc/method/cinder-scheduler %m">
<method_context>
<method_credential user='cinder' group='cinder' />
</method_context>
</exec_method>
<exec_method timeout_seconds="60" type="method" name="stop"
exec=":kill"/>
<instance name='default' enabled='false'>
<!-- to start/stop/refresh the service -->
<property_group name='general' type='framework'>
<propval name='action_authorization' type='astring'
value='solaris.smf.manage.cinder' />
<propval name='value_authorization' type='astring'
value='solaris.smf.value.cinder' />
</property_group>
</instance>
<template>
<common_name>
<loctext xml:lang="C">
OpenStack Cinder Scheduler Service
</loctext>
</common_name>
<description>
<loctext xml:lang="C">
cinder-scheduler picks a cinder-volume node to host the block storage
requested by the OpenStack Compute service.
</loctext>
</description>
</template>
</service>
</service_bundle>