From b45c02ff0b5509123ef768e692afb9ae9b48b487 Mon Sep 17 00:00:00 2001 From: Chinasubbareddy M Date: Wed, 17 Oct 2018 10:27:42 -0500 Subject: [PATCH] Ceph: uplift ceph charts This is to uplift ceph charts which will Initialize OSDs with a crush weight of 0 to prevent automatic rebalancing the osds joing the cluster This also updates the ceph-osd and ceph-mon versions to include the update to remove the fluentbit sidecar containers. This also updates fluentd's configuration to target the ceph logs mounted via the new hostpath Change-Id: Id912291d47850cd56fc68abaf0e3edadd9a5e31f --- .../osh-infra-logging/fluent-logging.yaml | 74 +++++++++++++++++- .../openstack-tenant-ceph/ceph-client.yaml | 1 + .../osh/openstack-tenant-ceph/ceph-mon.yaml | 8 -- .../osh/openstack-tenant-ceph/ceph-osd.yaml | 8 -- .../charts/ucp/ceph/ceph-client-update.yaml | 1 + .../software/charts/ucp/ceph/ceph-client.yaml | 1 + global/software/charts/ucp/ceph/ceph-mon.yaml | 8 -- global/software/charts/ucp/ceph/ceph-osd.yaml | 8 -- .../charts/ucp/ceph/chart-group-update.yaml | 2 +- global/software/config/versions.yaml | 24 +++--- .../charts/ucp/ceph/ceph-osd-update.yaml | 75 ------------------- .../software/charts/ucp/ceph/ceph-osd.yaml | 4 - 12 files changed, 89 insertions(+), 125 deletions(-) delete mode 100644 site/airship-seaworthy/software/charts/ucp/ceph/ceph-osd-update.yaml diff --git a/global/software/charts/osh-infra/osh-infra-logging/fluent-logging.yaml b/global/software/charts/osh-infra/osh-infra-logging/fluent-logging.yaml index 28f9dd633..d57c79c80 100644 --- a/global/software/charts/osh-infra/osh-infra-logging/fluent-logging.yaml +++ b/global/software/charts/osh-infra/osh-infra-logging/fluent-logging.yaml @@ -117,6 +117,50 @@ data: Daemon: Off Log_Level: info Parsers_File: parsers.conf + - ceph_cluster_logs: + header: input + Name: tail + Tag: ceph.cluster.* + Path: /var/log/ceph/ceph.log + DB: /var/log/ceph.db + Parsers: syslog + Mem_Buf_Limit: 5MB + DB.Sync: Normal + Buffer_Chunk_Size: 1M + Buffer_Max_Size: 1M + - ceph_audit_logs: + header: input + Name: tail + Tag: ceph.audit.* + Path: /var/log/ceph/ceph.audit.log + DB: /var/log/ceph.db + Parsers: syslog + Mem_Buf_Limit: 5MB + DB.Sync: Normal + Buffer_Chunk_Size: 1M + Buffer_Max_Size: 1M + - ceph_mon_logs: + header: input + Name: tail + Tag: ceph.mon.* + Path: /var/log/ceph/ceph-mon**.log + DB: /var/log/ceph.db + Parsers: syslog + Mem_Buf_Limit: 5MB + DB.Sync: Normal + Buffer_Chunk_Size: 1M + Buffer_Max_Size: 1M + - ceph_osd_logs: + header: input + Name: tail + Tag: ceph.osd.* + Path: /var/log/ceph/ceph-osd**.log + DB: /var/log/ceph.db + Parsers: syslog + Mem_Buf_Limit: 5MB + DB.Sync: Normal + Buffer_Chunk_Size: 1M + Buffer_Max_Size: 1M - containers_tail: header: input Name: tail @@ -150,6 +194,24 @@ data: type: forward port: "#{ENV['FLUENTD_PORT']}" bind: 0.0.0.0 + - ceph_elasticsearch: + header: match + type: elasticsearch + user: "#{ENV['ELASTICSEARCH_USERNAME']}" + password: "#{ENV['ELASTICSEARCH_PASSWORD']}" + expression: "ceph**" + include_tag_key: true + host: "#{ENV['ELASTICSEARCH_HOST']}" + port: "#{ENV['ELASTICSEARCH_PORT']}" + logstash_format: true + logstash_prefix: ceph + buffer_chunk_limit: 10M + buffer_queue_limit: 32 + flush_interval: "20" + max_retry_wait: 300 + disable_retry_limit: "" + num_threads: 8 + type_name: ceph_logs - elasticsearch: header: match type: elasticsearch @@ -162,10 +224,20 @@ data: logstash_format: true buffer_chunk_limit: 10M buffer_queue_limit: 32 - flush_interval: 20s + flush_interval: "20" max_retry_wait: 300 disable_retry_limit: "" num_threads: 8 + parsers: + - syslog: + header: parser + Name: syslog + Format: regex + Regex: '^(?