Bug 1548463

Summary: .all alias not being updated with new indices after a certain date
Product: OpenShift Container Platform Reporter: Jeff Cantrill <jcantril>
Component: LoggingAssignee: Lukas Vlcek <lvlcek>
Status: CLOSED CURRENTRELEASE QA Contact: Anping Li <anli>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.6.1CC: anli, aos-bugs, dcaldwel, jcantril, jmalde, lvlcek, rmeggins, smunilla, vlaad
Target Milestone: ---   
Target Release: 3.6.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Aliasing only occurs when a user logs into Kibana. If the the openshift-elasticsearch-plugin is not functioning correctly then aliasing may not occur. Consequence: .all alias will not be associated with all indices Fix: Use Elasticsearch index templates to alias all newly created indices Result: All newly created indices will be aliased to .all
Story Points: ---
Clone Of: 1548038 Environment:
Last Closed: 2018-09-04 18:48:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1548038, 1577877    
Bug Blocks:    

Comment 5 Anping Li 2018-04-19 11:32:32 UTC
No all alias when index are created. the fix is not in v3.6

logging-fluentd/images/v3.6.173.0.113-4
FLUENTD_VERSION=0.12.39
DATA_VERSION=1.6.0
RUBY_VERSION=2.0


-->3. list aliases in first node --< 
oc exec -c elasticsearch logging-es-data-master-9wp33xpt-2-slw0j -- curl -s -XGET --cacert /etc/elasticsearch/secret/admin-ca --cert /etc/elasticsearch/secret/admin-cert --key /etc/elasticsearch/secret/admin-key https://localhost:9200/_aliases?pretty
{
  ".searchguard.logging-es-data-master-9wp33xpt" : {
    "aliases" : { }
  },
  "project.logging.a7738867-43ac-11e8-97b2-0e3a6548362c.2018.04.19" : {
    "aliases" : { }
  },
  ".kibana" : {
    "aliases" : { }
  },
  "project.test2.35fda589-43c4-11e8-b636-0e3a6548362c.2018.04.19" : {
    "aliases" : { }
  },
  "project.test.23222a2f-43bd-11e8-b636-0e3a6548362c.2018.04.19" : {
    "aliases" : { }
  }
}

-->3.1 list aliases in first node --< 
oc exec -c elasticsearch logging-es-ops-data-master-7sohmstl-2-0cnj7 -- curl -s -XGET --cacert /etc/elasticsearch/secret/admin-ca --cert /etc/elasticsearch/secret/admin-cert --key /etc/elasticsearch/secret/admin-key https://localhost:9200/_aliases?pretty
{
  ".kibana" : {
    "aliases" : { }
  },
  ".searchguard.logging-es-ops-data-master-7sohmstl" : {
    "aliases" : { }
  },
  ".operations.2018.04.19" : {
    "aliases" : { }
  }
}

Comment 7 Anping Li 2018-04-20 02:01:47 UTC
Status changed by errata, Move back.

Comment 14 Anping Li 2018-08-06 08:28:33 UTC
Works with logging-fluentd:v3.6.173.0.128