aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/glance/templates
AgeCommit message (Collapse)AuthorFilesLines
2016-11-15Remove Ansible from KollaSteven Dake4-178/+0
Change-Id: I5396e4b9927d3e65b6aa4185238a43a4765a996b
2016-10-24Merge "Remove unnecessary blank line from file glance-api.json.j2"Jenkins1-1/+0
2016-10-18Add http as allowed store when glance configured to use rbdChris Hoge1-1/+1
Adds http as an allowed store when glance is configured to use ceph/rbd as the image store. The default configuration for glance with lvm uses http as a secondary store. http store is commonly used with automation tools like heat to pull images into glance from endpoints. Without specifying http as a store the expected default behavior fails. This patch restores that default behavior. Change-Id: Id3663123b8d54e53bd1fd130b65fd8383c9f35c0 Closes-Bug: #1631637
2016-10-19Remove unnecessary blank line from file glance-api.json.j2caoyuan1-1/+0
TrivialFix Change-Id: I87c255079734d9967891715795077f0fefee9d4b
2016-10-14Fix glance upgrade permission issueJeffrey Zhang2-0/+20
Change-Id: I8316310c13017b86eb13c3ffad260fecb0e7f61b Partial-Bug: #1631503
2016-09-12Adding required check for Orchestration KubernetesSerguei Bezverkhi2-4/+14
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 Zhang2-12/+4
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-02Glance interface address, memcached override, and glance override.Ken Wronkiewicz2-8/+26
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-27Merge "Consistent external Ceph configuration for Glance"Jenkins2-2/+2
2016-07-27Use a lower number of the workersJeffrey Zhang2-0/+2
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-24Consistent external Ceph configuration for GlanceMathias Ewald2-2/+2
Made glance follow the <service>_backend_ceph configuration pattern. Change-Id: I7bc2b3b35d96bd297d520750dccd7333fa68d941 Closes-Bug: #1605962
2016-07-19Fix the failure to create instance snapshotJeffrey Zhang1-0/+1
When making snapshot for instance with ceph enabled, nova will use upate image api to create the snapshot directly. with the patchset I7284dee828bc8ca00747bc7668b37fa7176afc85 in Glance, the show_multiple_locations must be True. Change-Id: Ic9612566e2ab8f641030fef97b519f11d942a915 Closes-Bug: #1604464
2016-07-14External Ceph support - Implementation GlanceMathias Ewald2-12/+7
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-26glance-*, fix rabbit config with ceilometerDave Walker (Daviey)2-2/+4
Currently, if ceilometer is enabled with glance then the rabbitmq is non-functional, causing various glance failures including image upload. This is caused because: The generated config fails to have a carriage return at the end of the rabbit_host line, causing the following line to be added to this entry. rabbit_host is used rather than rabbit_hosts, where the fromer expects a string, rather than the list that is provided. This also adds rabbit HA support, to be in-line with the other services using rabbitmq. This is resolved, by pushing the rabbit_hosts entry to be last, meaning that a carriage return is not required. Change-Id: I89f26d542565b98025fd9b84fc4beb5cbed364e5 Closes-Bug: 1596244 Signed-off-by: Dave Walker (Daviey) <email@daviey.com>
2016-06-16Implement ceilometer ansible roleHui Kang2-1/+18
Change-Id: I13c50a78b2dc7c98b720a4b2e7161104213bd295 Implements: bp ansible-ceilometer
2016-04-11Set db connection retry to infinityRyan Hallisey2-0/+2
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-19Add memcached_servers to keystone_auth sectionSamYaple2-0/+10
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-07Use internalURL for internal communicationDave McCowan1-0/+2
When using separate networks for external APIs and internal APIs, services need to be configured to use the internal APIs. The default is typically publicURL. TrivialFix Change-Id: I24da63220a65e210c37d9f24b6d76a0031d66f3d
2016-02-26Change kolla_internal_address variableSamYaple2-6/+5
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 Glance logsÉric Lemoine2-6/+6
Partially implements: blueprint heka Change-Id: I9e5ba649bc45356822138ad223430f4b93722448
2016-02-15Use variables to specify http or https when constructing URLsDave McCowan2-4/+4
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 Yao2-2/+2
Config file use *_logging_debug as debug default value Change-Id: I41102fff9056a82f7307694252adff0aedcf2658
2016-01-19Use driver instead of deprecated notification_driver in configWanlong Gao2-2/+6
TrivialFix https://review.openstack.org/#/c/249508/ Change-Id: Ie2732ee116b6b4b3e0210eb1f62fc72878d8c277
2016-01-18remove option verbose from config filesAllen Gao2-2/+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 Gao2-2/+2
TrivialFix Change-Id: I33924d6de43126ff8523883eebce703c976f9a1a
2015-12-26Fix file permissionsSamYaple2-0/+0
Throughout the project overtime some of these file permissions have changed to have an executable bit. They should not have this bit set. TrivialFix Change-Id: I1748b5bde813a0fcac36aeecdfd83245b8ee5be3
2015-12-22Convert to pymysqlSamYaple2-2/+2
Closes-Bug: #1528432 Change-Id: I6e56f283521b29678964cb655ac3cff2d13b8246
2015-11-27Source installation in virtualenvMichal Rostecki2-2/+2
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-10-22Allow ceph pool names to be configurableSam Yaple1-1/+1
Change-Id: Ic408ef7aec7f1c95396a0ccf0209b104908a3f21 Partially-Implements: blueprint ceph-improvements
2015-10-06Bring Kolla inline with FHSSam Yaple2-4/+4
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-1/+25
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-24Glance logging to rsyslogMichal Jastrzebski (inc0)2-0/+6
Configure glance to use rsyslog container as logging mechanism Change-Id: I60f604d7a85bb4309b26be03cd6b8aac14840fe7 Implements: bp logging-container
2015-09-18Replace config-external with a JSON file for Glancerthallisey2-0/+22
Change-Id: I14187db31a009c150424ea28b854a78c9ae3941d Partially-Implements: blueprint replace-config-external
2015-08-12Merge "Update glance confs and ports"Jenkins2-6/+5
2015-08-12Glance cannot store images due to incomplete configurationVladislav Belogrudov1-0/+4
Glance api refuses to store images with error "Error in store configuration. Adding images to store is disabled. (HTTP N/A)" This happens due to missing configuration of store in glance-api.conf Change-Id: I50696671d10ffc56189d3aa08c1e73bb307bc800 Closes-Bug: #1484123
2015-08-10Update glance confs and portsSam Yaple2-6/+5
Cleanup all options in the minimal glance confs. Remove options where the default value was specified explicitly. Updated ports and bindings to be configurable. For rabbitmq, those options will only be needed once ceilometer is implemented. At that point they will exist in an 'if' block. Change-Id: Idcf0ebc625a5ef3a83181bce10281596a5f1d684 Partially-Implements: blueprint update-configs
2015-07-09Ansible Glance supportSam Yaple2-0/+51
Adds support for glance in ansible Partially-Implements: blueprint ansible-service Change-Id: I2d162e79f85877116b0e33b1843de6ccb62a445a