Skip to content
Snippets Groups Projects
Commit 22863308 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Add VMware DataStore support to glance"

parents 7a94decb c6d20705
No related branches found
No related tags found
No related merge requests found
...@@ -436,7 +436,7 @@ keystone_default_user_role: "_member_" ...@@ -436,7 +436,7 @@ keystone_default_user_role: "_member_"
####################### #######################
glance_backend_file: "{{ not enable_ceph | bool }}" glance_backend_file: "{{ not enable_ceph | bool }}"
glance_backend_ceph: "{{ enable_ceph }}" glance_backend_ceph: "{{ enable_ceph }}"
glance_backend_vmware: "no"
####################### #######################
# Ceilometer options # Ceilometer options
...@@ -560,3 +560,10 @@ ceph_nova_pool_name: "vms" ...@@ -560,3 +560,10 @@ ceph_nova_pool_name: "vms"
ceph_erasure_profile: "k=4 m=2 ruleset-failure-domain=host" ceph_erasure_profile: "k=4 m=2 ruleset-failure-domain=host"
ceph_rule: "default host {{ 'indep' if ceph_pool_type == 'erasure' else 'firstn' }}" ceph_rule: "default host {{ 'indep' if ceph_pool_type == 'erasure' else 'firstn' }}"
ceph_cache_rule: "cache host firstn" ceph_cache_rule: "cache host firstn"
################################################
# VMware - OpenStack WMware support
################################################
vmware_vcenter_host_ip:
vmware_vcenter_host_username:
vmware_vcenter_host_password:
...@@ -55,6 +55,16 @@ glance_api_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ dock ...@@ -55,6 +55,16 @@ glance_api_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ dock
glance_api_tag: "{{ openstack_release }}" glance_api_tag: "{{ openstack_release }}"
glance_api_image_full: "{{ glance_api_image }}:{{ glance_api_tag }}" glance_api_image_full: "{{ glance_api_image }}:{{ glance_api_tag }}"
####################
# Glance
####################
glance_backends:
- name: "rbd,http"
enabled: "{{ enable_ceph | bool and glance_backend_ceph | bool }}"
- name: "vmware"
enabled: "{{ glance_backend_vmware | bool }}"
glance_store_backends: "{{ glance_backends|selectattr('enabled', 'equalto', true)|list }}"
#################### ####################
# OpenStack # OpenStack
...@@ -68,3 +78,9 @@ glance_logging_debug: "{{ openstack_logging_debug }}" ...@@ -68,3 +78,9 @@ glance_logging_debug: "{{ openstack_logging_debug }}"
glance_keystone_user: "glance" glance_keystone_user: "glance"
openstack_glance_auth: "{{ openstack_auth }}" openstack_glance_auth: "{{ openstack_auth }}"
################################################
# VMware - OpenStack WMware support
################################################
vmware_vcenter_name:
vmware_datastore_name:
...@@ -59,17 +59,33 @@ memcached_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansi ...@@ -59,17 +59,33 @@ memcached_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansi
flavor = keystone flavor = keystone
[glance_store] [glance_store]
{% if enable_ceph | bool and glance_backend_ceph | bool %} {% if glance_backend_vmware | bool %}
default_store = vsphere
{% elif enable_ceph | bool and glance_backend_ceph | bool %}
default_store = rbd default_store = rbd
stores = rbd,http
rbd_store_user = glance
rbd_store_pool = {{ ceph_glance_pool_name }}
rbd_store_chunk_size = 8
{% else %} {% else %}
default_store = file default_store = file
filesystem_store_datadir = /var/lib/glance/images/ filesystem_store_datadir = /var/lib/glance/images/
{% endif %} {% endif %}
{% if glance_store_backends %}
stores = {{ glance_store_backends|map(attribute='name')|join(',') }}
{% endif %}
{% if enable_ceph | bool and glance_backend_ceph | bool %}
rbd_store_user = glance
rbd_store_pool = {{ ceph_glance_pool_name }}
rbd_store_chunk_size = 8
{% endif %}
{% if glance_backend_vmware | bool %}
vmware_server_host = {{ vmware_vcenter_host_ip }}
vmware_server_username = {{ vmware_vcenter_host_username }}
vmware_server_password = {{ vmware_vcenter_host_password }}
vmware_datastores = {{ vmware_vcenter_name }}:{{ vmware_datastore_name }}
vmware_insecure = True
{% endif %}
[oslo_messaging_notifications] [oslo_messaging_notifications]
{% if enable_ceilometer | bool or enable_searchlight | bool %} {% if enable_ceilometer | bool or enable_searchlight | bool %}
driver = messagingv2 driver = messagingv2
......
...@@ -239,6 +239,7 @@ kolla_internal_vip_address: "10.10.10.254" ...@@ -239,6 +239,7 @@ kolla_internal_vip_address: "10.10.10.254"
# Configure image backend. # Configure image backend.
#glance_backend_file: "yes" #glance_backend_file: "yes"
#glance_backend_ceph: "no" #glance_backend_ceph: "no"
#glance_backend_vmware: "no"
####################### #######################
# Ceilometer options # Ceilometer options
...@@ -341,3 +342,12 @@ tempest_floating_network_name: ...@@ -341,3 +342,12 @@ tempest_floating_network_name:
# tempest_image_alt_id: "{{ tempest_image_id }}" # tempest_image_alt_id: "{{ tempest_image_id }}"
# tempest_flavor_ref_alt_id: "{{ tempest_flavor_ref_id }}" # tempest_flavor_ref_alt_id: "{{ tempest_flavor_ref_id }}"
################################################
# VMware - OpenStack WMware support
################################################
#vmware_vcenter_host_ip:
#vmware_vcenter_host_username:
#vmware_vcenter_host_password:
#vmware_datastore_name:
#vmware_vcenter_name:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment