From edb9fed9aca8452e54624d9da109cdd7cabcf30c Mon Sep 17 00:00:00 2001 From: Mark Asselstine Date: Mon, 30 Apr 2018 14:51:41 -0400 Subject: 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 Signed-off-by: Bruce Ashfield --- .../python/python-cinder/cinder-volume.service | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 meta-openstack/recipes-devtools/python/python-cinder/cinder-volume.service (limited to 'meta-openstack/recipes-devtools/python/python-cinder/cinder-volume.service') diff --git a/meta-openstack/recipes-devtools/python/python-cinder/cinder-volume.service b/meta-openstack/recipes-devtools/python/python-cinder/cinder-volume.service new file mode 100644 index 0000000..ba5991d --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-cinder/cinder-volume.service @@ -0,0 +1,20 @@ +[Unit] +Description=OpenStack Cinder Volume +After=postgresql.service keystone.service rabbitmq-server.service ntp.service + +[Service] +User=%USER% +Group=%GROUP% +Type=simple +WorkingDirectory=%LOCALSTATEDIR%/lib/cinder +PermissionsStartOnly=true +ExecStartPre=/bin/mkdir -p %LOCALSTATEDIR%/lock/cinder %LOCALSTATEDIR%/log/cinder %LOCALSTATEDIR%/lib/cinder +ExecStartPre=/bin/chown cinder:cinder %LOCALSTATEDIR%/lock/cinder %LOCALSTATEDIR%/lib/cinder +ExecStartPre=/bin/chown cinder:adm %LOCALSTATEDIR%/log/cinder +ExecStart=/usr/bin/cinder-volume --config-file=%SYSCONFDIR%/cinder/cinder.conf +Restart=on-failure +LimitNOFILE=65535 +TimeoutStopSec=15 + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3-54-g00ecf