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

Merge "Fix ceph log location"

parents f2db4c0f 2947a95c
No related branches found
No related tags found
No related merge requests found
{ {
{%- if orchestration_engine == 'KUBERNETES' %} {%- if orchestration_engine == 'KUBERNETES' %}
"command": "/usr/bin/ceph-mon -d -i @MONID@ --public-addr @MONADDR@:6789", "command": "/usr/bin/ceph-mon -f -i @MONID@ --public-addr @MONADDR@:6789",
{%- else %} {%- else %}
"command": "/usr/bin/ceph-mon -d -i {{ hostvars[inventory_hostname]['ansible_' + storage_interface]['ipv4']['address'] }} --public-addr {{ hostvars[inventory_hostname]['ansible_' + storage_interface]['ipv4']['address'] }}:6789", "command": "/usr/bin/ceph-mon -f -i {{ hostvars[inventory_hostname]['ansible_' + storage_interface]['ipv4']['address'] }} --public-addr {{ hostvars[inventory_hostname]['ansible_' + storage_interface]['ipv4']['address'] }}:6789",
{%- endif %} {%- endif %}
"config_files": [ "config_files": [
{ {
......
{ {
{%- if orchestration_engine == 'KUBERNETES' %} {%- if orchestration_engine == 'KUBERNETES' %}
"command": "/usr/bin/ceph-osd -f -d --public-addr @HOSTADDR@ --cluster-addr @CLUSTERADDR@", "command": "/usr/bin/ceph-osd -f --public-addr @HOSTADDR@ --cluster-addr @CLUSTERADDR@",
{%- else %} {%- else %}
"command": "/usr/bin/ceph-osd -f -d --public-addr {{ hostvars[inventory_hostname]['ansible_' + storage_interface]['ipv4']['address'] }} --cluster-addr {{ hostvars[inventory_hostname]['ansible_' + cluster_interface]['ipv4']['address'] }}", "command": "/usr/bin/ceph-osd -f --public-addr {{ hostvars[inventory_hostname]['ansible_' + storage_interface]['ipv4']['address'] }} --cluster-addr {{ hostvars[inventory_hostname]['ansible_' + cluster_interface]['ipv4']['address'] }}",
{%- endif %} {%- endif %}
"config_files": [ "config_files": [
{ {
......
{ {
"command": "/usr/bin/radosgw -c /etc/ceph/ceph.conf -n client.radosgw.gateway -d", "command": "/usr/bin/radosgw -c /etc/ceph/ceph.conf -n client.radosgw.gateway -f",
"config_files": [ "config_files": [
{ {
"source": "{{ container_config_directory }}/ceph.conf", "source": "{{ container_config_directory }}/ceph.conf",
......
[global] [global]
log file = /var/log/kolla/ceph/$cluster-$name.log log file = /var/log/kolla/ceph/$cluster-$name.log
log to syslog = true log to syslog = false
err to syslog = true err to syslog = false
log to stderr = false
err to stderr = false
fsid = {{ ceph_cluster_fsid }} fsid = {{ ceph_cluster_fsid }}
{% if orchestration_engine != 'KUBERNETES' %} {% if orchestration_engine != 'KUBERNETES' %}
...@@ -26,6 +28,7 @@ setuser match path = /var/lib/ceph/$type/$cluster-$id ...@@ -26,6 +28,7 @@ setuser match path = /var/lib/ceph/$type/$cluster-$id
# NOTE(SamYaple): The monitor files have been known to grow very large. The # NOTE(SamYaple): The monitor files have been known to grow very large. The
# only fix for that is to compact the files. # only fix for that is to compact the files.
mon compact on start = true mon compact on start = true
mon cluster log file = /var/log/kolla/ceph/$cluster.log
{% if service_name is defined and service_name == 'ceph-rgw' %} {% if service_name is defined and service_name == 'ceph-rgw' %}
[client.radosgw.gateway] [client.radosgw.gateway]
......
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