Bug 1670647

Summary: CLO logs have validation failures after install through marketplace and creation of clusterlogging CRD
Product: OpenShift Container Platform Reporter: Mike Fiedler <mifiedle>
Component: LoggingAssignee: ewolinet
Status: CLOSED ERRATA QA Contact: Mike Fiedler <mifiedle>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.1.0CC: aos-bugs, ewolinet, rmeggins
Target Milestone: ---   
Target Release: 4.1.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-04 10:42:28 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:

Description Mike Fiedler 2019-01-30 02:16:43 UTC
Description of problem:

After installing cluster-logging through the marketplace, creation of clusterlogging CRDs results in a validation error in the CLO logs:

time="2019-01-29T20:51:53Z" level=error msg="error syncing key (openshift-logging/storageclassname): Unable to create or update logstore: Failure creating Elasticsearch CR: Elasticsearch.logging.openshift.io \"elasticsearch\" is invalid: []: Invalid value: map[string]interface {}{\"metadata\":map[string]interface {}{\"name\":\"elasticsearch\", \"namespace\":\"openshift-logging\", \"creationTimestamp\":\"2019-01-29T20:51:53Z\", \"ownerReferences\":[]interface {}{map[string]interface {}{\"apiVersion\":\"logging.openshift.io/v1alpha1\", \"kind\":\"ClusterLogging\", \"name\":\"storageclassname\", \"uid\":\"9994e1d5-2407-11e9-a060-06d58bf97baa\", \"controller\":true}}, \"generation\":1, \"uid\":\"b53ef32e-2407-11e9-a060-06d58bf97baa\"}, \"spec\":map[string]interface {}{\"managementState\":\"Managed\", \"nodeSpec\":map[string]interface {}{\"image\":\"quay.io/openshift/origin-logging-elasticsearch5:latest\", \"resources\":map[string]interface {}{}}, \"nodes\":[]interface {}{map[string]interface {}{\"nodeSpec\":map[string]interface {}{\"resources\":map[string]interface {}{}}, \"roles\":[]interface {}{\"client\", \"data\", \"master\"}, \"storage\":map[string]interface {}{\"size\":\"20G\"}, \"nodeCount\":3}}, \"redundancyPolicy\":\"SingleRedundancy\"}, \"status\":map[string]interface {}{\"shardAllocationEnabled\":\"\", \"clusterHealth\":\"\", \"conditions\":interface {}(nil), \"nodes\":interface {}(nil), \"pods\":interface {}(nil)}, \"apiVersion\":\"logging.openshift.io/v1alpha1\", \"kind\":\"Elasticsearch\"}: validation failure list:\nspec.nodes.roles in body must be of type object: \"array\""


Version-Release number of selected component (if applicable): OCP is 4.0.0-0.nightly-2019-01-29-025207.   Logging is latest via marketplace as of Jan 29


How reproducible: Always


Steps to Reproduce:
1. Install the logging operators from the marketplace
2. Create a clusterlogging resource in openshift-logging (hack/cr.yaml will have the issue)
3. oc logs on the cluster-logging-operator pod

Actual results:

Error as above

Comment 2 Mike Fiedler 2019-02-04 15:36:01 UTC
This still happens with the version of cluster-logging on the OperatorHub.  What has to happen to get a new version out there?

Comment 4 Mike Fiedler 2019-02-11 16:19:39 UTC
Verfified on 4.0.0-0.nightly-2019-02-11-045151

Comment 7 errata-xmlrpc 2019-06-04 10:42:28 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:0758