aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/glance/tasks
AgeCommit message (Collapse)AuthorFilesLines
2016-11-15Remove Ansible from KollaSteven Dake14-353/+0
Change-Id: I5396e4b9927d3e65b6aa4185238a43a4765a996b
2016-11-12Fix placement of policy.jsonDuong Ha-Quang1-2/+4
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-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-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-09-27Remove do_reconfigure.yml file for all rolesJeffrey Zhang2-66/+62
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-21Add "---" into some files of yamlcaoyuan1-0/+1
TrivialFix Change-Id: Id2cd736f136068514f26977b434b15a8b1ffc8be
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-09Port with_ loop variable syntax to Ansbile 2Duong Ha-Quang1-4/+4
Migrate to full variable syntax in with_ loop instead of bare variables for: - ceph - ceilometer - glance - heat - horizon - keystone - mariadb - memcached - neutron - nova - rabbitmq Change-Id: Ib925b4ecea47ac758a77739c9c7e140f06933b08 Partial-Implements: blueprint ansible2
2016-08-02Glance interface address, memcached override, and glance override.Ken Wronkiewicz1-1/+1
Note: This should not result in any behavior changes in regular Kolla, just Kolla-Kubernetes and only when you've overridden stuff in globals.yml Allows override of interface address, memcached pools, and glance registry host so that Kubernetes can do the right thing. There are some significant architectural issues involved in memcached pooling in the Kolla-kubernetes world. Avoiding them right now. Current working with this Kolla-Kubernetes globals.yml file: api_interface_address: "0.0.0.0" memcached_servers: "memcached" keystone_database_address: "mariadb" keystone_admin_url: "http://keystone-admin:35357/v3" keystone_internal_url: "http://keystone-public:5000/v3" keystone_public_url: "http://keystone-public:5000/v3" glance_registry_host: "glance-registry" Two tings to note: * This depends on a kolla-kubernetes patch, so that it won't be merged until it's safe for glance to bind to 0.0.0.0. It's OK to bind to 0.0.0.0 in the Kubernetes world because the network fabric controls access. * In Kolla-Kubernetes, the global.yml file doesn't do var substitution so you have to be explicit about the URLs, otherwise Keystone will look like it was provisioned but it won't quite be provisioned right. Co-Authored-By: Ryan Hallisey <rhallise@redhat.com> Change-Id: Ic87566118a1d4f552748392ff394b9b121c91887 Partially-implements: blueprint api-interface-bind-address-override Depends-On: I586ce1c6c3300254c4e2a398ff46645df576aeb0
2016-07-24Consistent external Ceph configuration for GlanceMathias Ewald1-2/+2
Made glance follow the <service>_backend_ceph configuration pattern. Change-Id: I7bc2b3b35d96bd297d520750dccd7333fa68d941 Closes-Bug: #1605962
2016-07-18Fix 'reconfigure' command of kollaBartłomiej Daca1-2/+2
Changed the order of the 'when' statements in "remove/restart containers" tasks. It will fix the reconfiguration problem when deploying different components on different hosts. Change-Id: Ibee9dd56b6128b664144deb1d9eb7ec32e39fd5c Closes-Bug: #1603943
2016-07-14External Ceph support - Implementation GlanceMathias Ewald2-3/+22
Most simple implementation of external ceph support. We use INI merge to configure RBD backend for Glance and copy ceph.conf and keyring provided by the user into the container. Set_configs.py had to be extended to support globbing (wildcards) in order to copy ceph keyring file which is named depending on the cephx user name. Partially-Implements Blueprint: external-ceph Partially-Implements Blueprint: selectable-ceph Change-Id: Iacadbd8ec9956e9f075206ea03b28f044cb6ffb8
2016-06-13Load the metadata definitions during Glance bootstrapChristian Berendt1-0/+2
Change-Id: I4e6ecbcfbd11a516b1ddc2fe7a62f20b8313ae07 Closes-bug: #1584698
2016-05-26Merge "add support for non-default database_port in kolla/ansible"Jenkins1-1/+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-1/+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/+3
2016-05-03map the host localtime to the containerJeffrey Zhang2-0/+3
Closes-Bug: #1577148 Change-Id: I636cefc63cf532434a41af3898b63dffa711e280
2016-05-02Remove unecessary blank linesMauricio Lima1-1/+0
TrivialFix Change-Id: I1f03d428c380dfdbde5ef33e7ea43cbf5e9154ce
2016-03-28Refactor the glance service group mappingJeffrey Zhang2-23/+8
Add a glance_service_groups variable containers the container name, service name and group name. In this way, we can remove lots of duplicated lines. TrivialFix Change-Id: I9beb7509ad7221cd495e3211a2e67d986486aac6
2016-03-28Only copy the necessary config files for GlanceJeffrey Zhang1-14/+18
Only copy the necessary config files when it _really_ needed. This will make the config file safer Partial-Bug: #1559122 Change-Id: I5f5df54c688fb4f6b0ee68815116e2418d5742f7
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-17Refactor glance config tasksSamYaple1-17/+3
This now matches the way we copy confis in other services. TrivialFix Change-Id: Ia9c6d5f9a633c0b20b4d9a697863bd2753d39443
2016-03-03Fix Keystone v3 and HorizonSamYaple1-3/+6
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 glance serviceJeffrey Zhang2-0/+73
Change-Id: Ic9e98941711a5fd1b8546de58d278a0b00cf350b Partially-implements: bp kolla-reconfig
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-25Add the default empty reconfigure.yml file to all rolesJeffrey Zhang1-0/+1
DocImpact Partially-implements: bp kolla-reconfig Change-Id: I9738e80960bcfbef18d1ef1b7942f81c45684e85
2016-02-22Playbook for glance upgradeJeff Peeler3-19/+26
New playbook for glance service upgrade. Change-Id: I759e4eddf669112f752fe07d6b99a4bb9593d97f Implements: blueprint upgrade-glance Partially-Implements: blueprint upgrade-kolla
2016-02-19Make Heka collect Glance logsÉric Lemoine2-2/+3
Partially implements: blueprint heka Change-Id: I9e5ba649bc45356822138ad223430f4b93722448
2016-02-17Merge "Move socket binding to named_volume"Jenkins1-2/+2
2016-02-16Move socket binding to named_volumeSamYaple1-2/+2
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-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-02-06Fix gate for docker 1.10SamYaple1-2/+2
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_toolboxSamYaple3-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-0/+2
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-06Fix missing mountpoint in glance bootstrapSamYaple1-1/+3
Change-Id: I637eef710c0c4964a440e21e3ac15f8fca4b1830 Closes-Bug: #1519965
2016-01-06Allow glance role to pull imagesSamYaple3-24/+40
Change-Id: Ib5c22c7416bdc7ce83123b79fa7b08afda7595bc Partially-Implements: blueprint pre-pull-images
2016-01-03Convert to named volumes instead of data containerSamYaple1-9/+1
This intentionally leaves out rabbitmq from this patchset. It will require additional work to remove its data container UpgradeImpact Partially-Implements: blueprint docker-named-volumes Change-Id: Id68b8e43a3c077ef4f4f4d67ea34d0692e66eef7
2015-12-31Convert Glance to kolla_dockerSamYaple2-77/+25
Change-Id: I1372bdb14818b5a8920e8b0d1483fd481fb83589 Partially-Implements: blueprint kolla-docker-module
2015-12-22Simplify config creationSamYaple1-38/+37
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-12-02Sanity check for glanceMichal Jastrzebski2-0/+24
This runs first sanity check for glance. After glance is deployed it checks images.list(). Also consist few fixes for previous patches Change-Id: I03d05d246302d8411b2e94c94ca7fe046c00d735 Partially-Implements: blueprint sanity-check-container
2015-11-26Merge "Remove the two different auth profiles"Jenkins1-11/+1
2015-11-23Make the database json variable more readableSam Yaple1-6/+11
Additionally remove tty from the container cleanup docker section. It was added in a sed in a previous patchset by serves no purpose. Change-Id: Ib617870616bca687f72ffaa44b2e9a3a11ef1011 Partially-Implements: blueprint cleanup-playbooks
2015-11-23Fix bootstrap for servicesHui Kang2-10/+9
The bootstrap tasks could be started on any node listed in the site.yml The issue is that all the tasks must run on the same node, and the only node that all the tasks can run on is the 'api' node due to needing to start the bootstrap container which binds in the configs. delegate_to is required to ensure that the proper node gets the task. Co-Authored-By: Sam Yaple <sam@yaple.net> Change-Id: Ica04ab366777a571a92212ac22c482f1881d4ecd Closes-Bug: #1513598 Related-Bug: #1513439
2015-11-20Remove the two different auth profilesSam Yaple1-11/+1
Ceph can function just fine generating the keys before the pools have been created so we can apply the proper permissions to the auth string ahead of time. This allows us to not require additional steps to add a cache tier on the fly in the future. Change-Id: I8214c567fb7c337f95d908c5699d1da922bfa1a6 Closes-Bug: #1518475
2015-11-20Merge "Move data container to start.yml"Jenkins2-18/+16
2015-11-17Fix issues in Glance filesystem backendPaul Bourke1-2/+2
The drop root change for Glance highlighted the fact that we were binding volumes from glance_data into the wrong container - it was glance_registry whereas it should be glance_api. This would result in all images being lost if the glance_api container happens to restart. Also, we need a sudoers file to chown the file backend dir to the glance user. Change-Id: If04337045bb94b3126e48d1f5bf0ea29e20373ae Closes-Bug: #1516729