aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/cinder
AgeCommit message (Collapse)AuthorFilesLines
2016-11-15Remove Ansible from KollaSteven Dake21-820/+0
Change-Id: I5396e4b9927d3e65b6aa4185238a43a4765a996b
2016-11-14Merge "Fix placement of policy.json"Jenkins1-1/+6
2016-11-12Fix placement of policy.jsonDuong Ha-Quang1-1/+6
Currently, policy.json is put in "{{ node_config_directory }}/{{ service_name }}" in target nodes. Relocation policy.json to "{{ node_config_directory }}/{{ item }}" with item is corresponding service compoment config directory. Currently, the policy.json is copied to all services, but it should be reviewed and left only in neccesary service (at many cases, only API service needs that). Redundant files will be removed in follow up patchset. Change-Id: I0e997dccf4ec438c9c0436db71ec2fd06650f50d Closes-Bug: #1639686
2016-11-11Fix copying nfs_shares configuration4.0.0.0b1Mauricio Lima1-5/+6
Using the `when` conditional on a `with_` loop gets evaluated on each loop iteration and will not skip a task entirely. Use the `skip` attribute to ignore errors in this scenario but only `skip` when `enable_cinder_backend_nfs` is not enabled. If it is enabled the `nfs_shares` file should be required and this task should fail if it does not exist. Co-authored-by: Andrew Widdersheim <amwiddersheim@gmail.com> Change-Id: I6b997dd943efe7b16beb63899c1488fa5353d996 Closes-Bug: #1641183
2016-11-07Allow cinder-volume to be configured to use NFSxionglingfeng4-4/+34
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-11-04Merge "Custom policy files"Jenkins1-0/+11
2016-11-03Move precheck into its own roleJeffrey Zhang1-0/+1
* Merge prechecks.yml and site.yml playbook * Create empty precheck.yml into all roles. Change-Id: I8a138558a26c0a2a66c5fd48ed37be657c99c1dd Implements: blueprint condition-pre-check
2016-10-28Custom policy filesEduardo Gonzalez1-0/+11
Allow operators to use their custom policy files. Avoid maintain policy files in kolla repos, only copying the files when an operator add their custom config. Implements: blueprint custom-policies Change-Id: Icf3c961b87cbc7a1f1dd2ffbfffcf271d151d862
2016-10-17Fix for cinder not working with permissions changesSteven Dake1-1/+1
Change-Id: I0c38c25b1f9af6077e117420b466f0b3b38d9509 Partial-Bug: #1631503
2016-10-17Merge "Fix cinder upgrade permission issue"Jenkins4-0/+48
2016-10-17Fix cinder upgrade permission issuezhubingbing4-0/+48
Change-Id: If778c981cfcf020fcf0be6bf7e38a3243e63b85c Partial-Bug: #1631503
2016-10-15Fix stale namespace removal issueJeffrey Zhang1-2/+2
When using both /run and /run/netns in docker container, mount propagation won't work when delete namespace after the containers are restarted. This PS makes /run mount as shared. Closes-Bug: #1616268 Change-Id: Ie16699e1b193b2bf1263d89ea634e89ea69add9e
2016-10-13Merge "precheck fails due to unknown cinder_volume_group"Jenkins1-2/+0
2016-10-13Merge "Remove do_reconfigure.yml file for all roles"Jenkins2-84/+78
2016-10-13precheck fails due to unknown cinder_volume_groupVladislav Belogrudov1-2/+0
cinder_volume_group property is not seen by precheck tasks - moving it to common group variables. Change-Id: Id7614bb428bb0bf7217eab71b3ec28189e4032b5 Closes-Bug: #1631569
2016-09-27Remove do_reconfigure.yml file for all rolesJeffrey Zhang2-84/+78
do_reconfigure.yml is introduced to use serial directive. But we use it in wrong. Now serial has moved to playbook file. So it is time to remove the do_reconfigure.yml file Closes-Bug: #1628152 Change-Id: I8d42d27e6bc302a0e575b0353956eaef9b2ca9fd
2016-09-26Fix the url of Cinder endpointscaoyuan2-6/+9
When use "openstack endpoint list" to list the endpoints of cinder service, the url is not right. This patch fix it. closes-Bug: #1627061 Change-Id: I43756421680f4ce59f7cbfb02509aa96c9e5ca9b
2016-09-21Cinder cannot use external non-LVM iSCSI storageVladislav Belogrudov1-2/+2
Currently Cinder enables iscsid service only when LVM is choosen as backend. This fix will allow to specify external iSCSI storage via configuration add-on and to run iscsid independently of LVM settings. Change-Id: Iaae0f8025534e5ab1c5f9d5e812a7d41129915ef Closes-Bug: 1614125
2016-09-16Merge "Cinder-backup fails while backing up iSCSI volumes"Jenkins1-8/+15
2016-09-13Check volume group exists for Cinder in prechecksPaul Bourke2-1/+3
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-13Added serial option to site.yml.Mick Thompson2-2/+0
Useful for upgrade etc., which is preferablly done serially. Example usage: tools/kolla-ansible deploy OR tools/kolla-ansible upgrade Closes-Bug: #1576708 DocImpact Change-Id: I34b2e16f8ce53e472a4682a4738c4ac0f5abf00c
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-09-06Cinder-backup fails while backing up iSCSI volumesVladislav Belogrudov1-8/+15
Cinder backup needs access to the same volumes as cinder volume service when saving/restoring iSCSI disks Change-Id: Ib1956cbd57e8959bad520b8d4c6d792a449ecf22 Closes-Bug: #1614460
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-18Port with_ loop variable syntax to Ansbile 2 (finish)Duong Ha-Quang1-4/+4
Migrate to full variable syntax in with_ loop instead of bare variables for: - cinder - haproxy - ironic - magnum - mistral - mongodb - murano - swift - watcher TrivialFix Change-Id: I3ef2e79053cf609aaa710e43ffd0adbc5a97565b
2016-08-10Merge "Remove unused project_yaml parameter from role metadata files"Jenkins1-1/+1
2016-08-09Merge "Make Cinder access glance in round robin fashion"Jenkins1-1/+3
2016-08-07Remove unused project_yaml parameter from role metadata filesChristian Berendt1-1/+1
TrivialFix Change-Id: I7ff752fffe47e9571ea15acdad3edd4835f9e612
2016-08-06Merge "Simplify the Cinder LVM backend"Jenkins4-28/+24
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 Zhang4-28/+24
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 Ewald7-39/+66
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 Zhang2-0/+8
Closes-Bug: #1587244 Change-Id: I22ed3c57e4669c4372daf448da8385729c7cc8d1
2016-05-26Merge "add support for non-default database_port in kolla/ansible"Jenkins2-1/+3
2016-05-23Make configurable the location where config files are mergedRyan Hallisey1-6/+6
An operator may want to specify the location of custom config files so that kolla can detect their location and merge them with the default configs generated. Partially implements: blueprint multi-project-config Change-Id: Ibfb38d07a36dfa7fe25381adc34cc1d3cbe7d1e1
2016-05-13add support for non-default database_port in kolla/ansibleWaldemar Znoinski2-1/+3
This change makes each step of the kolla deployment aware of the port database was configured to listen on. It defaults mariadb_port to database_port. Change-Id: I8e85d5732015afc0a5481cb33e0b629fdfa84a1b Closes-Bug: #1576151 DocImpact
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-03Merge "map the host localtime to the container"Jenkins2-0/+5
2016-05-03map the host localtime to the containerJeffrey Zhang2-0/+5
Closes-Bug: #1577148 Change-Id: I636cefc63cf532434a41af3898b63dffa711e280
2016-05-02Remove unecessary blank linesMauricio Lima2-2/+0
TrivialFix Change-Id: I1f03d428c380dfdbde5ef33e7ea43cbf5e9154ce
2016-04-28Re-order the when condition in the cinder reconfigureJeffrey Zhang1-2/+2
Change-Id: Ib058a0d2bfd442cc80d67ec034b37298e881ae79 Closes-Bug: #1576209
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-15Merge "Adds ansible code for iscsid and tgtd containers"Jenkins2-5/+26
2016-04-12Adds ansible code for iscsid and tgtd containersSerguei Bezverkhi2-5/+26
This partially implements iscsi and lvm2 support for cinder in Kolla. Adds ansible code for iscsid and tgtd containers. Change-Id: I2a4cfcf104397396ea61a09637d9ef3fc77b515f Partially-Implements: blueprint iscsi-lvm2-docker
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