summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-cinder/cinder-api.service
diff options
context:
space:
mode:
authorMark Asselstine <mark.asselstine@windriver.com>2018-04-30 14:51:41 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2018-05-01 23:15:31 -0400
commitedb9fed9aca8452e54624d9da109cdd7cabcf30c (patch)
treed4e82ce24e800b24d08548a138b3df0488eda780 /meta-openstack/recipes-devtools/python/python-cinder/cinder-api.service
parentdb5a6a32fed0b97dcaa590120558c857f30c1bec (diff)
downloadmeta-cloud-services-edb9fed9aca8452e54624d9da109cdd7cabcf30c.tar.gz
python-cinder: uprev to latest stable/pike
Requires the introduction of python-oauth2client and python-google-api-python-client packages/recipes. As with other openstack component uprev's we move some of the initialization from the first run scripts to the cinder-init.service which is run on first boot. This allows for someone to disable the default configuration by not including the cinder-init package in their image. The initialization is done following the guide at: At this point we have cinder up and running, which we can verify using the "openstack volume service list" command. root@controller:~# openstack volume service list +------------------+----------------------+------+---------+-------+----------------------------+ | Binary | Host | Zone | Status | State | Updated At | +------------------+----------------------+------+---------+-------+----------------------------+ | cinder-backup | controller | nova | enabled | down | 2018-04-30T15:31:08.330770 | | cinder-volume | controller@nfsdriver | nova | enabled | down | 2018-04-30T15:31:10.477678 | | cinder-scheduler | controller | nova | enabled | down | 2018-04-30T15:31:10.653041 | +------------------+----------------------+------+---------+-------+----------------------------+ We will have to adjust the configuration for a compute node but at this point we are concentrating on the initial configuration for the controller image. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder/cinder-api.service')
-rw-r--r--meta-openstack/recipes-devtools/python/python-cinder/cinder-api.service20
1 files changed, 20 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder/cinder-api.service b/meta-openstack/recipes-devtools/python/python-cinder/cinder-api.service
new file mode 100644
index 0000000..cef90b4
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-cinder/cinder-api.service
@@ -0,0 +1,20 @@
1[Unit]
2Description=OpenStack Cinder API
3After=postgresql.service keystone.service rabbitmq-server.service ntp.service
4
5[Service]
6User=%USER%
7Group=%GROUP%
8Type=simple
9WorkingDirectory=%LOCALSTATEDIR%/lib/cinder
10PermissionsStartOnly=true
11ExecStartPre=/bin/mkdir -p %LOCALSTATEDIR%/lock/cinder %LOCALSTATEDIR%/log/cinder %LOCALSTATEDIR%/lib/cinder
12ExecStartPre=/bin/chown cinder:cinder %LOCALSTATEDIR%/lock/cinder %LOCALSTATEDIR%/lib/cinder
13ExecStartPre=/bin/chown cinder:adm %LOCALSTATEDIR%/log/cinder
14ExecStart=/usr/bin/cinder-api --config-file=%SYSCONFDIR%/cinder/cinder.conf
15Restart=on-failure
16LimitNOFILE=65535
17TimeoutStopSec=15
18
19[Install]
20WantedBy=multi-user.target