aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/cinder/tasks
AgeCommit message (Collapse)AuthorFilesLines
2016-11-15Remove Ansible from KollaSteven Dake14-506/+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 NFSxionglingfeng1-0/+11
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-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 "Remove do_reconfigure.yml file for all roles"Jenkins2-84/+78
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 endpointscaoyuan1-3/+3
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-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-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-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-07-25Simplify the Cinder LVM backendJeffrey Zhang2-16/+2
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 Ewald4-5/+47
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-05-31Fix the cinder backup permission issue when enable cephJeffrey Zhang1-0/+1
Closes-Bug: #1587244 Change-Id: I22ed3c57e4669c4372daf448da8385729c7cc8d1
2016-05-26Merge "add support for non-default database_port in kolla/ansible"Jenkins1-0/+2
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 Znoinski1-0/+2
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-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 Lima1-1/+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-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-03-17Allow per node configuration with augmentsSamYaple1-0/+1
This type of per node configuration is required to support things like availability zones for nova. As always, if this file doesnt exist it doesnt get used so this change is safe. TrivialFix Change-Id: Iff8172af522c2c96e5f2c173b24a5dfd4d522ed2
2016-03-04Merge "Reconfigure cinder service"Jenkins2-0/+85
2016-03-03Fix Keystone v3 and HorizonSamYaple1-25/+11
After our switch to keystone-manage bootstrap Horizon is not happy due to v3 not being setup correctly. This patch fixes that This also includes removal of unused variables (transforms them into endpoint url variables) TrivialFix Change-Id: I1e04db8c24049f80e974c063f03068a2ab32a563
2016-03-02Reconfigure cinder serviceJeffrey Zhang2-0/+85
Change-Id: I8d207d1782acfebf5c07de39df3257fd9bdbbada Partially-implements: bp kolla-reconfig
2016-02-27Sanity check for cinderjvora2-0/+26
This runs first sanity check for cinder. Once cinder is deployed it checks volumes.list() Change-Id: I1b4cc57f21cf0fa52a391229c2c2b3fa995d32a8 Partially-Implements: blueprint sanity-check-container
2016-02-26Change kolla_internal_address variableSamYaple1-7/+7
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-25Add the default empty reconfigure.yml file to all rolesJeffrey Zhang1-0/+1
DocImpact Partially-implements: bp kolla-reconfig Change-Id: I9738e80960bcfbef18d1ef1b7942f81c45684e85
2016-02-19Make Heka collect Cinder logsÉric Lemoine2-5/+7
Partially implements: blueprint heka Change-Id: I9dcb71a9cf063fb520fcf3485e0376f1e90d87ad
2016-02-19Upgrade cinder playbookRyan Hallisey4-29/+37
Cinder requires a specific order for an upgrade. c-api -> c-scheduler -> c-volume -> c-backup as referenced by this patch: https://review.openstack.org/#/c/269412/6 We may be dependant on that Cinder patch linked above. Behavior without this patch is unknown. Change-Id: I3fd1fe62abb398935932dab6ce905a65f8aabbd0 Co-authored-by: Paul Bourke <paul.bourke@oracle.com> Partially-implements: blueprint upgrade-kolla implements: blueprint upgrade-cinder
2016-02-17Merge "Move socket binding to named_volume"Jenkins1-4/+4
2016-02-16Move socket binding to named_volumeSamYaple1-4/+4
The extend_start.sh script for rsyslog is removed as it is no longer needed. Docker no longer binds to /dev/log or /run/kolla/log Closes-Bug: #1544545 Change-Id: Ic0a323a26ee4e9e15baf4598285844a8a4955f23
2016-02-15Use variables to specify http or https when constructing URLsDave McCowan1-6/+6
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-02-08elevates privileges and grants access to /dev/mapper to cinder backupSean Mooney1-0/+2
- sets privileged: true on cinder backup container - adds /dev/mapper to cinder-backup mounts - this change allows the cinder backup manager to access the cinder-volumes lvm volume group via the kernel device mapper. Change-Id: I252ee9cadb5f06c383ac9f48d0b1b16d83037a41 Closes-Bug: #1542574
2016-02-06Fix gate for docker 1.10SamYaple1-4/+4
Docker 1.10 has broken the gate and this patch will correct that breakage. The issue comes with rsyslog. Due to a commit in Docker 1.10 [1] we must change the way we get the log socket for rsyslog. The /dev/ folder will no longer populate as we used it. So instead we simply make a new socket in a path we control and share that to the correct location in the containers. Additionally, adjust the gate for new Docker daemon. [1] https://github.com/docker/docker/pull/16639 Partially-Implements: blueprint kolla-upgrade Change-Id: I881a2ecdf6d7b35991e1d38a3f3e60d022d6577f
2016-02-02Rename kolla_ansible to kolla_toolboxSamYaple2-5/+5
This change is needed for clarity. We have a kolla-ansible script. We have a kolla-mesos repo. We plan to have a kolla-ansible repo. Already we have had far too much confusion about whether we are talking about the container or the project. Naming this kolla-toolbox eliminates all of that confusion and its probably a bit more accurate of a name too. Closes-Bug: #1541053 Change-Id: I8fd1f49d5a22b36ede5b10f46b9fe02ddda9007e
2016-01-28Update all bootstraps to use LabelSamYaple1-1/+3
Add bootstrap label to all bootstrap containers to ensure that when the a new container is launched a difference is seen between it and the bootstrap container since we cannot rely on ENV variables for this. This only affects mariadb at this stage, but it is needed to ensure rabbitmq works when we switch to named volumes. Change-Id: Ia022af26212d2e5445c06149848831037a508407 Closes-Bug: #1538136
2016-01-26Add stub upgrade.ymlMichal Jastrzebski1-0/+1
After introduction of pull action and turing every main.yml into {{action}}.yml we lost ability to perform upgrade Change-Id: Ie9fa2cd083b061033abc733fba53d54f9c55e393 Fixes-Bug: #1538210
2016-01-06Allow cinder role to pull imagesSamYaple3-26/+56
Change-Id: Ia2e6e3c8371f7b26fb0c77989482d241567e52d1 Partially-Implements: blueprint pre-pull-images
2015-12-31Convert cinder to kolla_dockerSamYaple2-95/+32
Change-Id: I2dd889941799f031b3f7be59cbdf4da93f5aa0d0 Partially-Implements: blueprint kolla-docker-module
2015-12-22Simplify config creationSamYaple1-97/+32
Convert config creation from a playbook to an action_plugin. This reduces the complexity and confusion while retaining the same augment structure and flexibility. This allows us to remove the 0-byte files as requirements. They will still be used if they are present (this means we require additional documentation around them). DocImpact Closes-Bug: #1528430 Change-Id: I2c789f6be9f195c7771ca093a6d59499564b4740
2015-11-26Merge "Remove the two different auth profiles"Jenkins1-22/+2
2015-11-24Merge "Fix udev cinder issue"Jenkins1-0/+2