summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-cinder
Commit message (Collapse)AuthorAgeFilesLines
* python-cinder: uprev to latest stable/pikeMark Asselstine2018-05-018-893/+4809
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* init: no need to close (non-existing) ps file descriptorsMark Asselstine2015-11-162-2/+2
| | | | | | | | | | | | | Attempting to get the status of various daemons which are part of the compute image results in an error: ps: write error: Bad file descriptor Switch to using the more standard io redirection techniques to avoid this error. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* keystone: Change packages configuration to use apache keystone.Liam R. Howlett2014-09-221-3/+1
| | | | | | | | | | This commit changes all required configurations to use keystone running on apache. The following packages configurations were modified for keystone running on apache: python-neutron, python-nova, tempest, python-swift, python-rally, python-heat, python-glance, python-cinder, python-ceilmoeter, python-horizon. Signed-off-by: Liam R. Howlett <Liam.Howlett@WindRiver.com>
* openstack initscript: add resetAmy Fong2014-07-254-4/+86
| | | | | | | | Some of the openstack data is associated with external resources (ie glance may have external files), we explicitly invoke the delete commands on those in additional to dropping and recreating the databases. Signed-off-by: Amy Fong <amy.fong@windriver.com>
* cinder: uprev to junoBruce Ashfield2014-07-181-2/+2
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* cinder builtin tests config locationVu Tran2014-06-231-0/+24
| | | | | | | | | | | Many cinder built-in testcases failed because they can not find cinder configuration file, as these testcases assume that they are run at python site-packages dir. So forcing these failure testcases to look for these configuration file using absolute path. Signed-off-by: Vu Tran <vu.tran@windriver.com>
* cinder: ensure log-dir is set correctlyVu Tran2014-05-212-2/+3
| | | | | | | | | Make sure all Cinder services have the right setting for log_dir in the init script as well as in the config setting in .conf file as we shouldn't only count on our init script launch to get logging right. Signed-off-by: Vu Tran <vu.tran@windriver.com>
* cinder: add keyston auth sectionBruce Ashfield2014-05-071-0/+8
| | | | | | | To avoid SSL default communications, and quota/volume errors, we expicitly add a keystone configuration section to the cinder configuration. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* cinder-backup: enable swift backendVu Tran2014-04-111-1/+20
| | | | | | | | | | | | | Modify cinder config file allows cinder-backup to be able to use swift as backend for storing cinder backup volume on Swift cluster. Also add variable CINDER_BACKUP_BACKEND_DRIVER which allows setting default cinder backup backend driver. Right now set it to Swift. Signed-off-by: Vu Tran <vu.tran@windriver.com>
* Memory leak from timingsAmy Fong2014-03-312-0/+31
| | | | | | | | | | | | | | | | | Memory leak happens when the dynamic list times grows without anything to reset it. In ceilometer and cinder configuration files, the new option is created: [nova_client] max_timing_buffer=<value> In all clients found that uses extends the HTTPClient and uses the times list, we limit the size of the list by popping off the oldest item in the list to maintain a maximum size. A default size of 200 is chosen, configurable by the above configuration option. Signed-off-by: Amy Fong <amy.fong@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* OpenStack: sysvinit scripts - enable loggingAmy Fong2014-03-281-1/+6
| | | | | | | Explicitly enable --log-dir to enable logging where available Signed-off-by: Amy Fong <amy.fong@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* cinder: add script for creating volume typeVu Tran2014-03-241-0/+10
| | | | | | | | Add a convenient script for creating Cinder volume types which are currently supported. Signed-off-by: Vu Tran <vu.tran@windriver.com>
* cinder: enable cinder-backup to use cephVu Tran2014-03-241-0/+13
| | | | | | | | Enable cinder-backup to use ceph as backend. It mainly changes cinder.conf and creates cinder-backup package. Signed-off-by: Vu Tran <vu.tran@windriver.com>
* cinder: enable ceph rbd volume backendVu Tran2014-03-241-1/+12
| | | | | | | Add ceph rbd backend into multi-backend cinder-volume support. Signed-off-by: Vu Tran <vu.tran@windriver.com>
* OpenStack: Add to missing functionality in sysvinit scriptsAmy Fong2014-03-172-4/+34
| | | | | | | | | Add status/reload to sysvinit scripts Modify tgtd to make start/stop work better (borrowed from Debian's implementation) Signed-off-by: Amy Fong <amy.fong@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* cinder-volume: change lvm pv to be configured at runtimeVu Tran2014-03-172-9/+15
| | | | | | | | | By default lvm-iscsi uses loopdev as lvm physical volume. This patch makes it a bit easier to allow other layer to be able configure lvm physical volume. Signed-off-by: Vu Tran <vu.tran@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* cinder: enable glusterfs backendVu Tran2014-03-172-1/+15
| | | | | | | | | | | | | | This patch adds glusterfs backend into multi-backend cinder support (total of lvm-iscsi, nfs, and glusterfs). This including changing cinder.conf, creating missing glusterfs_shares config file, and adding glusterfs-client into compute/controller node and gluster-server into controller node. Also meta-filesystems is included to pickup fuse filesytem which is needed by glusterfs. Signed-off-by: Vu Tran <vu.tran@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* cinder: enable nfs backendVu Tran2014-03-172-4/+17
| | | | | | | | | | This patch enables multi-backend support (lvm-iscsi and nfs) on cinder-volume. This including changing cinder.conf, creating missing nfs_shares config file, and adding mount.nfs into compute node image. Signed-off-by: Vu Tran <vu.tran@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* cinder-volume: active lvm vg at startupVu Tran2014-03-171-0/+1
| | | | | | | | | It's needed to implicitly activate the lvm logical group at startup. Otherwise, cinder lvm logical volume will not be created. Signed-off-by: Vu Tran <vu.tran@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* cinder-volume: to reuse loop devVu Tran2014-03-171-1/+4
| | | | | | | | | | Every time cinder-volume is restarted with "/etc/init.d/cinder-volume restart" a new loop dev is created for lvm volume backing file instead of reuse the existing loop dev Signed-off-by: Vu Tran <vu.tran@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* cinder: modify run_tests to respect --tools-dirBruce Ashfield2013-12-111-0/+29
| | | | | | | | | | Since the "tools" subdir of cinder is only packaged and installed in /etc/cinder, we need to use --tools-dir to point the test script in the right direction. Unfortunately, run_tests.sh takes this arg and ignores it. So we patch the script to actually respect the directory. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* python-cinder: Update cinder-volume initscript and postinstallMihai Prica2013-08-281-0/+79
| | | | | | | | | Cinder-volume requires the cinder-volumes volume group created. The backing file for this volume is created in the postinstall with a size of 2G on the first boot and the volume group is created at boot time in the cinder-volume initscript. Signed-off-by: Mihai Prica <prica.mihai@gmail.com>
* python-cinder: Fix path errorMihai Prica2013-08-281-1/+1
| | | | Signed-off-by: Mihai Prica <prica.mihai@gmail.com>
* python-cinder: Configure postgresql credentialsMihai Prica2013-08-281-1/+1
| | | | | | | The user and password for postgresql are defined in the identity class and are loaded by the recipes from this class. Signed-off-by: Mihai Prica <prica.mihai@gmail.com>
* python-cinder: Use the identity to get credentialsMihai Prica2013-08-281-62/+0
| | | | | | | The credentials are defined in the identity bbclass and the recipe will set them in the configuration files. Signed-off-by: Mihai Prica <prica.mihai@gmail.com>
* python-cinder: Removed old configurationMihai Prica2013-08-281-4/+0
| | | | Signed-off-by: Mihai Prica <prica.mihai@gmail.com>
* python-cinder: Updated db usernameMihai Prica2013-08-281-1/+1
| | | | Signed-off-by: Mihai Prica <prica.mihai@gmail.com>
* python-cinder: Changed MQ backend to RabbitMQMihai Prica2013-08-281-3/+7
| | | | Signed-off-by: Mihai Prica <prica.mihai@gmail.com>
* python-cinder: added 2013.1.1Mihai Prica2013-08-283-0/+1322
-Added configuration files with necessary credentials; -Added initscript to start cinder-api and cinder-volume; Signed-off-by: Mihai Prica <prica.mihai@gmail.com>