diff options
| author | Mark Asselstine <mark.asselstine@windriver.com> | 2018-04-30 14:51:41 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2018-05-01 23:15:31 -0400 |
| commit | edb9fed9aca8452e54624d9da109cdd7cabcf30c (patch) | |
| tree | d4e82ce24e800b24d08548a138b3df0488eda780 /meta-openstack/recipes-devtools/python/python-cinder/cinder-api.service | |
| parent | db5a6a32fed0b97dcaa590120558c857f30c1bec (diff) | |
| download | meta-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.service | 20 |
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] | ||
| 2 | Description=OpenStack Cinder API | ||
| 3 | After=postgresql.service keystone.service rabbitmq-server.service ntp.service | ||
| 4 | |||
| 5 | [Service] | ||
| 6 | User=%USER% | ||
| 7 | Group=%GROUP% | ||
| 8 | Type=simple | ||
| 9 | WorkingDirectory=%LOCALSTATEDIR%/lib/cinder | ||
| 10 | PermissionsStartOnly=true | ||
| 11 | ExecStartPre=/bin/mkdir -p %LOCALSTATEDIR%/lock/cinder %LOCALSTATEDIR%/log/cinder %LOCALSTATEDIR%/lib/cinder | ||
| 12 | ExecStartPre=/bin/chown cinder:cinder %LOCALSTATEDIR%/lock/cinder %LOCALSTATEDIR%/lib/cinder | ||
| 13 | ExecStartPre=/bin/chown cinder:adm %LOCALSTATEDIR%/log/cinder | ||
| 14 | ExecStart=/usr/bin/cinder-api --config-file=%SYSCONFDIR%/cinder/cinder.conf | ||
| 15 | Restart=on-failure | ||
| 16 | LimitNOFILE=65535 | ||
| 17 | TimeoutStopSec=15 | ||
| 18 | |||
| 19 | [Install] | ||
| 20 | WantedBy=multi-user.target | ||
