aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/swift
AgeCommit message (Collapse)AuthorFilesLines
2016-11-15Remove Ansible from KollaSteven Dake34-1351/+0
Change-Id: I5396e4b9927d3e65b6aa4185238a43a4765a996b
2016-11-12Fix placement of policy.jsonDuong Ha-Quang1-1/+16
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-06Merge "Adjust object-replicator heading within object.conf.j2 template."Jenkins1-1/+1
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-28Adjust object-replicator heading within object.conf.j2 template.James McCarthy1-1/+1
The swift-object-auditor logs many complaints of missing object-replicator configuration, as this section is undefined. Move the header outside of the == 'swift-object-replicator' check, so other services will get an empty section to stop complaints. TrivialFix Closes-Bug: #1637561 Change-Id: I9c8d960b0c31e448afdeaac5f3d38e1be5ff965d
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-19Add validate no new line at end of fileJeffrey Zhang1-1/+1
TrivialFix Change-Id: I817aa52caf56b7d54b266e553db6db1ceb38b773 Signed-off-by: Jeffrey Zhang <zhang.lei.fly@gmail.com>
2016-10-14Merge "ansible: swift: Fix swift-object-expirer restart loop"Jenkins2-1/+5
2016-10-11ansible: swift: Fix swift-object-expirer restart loopOtavio Salvador2-1/+5
The swift-object-expirer is provided by the 'openstack-swift-proxy' package and thus it is unavailable on swift-object image. This change adds a new Docker image to fulfill this requirement and stop using swift-object image in this case. This image is needed while RDO does not fix the packaging. The issue is being tracked in: https://bugzilla.redhat.com/show_bug.cgi?id=1382921 Change-Id: Idc7ee92d756d8923da2198ede33abf5ed1142041 Closes-Bug: 1630425
2016-09-27Remove do_reconfigure.yml file for all rolesJeffrey Zhang2-149/+143
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-19Repair swift reconfigurationBartłomiej Daca1-2/+2
Change the conditions order in when statement. TrivialFix Change-Id: Ied9907ff25b66de3fd43502a920a88af8ff0cacd Closes-Bug: #1625256
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-08-18Port with_ loop variable syntax to Ansbile 2 (finish)Duong Ha-Quang2-5/+5
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-07Read GPT label using sgdisk rather than udevStephen Hindle1-1/+1
The Ceph osd bootstrap/startup logic depends upon reading/writing partition names. Some older versions of udev have trouble reading these (/dev/disk/by-label is missing). To work around this, we shell out to sgdisk and scrape the partition name data directly. Co-authored-by: Paul Bourke <paul.bourke@oracle.com> Closes-Bug: 1585185 Change-Id: I362b3f8e91de79687fc84e256996fbcaf303b6af
2016-05-23Make configurable the location where config files are mergedRyan Hallisey1-20/+20
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-03map the host localtime to the containerJeffrey Zhang1-0/+15
Closes-Bug: #1577148 Change-Id: I636cefc63cf532434a41af3898b63dffa711e280
2016-04-21Configures swift-rsyncd to use non-default portSerguei Bezverkhi4-1/+4
This PS configures swift-rsyncd process to use non-default port from the range above 1024. Change-Id: I7c37c548a5185a2ffac789383fe012619e401131 Closes-Bug: #1573137
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-18Fixes incorrect swift service endpointsSerguei Bezverkhi1-3/+3
This bugfix fixes incorrect swift proxy-server endpoint. Closes-Bug: #1559207 Change-Id: Idcdbaedbbde4922b0d5e31557aaf5cfcfdff8636
2016-03-17Allow per node configuration with augmentsSamYaple1-0/+5
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-05Reconfigure for SwiftSerguei Bezverkhi2-8/+20
This implements reconfigure for Swift service. Fixes swift-rsyncd in All-in-One deployment Partially-Implements: blueprint kolla-reconfig Change-Id: I82bfa3c73b7365bc3a0ea35d3fc102a3525ebd8c
2016-03-04Merge "Reconfigure for Swift"Jenkins2-0/+140
2016-03-04Reconfigure for SwiftSerguei Bezverkhi2-0/+140
This implements reconfigure for Swift service. Change-Id: Ifa4f02fc39ca79a886d6fd85f87073c897a777eb Partially-Implements: blueprint kolla-reconfig
2016-03-03Fix Keystone v3 and HorizonSamYaple2-7/+10
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-02-29Sanity check for swiftEugene Bagdasaryan2-0/+25
This runs first sanity check for swift. Once swift is deployed it checks list() Change-Id: I613bf9f2893d66814863893ec5acde5aa252548d Partially-Implements: blueprint sanity-check-container
2016-02-26Change kolla_internal_address variableSamYaple3-8/+8
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-22Merge "Fix Swift logging"Jenkins4-4/+4
2016-02-22Fix Swift loggingÉric Lemoine4-4/+4
Swift uses Syslog, but it uses a custom log format. So this commit adds a specific Heka decoder for Swift. It also increases the log level from "warning" to "info" to make Swift more verbose. Note that "info" is the default log level in Swift. And it disables the Heka configuration for Swift when "enable_swift" is set to "no". This prevents Heka from creating 15 empty Swift log files in the logs volume. Partially implements: blueprint heka Change-Id: If7a7d0707e71be2957178e2d45b5de51b788232e
2016-02-21Upgrade task for SwiftPaul Bourke3-12/+44
Based on the Nova upgrade patch and recommendations from Swift PTL John Dickinson at https://swiftstack.com/blog/2013/12/20/upgrade-openstack-swift-no-downtime/ Notes: As part of this upgrade I have chosen to *not* migrate any data from the old style swift_data container. This is because it was never intended to be used in production; this fact is made clear in the docs. In regards to testing, as of this patch we do not yet have an upgrade task for the common containers (rsyslog and kolla-toolbox), so attempting to upgrade swift will result in it failing to find the kolla-toolbox. This will be true of any other upgrade until upgrade for common is added. It can be worked around by deploying another role such as keystone which will drag in the common role and start up kolla-toolbox, after which Swift can be successfully upgraded. Change-Id: I138556932e9bddcd595d94a3dcb69603268880ff Partially-Implements: blueprint upgrade-kolla Implements: blueprint upgrade-swift
2016-02-19Make Heka collect Swift logsÉric Lemoine5-15/+19
Partially implements: blueprint heka Change-Id: I893a0c4a4cab9d4d98821634ddd2ff67015c4e3f
2016-02-17Merge "Move socket binding to named_volume"Jenkins1-15/+15
2016-02-16Merge "Use variables to specify http or https when constructing URLs"Jenkins2-5/+5
2016-02-16Move socket binding to named_volumeSamYaple1-15/+15
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-15Merge "Use uppercase 'S' in word "OpenStack""Jenkins1-1/+1
2016-02-15Use variables to specify http or https when constructing URLsDave McCowan2-5/+5
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-15Use uppercase 'S' in word "OpenStack"venkatamahesh1-1/+1
Change-Id: I27ca0ea75f3d6a4371c91b3cb2c7a999ec90fbc4
2016-02-06Fix gate for docker 1.10SamYaple1-15/+15
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-05Fix two missing toolbox referencesSamYaple1-1/+1
Two patches merged that did not have teh correct name for kolla_toolbox TrivialFix Change-Id: I09e230e29cff496247c32bf227715bfb7caa0a95
2016-02-05Merge "Rename kolla_ansible to kolla_toolbox"Jenkins1-2/+2
2016-02-02Rename kolla_ansible to kolla_toolboxSamYaple1-2/+2
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-02-02Fix Swift for multinode P+ACO deploymentQiu Yu1-1/+9
Current Swift playbook is based on the preassumption of AIO setup. However, if one goes with default multinode setup (ansible/inventory/multinode), it follows the P + ACO deployment model, which proxy-server runs on controller nodes where ACO (account/container/object services) run on storage nodes. It will break because swift proxy-server no longer has access (it shouldn't have) to /srv/node path. This change ensure disk mounting part only happens on storage node. It also moves chown from proxy-server Dockerfile to rsyncd because no matter with PACO, P+ACO or P+A+C+O model, rsyncd is always running on each storage node. Change-Id: I3aa20454902caa9c84d3901bb91e4e4c93ac5f34 Partially-Implements: blueprint swift-physical-disk Closes-Bug: #1537544
2016-02-01Merge "Fix missing swift proxy server image in pull action"Jenkins1-0/+7
2016-01-30Fix missing swift proxy server image in pull actionQiu Yu1-0/+7
Add back missing swift proxy server image which was removed in Swift shared image change. TrivialFix Change-Id: Icf13d4a1550192f73e266a6c6aa74f604ee4e77a
2016-01-30Detect and use physical disks for Swift storageQiu Yu2-45/+40
This change let Swift detect and use physical disk for storage. The old named volume for storage isn't really useful for any serious setup. Also updated swift-guide.rst accordingly. Change-Id: I4f577b7b69d8bcd8b3961500946241c65a16db22 Partially-Implements: blueprint swift-physical-disk
2016-01-27Merge "Update ring builder filenames in Swift config"Jenkins1-3/+3
2016-01-26Merge "Fix swift.conf.j2 so that merge_configs can recognize"Jenkins1-1/+1
2016-01-27Update ring builder filenames in Swift configQiu Yu1-3/+3
Update Swift config playbook to use correct name of Swift ring builer file. Those are the names generated if one follows document in doc/swift-guide.rst TrivialFix Change-Id: If1d713e3cccc851ef6f2cc3cb5a736b43fa26957
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