aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/cinder/templates
AgeCommit message (Collapse)AuthorFilesLines
2016-11-15Remove Ansible from KollaSteven Dake5-230/+0
Change-Id: I5396e4b9927d3e65b6aa4185238a43a4765a996b
2016-11-07Allow cinder-volume to be configured to use NFSxionglingfeng2-4/+20
Allow cinder-volume, nova-compute and nova-libvirtd to be configured to use NFS. In order to mount and work with NFS shares, several containers needed the NFS packages installed during build time. One somewhat significant change is the addition of an explicit bind volume for nova-compute that has shared mounts enabled. According to docker-run(1), the shared mount propagation flag can only be specified for bind mounted Docker volumes and not named volumes. In an NFS setup, cinder-volume mounts the NFS shares so that it can create and manage the Cinder volumes. When a new instance is created with a Cinder volume or a Cinder volume is attached to an existing instance, nova-compute mounts the Cinder volume from the NFS share for nova-libvirtd. In order for nova-libvirtd to then see those Cinder volumes the shared mounts flag must be enabled for the Docker volume. Remove the rpcbind container as it is only necessary for operators who are using NFSv3 or lower. There is no known need for this currently however, this container can be added in the future should an operator require it. Co-authored-by: Ryan Hallisey <rhallise@redhat.com> Co-authored-by: Andrew Widdersheim <amwiddersheim@gmail.com> Change-Id: Iad77c05bce8876bdcc69b7ec22edd50e3bf48b9f Closes-Bug: #1530515 Partially implements: blueprint nfs-support-in-cinder
2016-10-17Fix for cinder not working with permissions changesSteven Dake1-1/+1
Change-Id: I0c38c25b1f9af6077e117420b466f0b3b38d9509 Partial-Bug: #1631503
2016-10-17Fix cinder upgrade permission issuezhubingbing4-0/+48
Change-Id: If778c981cfcf020fcf0be6bf7e38a3243e63b85c Partial-Bug: #1631503
2016-09-13Check volume group exists for Cinder in prechecksPaul Bourke1-1/+1
Add a service check for Cinder when using iscsi/LVM, that the appropriate volume group exists. TrivialFix Change-Id: I54e01911709db73549334760498b4246fe6271d7 Co-Authored-By: Vladislav Belogrudov <vladislav.belogrudov@oracle.com>
2016-09-12Adding required check for Orchestration KubernetesSerguei Bezverkhi1-5/+10
Thgis PS add missing check for Kubernetes orchestration engine, without these changes, running kolla-ansible genconfig fails for Kubernetes environment. TrivialFix Change-Id: I25eeb7ae3ddba7c924f6d48aa24afdbe74227170
2016-08-25Move to transport_url for rabbitmq configurationJeffrey Zhang1-6/+2
rabbit_hosts, rabbit_userid and rabbit_password are deprecated for removal.[0] rpc_backend is deprecated for removal.[1] rabbit_ha_queues is deprecated. it is useless when using RabbitMQ >= 3.0 [2] [0] https://github.com/openstack/oslo.messaging/blob/master/oslo_messaging/_drivers/impl_rabbit.py#L112,#L134 [1] https://github.com/openstack/oslo.messaging/blob/master/oslo_messaging/transport.py#L46 [2] https://github.com/openstack/oslo.messaging/blob/master/oslo_messaging/_drivers/impl_rabbit.py#L163,L174 Closes-Bug: #1614082 Change-Id: I05d318ba6c11c5dbfa9fbf67d088a43ab465be30
2016-08-09Merge "Make Cinder access glance in round robin fashion"Jenkins1-1/+3
2016-08-06Merge "Simplify the Cinder LVM backend"Jenkins1-12/+8
2016-08-01Fix undefined error for cinder templateliyingjun1-1/+1
openstack_service_worker should be openstack_service_workers Change-Id: Id4fb54bc1d4363cfa056851d1a32ee56411e7ba8 Closes-bug: #1607482
2016-07-27Use a lower number of the workersJeffrey Zhang1-0/+1
Use a lower number of workers rather than the default value, which is equal to the number of the cpu. Otherwise, in a multi cpu environment, the number of the processes will very high. In this PS, we use min(5, << number of cpu >>) as the default worker count. Closes-Bug: #1582254 Change-Id: I1c32cf0db794b43b8fb8be18f39190422ca5846f
2016-07-25Simplify the Cinder LVM backendJeffrey Zhang1-12/+8
Remove the unnecessary option in the group_vars/all.yml file. * removed some cinder.conf options like volume_backend_name, iscsi_helper, iscsi_protocol etc. these value can be configured by custom cinder.conf file, no need export as global variables. * remove meaningless iscsi_ip_addess, which is not used in LVM driver * force start iscsi relate when enable_cinder_backend_lvm is yes TrivialFix Change-Id: Ifcbfdad15e4d68bc5f20fc77e0315a09983ef022
2016-07-19External Ceph - Implementation CinderMathias Ewald3-34/+19
This patch adds support for external Ceph clusters for Cinder. For clean integration the backend configuration mechanism had to be slightly adjusted. We now have the option to enable multiple backends for Cinder independently. Currently, the flags cinder_backend_iscsi and cinder_backend_ceph are used to toggle backends. Documentation on how to use external ceph was added. Change-Id: I7e0267b90d62d6d881f24f063cdb894422ec8618 Partially-Implements: Blueprint: external-ceph
2016-07-18Merge "Set the privsep_osbrick.helper_command in nova and cinder"Jenkins1-0/+3
2016-07-12Enable Block Storage metersZhongShengping1-0/+5
Use [oslo_messaging_notifications]/driver option in cinder.conf to enable block storage meters, set the option default value is 'messagingv2'. Change-Id: I1e885324fbeb2ad1c547c6c6618cbacd0e441d51 Closes-Bug: 1602055
2016-07-07Add enable_iscsi option to etc/kolla/globals.ymlTakeaki Matsumoto1-1/+1
To use Cinder LVM2 backend with iSCSI, add enable_iscsi option and fix document. Change-Id: I286733508b5582c311c313c172b3c3a774be993c Closes-Bug: #1599088
2016-06-25Set the privsep_osbrick.helper_command in nova and cinderJeffrey Zhang1-0/+3
os-brick starts using privsep, it will need to know how to invoke its privileged half. This follow the how the devstack fixed in nova[1] and cinder[2]. [1] https://review.openstack.org/#/c/277696/ [2] https://review.openstack.org/#/c/280031/ TrivialFix Change-Id: I3761a5bde9766297127ad2011453ae4221ff5c2b
2016-05-31Fix the cinder backup permission issue when enable cephJeffrey Zhang1-0/+7
Closes-Bug: #1587244 Change-Id: I22ed3c57e4669c4372daf448da8385729c7cc8d1
2016-05-09Adding variables for Cinder iSCSI backend configurationSerguei Bezverkhi1-7/+8
This fix adds several variables required for Cinder iSCSI backend configutation. Change-Id: I2f709f8589fdbf62e3d0b265452fd58f413bee65 Closes-Bug: #1579800
2016-05-02Remove unecessary blank linesMauricio Lima1-1/+0
TrivialFix Change-Id: I1f03d428c380dfdbde5ef33e7ea43cbf5e9154ce
2016-04-15Make Cinder access glance in round robin fashionSteven Dake1-1/+3
In the old rendition of this code, Cinder would attempt one access to glance, fail, and then cinder would fail. Now it accesses all servers in round robin fashion. Change-Id: I4759b0b586919b33f49b974312072820062f35c2 Closes-Bug: #1571128
2016-04-11Set db connection retry to infinityRyan Hallisey1-0/+1
Make sure that all the sevices will attempt to connect to the database an infinite about of times. If the database ever disappears for some reason we want the services to try and reconnect more than just 10 times. Closes-bug: #1505636 Change-Id: I77abbf72ce5bfd68faa451bb9a72bd2544963f4b
2016-03-21Merge "Fix 'optional' config.json values"Jenkins2-4/+4
2016-03-19Fix 'optional' config.json valuesSamYaple2-4/+4
These values are optional only when the services are not enabled. If the file does not exist we should not warn, but rather inform. Ceph-mon is an exception here since its bootstrap process means the files may or may not exist initially. TrivialFix Change-Id: Ic02bece76d480e99deecf612036f37abb5604135
2016-03-19Add memcached_servers to keystone_auth sectionSamYaple1-0/+5
The in-process cache for keystone tokens has been deprecated due to "incosistent results and high memory usage" with the expectation we switch to memcached_servers if we want to stay performant. Add memcache_servers [cache] section to the appropriate servers as the [DEFAULT]\memcache_servers options was deprecated. TrivialFix Related-Id: Ied2b88c8cefe5655a88d0c2f334de04e588fa75a Change-Id: Ic971bdddc0be3338b15924f7cc0f97d4a3ad2440
2016-03-18Add unmap to cinder for cephSamYaple1-0/+1
This matches the current default for nova.conf. Use unmap/discard if t is enabled on the hypervisor. This option is new for mitaka. TrivialFix Change-Id: Id94c05e2ec8a65c75ec82afcd4150390f8b87ee2
2016-02-26Change kolla_internal_address variableSamYaple1-3/+3
Due to poor planning on our variable names we have a situation where we have "internal_address" which must be a VIP, but "external_address" which should be a DNS name. Now with two vips "external_vip_address" is a new variable. This corrects that issue by deprecating kolla_internal_address and replacing it with 4 nicely named variables. kolla_internal_vip_address kolla_internal_fqdn kolla_external_vip_address kolla_external_fqdn The default behaviour will remain the same, and the way the variable inheritance is setup the kolla_internal_address variable can still be set in globals.yml and propogate out to these 4 new variables like it normally would, but all reference to kolla_internal_address has been completely removed. Change-Id: I4556dcdbf4d91a8d2751981ef9c64bad44a719e5 Partially-Implements: blueprint ssl-kolla
2016-02-24Use passed client IP address in various audit logsDave McCowan1-0/+1
HAProxy: change to use option forwardfor to pass origin IP address to backend via X-Forwarded-For header Keystone: Apache does the audit logs for keystone. Change the LogFormat to display the passed address instead of the connection address which is that of the load balancer. Nova, Cinder, Glance: these services can make use of the address passed in X-Forwarded-For. With this setting the API logs for these services include the client IP address. Change-Id: Ia861ecc11a7c7d463d0366586926d1a842853f69 Closes-Bug: #1548935
2016-02-19Make Heka collect Cinder logsÉric Lemoine1-2/+5
Partially implements: blueprint heka Change-Id: I9dcb71a9cf063fb520fcf3485e0376f1e90d87ad
2016-02-19Merge "Use "optional" for ceph confs"Jenkins2-4/+20
2016-02-16Use "optional" for ceph confsSamYaple2-4/+20
Also add missing cinder-backup ceph.conf info TrivialFix Change-Id: I2b2d85c2d34908a9b11198eb51b3cf359a06bdf7
2016-02-15Use variables to specify http or https when constructing URLsDave McCowan1-3/+3
To allow for TLS to protect the service endpoints, the protocol in the URLs for the endpoints will be either http or https. This patch removes the hardcoded values of http and replaces them with variables that can be adjusted accordingly in future patches. Change-Id: Ibca6f8aac09c65115d1ac9957410e7f81ac7671e Partially-implements: blueprint ssl-kolla
2016-01-20Add debug option in config fileIce Yao1-1/+1
Config file use *_logging_debug as debug default value Change-Id: I41102fff9056a82f7307694252adff0aedcf2658
2016-01-18remove option verbose from config filesAllen Gao1-1/+0
Option "verbose" from group "DEFAULT" is deprecated for removal. Its value may be silently ignored in the future. If this option is not set explicitly, there is no such warning. Furthermore, the default value of verbose is true, so there is no need to set this value in config files. TrivialFix Change-Id: I3ec2a8900c984a64bc0645672ef89a63975f7f4e
2016-01-16Use auth_type instead of deprecated auth_pluginWanlong Gao1-1/+1
TrivialFix Change-Id: I33924d6de43126ff8523883eebce703c976f9a1a
2015-12-22Merge "Convert to pymysql"Jenkins1-1/+1
2015-12-22Convert to pymysqlSamYaple1-1/+1
Closes-Bug: #1528432 Change-Id: I6e56f283521b29678964cb655ac3cff2d13b8246
2015-12-16Fix retrieving api_interfaceOTSUKA, Yuanying1-1/+1
In heterogeneous environment, api_interfaces are different each other. So we should specify it from hostvars. Implements: bp configure-network-interface Change-Id: Id15d70bfb9ebb62a64a3847a6b77407efb171dbe
2015-11-27Source installation in virtualenvMichal Rostecki4-4/+4
Use virtualenv for installation of OpenStack projects and dependencies to avoid conflicts with Python libraries installed by non-OpenStack binary packages. Change-Id: I21ecd673b2e93335b1d3dd4e279e940c9d694c3c Implements: blueprint virtualenv
2015-11-05Remove vip for rabbitmqSam Yaple1-1/+2
Adjust all the configs to list all the rabbitmq hosts rather than running rabbitmq through the VIP. This is made possible by clusterer which has already merged. Change-Id: I5db48f5f10ec68f4c8863a29bc13984f6845a4f9 Partially-Implements: blueprint rabbitmq-clusterer
2015-10-22Allow ceph pool names to be configurableSam Yaple1-2/+2
Change-Id: Ic408ef7aec7f1c95396a0ccf0209b104908a3f21 Partially-Implements: blueprint ceph-improvements
2015-10-06Bring Kolla inline with FHSSam Yaple4-6/+6
This brings Kolla images inline with FHS and should make finding locations of things more consistent and reliable with the linux world at large. Change-Id: Iece5b4da4bace0fb8b1f41a65ab2c852ec73e6f8 Closes-Bug: #1485742
2015-09-25Make OpenStack use CephSam Yaple2-2/+39
This implements all the openstack pieces needed to make ceph work. DocImpact Change-Id: I1d24476a966602cf955e5ef872b0efb01319894a Partially-Implements: blueprint ceph-container Implements: blueprint kolla-live-migration
2015-09-24Cinder logging to rsyslogMichal Jastrzebski1-0/+2
Configure cinder to use rsyslog container as logging mechanism Change-Id: Ib860ac897643a6377dfc79f0c68281843dc34691 Implements: bp logging-container
2015-09-24Replace config-external with a JSON file for CinderRyan Hallisey4-0/+44
Partially-Implements: blueprint replace-config-external Change-Id: Ic247433290b51c9fb613d90e4a9a0f3d11526b35
2015-09-04Set cinder auth_strategy to keystone explicitelyVladislav Belogrudov1-0/+1
Default value for auth_strategy changed for Cinder in Liberty release from 'noauth' to 'keystone'. Therefore relying on default value makes Cinder fail in Kilo. This patch covers both releases by setting auth strategy to 'keystone' explicitely Change-Id: Ic1f45fd43e0a94ca1dbfc63e90e2756c40453352 Closes-Bug: #1492233
2015-08-22Use cinder-volumes as name of LVM VGSteven Dake1-1/+1
Use cinder-volumes as name of LVM volume group expected on the host instead of the nonsense that was there before. Change-Id: I35221ac0ad3464581f9ba95c3127832e0af7ad64 Closes-Bug: #1487800
2015-08-12Add ansible support for CinderSwapnil Kulkarni1-0/+55
Change-Id: I0694e5ad95aa7f924ebd3a29dff1f85e6307b7ae Partially-implements: blueprint ansible-cinder Partially-Implements: blueprint remove-abstraction-ansible Co-Authored-By: Ryan Hallisey <rhallise@redhat.com>