Access glance through vip rather than multi glance ips in ironic

* Ironic do not support multi glance ips.
* Write the nova-compute-ironic binary log to nova-compute-ironic.log
file

Change-Id: I87359c47a5845c4d7a6ab9daaefcc94a51c92eb0
Closes-Bug: #1671989
This commit is contained in:
Jeffrey Zhang 2017-03-11 13:16:04 +08:00
parent 0160521337
commit d038f7f750
2 changed files with 2 additions and 1 deletions
ansible/roles
ironic/templates
nova/templates

@ -60,7 +60,7 @@ memcached_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansi
[glance]
glance_host = {% for host in groups['glance-api'] %}{{ internal_protocol }}://{% if orchestration_engine == 'KUBERNETES' %}glance-api{% else %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}{% endif %}:{{ glance_api_port }}{% if not loop.last %},{% endif %}{% endfor %}
glance_host = {{ internal_protocol }}://{% if orchestration_engine == 'KUBERNETES' %}glance-api{% else %}{{ kolla_internal_fqdn }}{% endif %}:{{ glance_api_port }}
[neutron]
{% if orchestration_engine == 'KUBERNETES' %}

@ -34,6 +34,7 @@ scheduler_host_manager = ironic_host_manager
{% if service_name == "nova-compute-ironic" %}
host={{ ansible_hostname }}-ironic
log_file = /var/log/kolla/nova/nova-compute-ironic.log
compute_driver = ironic.IronicDriver
vnc_enabled = False
ram_allocation_ratio = 1.0