Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log messages appear to be interlaced #10

Closed
jcantrill opened this issue Nov 23, 2020 · 1 comment
Closed

Log messages appear to be interlaced #10

jcantrill opened this issue Nov 23, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@jcantrill
Copy link
Member

Operator shows which seems to be intermingled logs given the following code:

	if result != "" {
		updated = true
		log.Info("cert_generation output", "output", result)
	}

which happens before this attempt to update status.

{"cause":{"msg":"Operation cannot be fulfilled on clusterloggings.logging.openshift.io \"instance\": StorageError: invalid object, Code: 4, Key: /kubernetes.io/logging.openshift.io/clusterloggings/openshift-logging/instance, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: b9655a9c-bbaa-4cf5-9104-637cdb7fb10f, UID in object meta: "},"component":"cluster-logging-operator","error":{"ErrStatus":{"metadata":{},"status":"Failure","message":"servicemonitors.monitoring.coreos.com \"cluster-logging-operator-metrics\" already exists","reason":"AlreadyExists","details":{"name":"cluster-logging-operator-metrics","group":"monitoring.coreos.com","kind":"servicemonitors"},"code":409}},"go_arch":"amd64","go_os":"linux","go_version":"go1.15.0","message":"clusterlogging-controller error updating status","operator-sdk_version":"v0.18.1","operator_version":"0.0.1","output":"[INFO] Missing file or invalid type: /tmp/ocp-clo/ca.crt\n[INFO] Missing file or invalid type: /tmp/ocp-clo/ca.key\n[INFO] /tmp/ocp-clo/ca.crt expired or missing\n[INFO] generating signing request\n[INFO] Initializing missing file: /tmp/ocp-clo/ca.db\n[INFO] Initializing missing file: /tmp/ocp-clo/ca.serial.txt\n[INFO] REGENERATE_NEEDED=1\n[INFO] Missing file or invalid type: /tmp/ocp-clo/system.logging.fluentd.crt\n[INFO] /tmp/ocp-clo/system.logging.fluentd.crt is either expired or missing\n[INFO] Generating certs for system.logging.fluentd with ext: \n[INFO] generating cert config for component 'system.logging.fluentd' with ext: ''\n[INFO] signing request for component: system.logging.fluentd\n[INFO] Signing cert for component: system.logging.fluentd\n[INFO] REGENERATE_NEEDED=1\n[INFO] Missing file or invalid type: /tmp/ocp-clo/system.logging.kibana.crt\n[INFO] /tmp/ocp-clo/system.logging.kibana.crt is either expired or missing\n[INFO] Generating certs for system.logging.kibana with ext: \n[INFO] generating cert config for component 'system.logging.kibana' with ext: ''\n[INFO] signing request for component: system.logging.kibana\n[INFO] Signing cert for component: system.logging.kibana\n[INFO] REGENERATE_NEEDED=1\n[INFO] Missing file or invalid type: /tmp/ocp-clo/system.logging.curator.crt\n[INFO] /tmp/ocp-clo/system.logging.curator.crt is either expired or missing\n[INFO] Generating certs for system.logging.curator with ext: \n[INFO] generating cert config for component 'system.logging.curator' with ext: ''\n[INFO] signing request for component: system.logging.curator\n[INFO] Signing cert for component: system.logging.curator\n[INFO] REGENERATE_NEEDED=1\n[INFO] Missing file or invalid type: /tmp/ocp-clo/system.admin.crt\n[INFO] /tmp/ocp-clo/system.admin.crt is either expired or missing\n[INFO] Generating certs for system.admin with ext: \n[INFO] generating cert config for component 'system.admin' with ext: ''\n[INFO] signing request for component: system.admin\n[INFO] Signing cert for component: system.admin\n[INFO] REGENERATE_NEEDED=1\n[INFO] Missing file or invalid type: /tmp/ocp-clo/kibana-internal.crt\n[INFO] /tmp/ocp-clo/kibana-internal.crt is either expired or missing\n[INFO] Generating certs for kibana-internal with ext: DNS.1:kibana\n[INFO] generating cert config for component 'kibana-internal' with ext: 'DNS.1:kibana'\n[INFO] signing request for component: kibana-internal\n[INFO] Signing cert for component: kibana-internal\n[INFO] REGENERATE_NEEDED=1\n[INFO] Missing file or invalid type: /tmp/ocp-clo/elasticsearch.crt\n[INFO] /tmp/ocp-clo/elasticsearch.crt is either expired or missing\n[INFO] Generating certs for elasticsearch with ext: IP.1:127.0.0.1,IP.2:0:0:0:0:0:0:0:1,DNS.1:localhost,DNS.2:elasticsearch,DNS.3:elasticsearch.cluster.local,DNS.4:elasticsearch.openshift-logging.svc,DNS.5:elasticsearch.openshift-logging.svc.cluster.local,DNS.6:elasticsearch-cluster,DNS.7:elasticsearch-cluster.cluster.local,DNS.8:elasticsearch-cluster.openshift-logging.svc,DNS.9:elasticsearch-cluster.openshift-logging.svc.cluster.local,RID.1:1.2.3.4.5.5\n[INFO] generating cert config for component 'elasticsearch' with ext: 'IP.1:127.0.0.1,IP.2:0:0:0:0:0:0:0:1,DNS.1:localhost,DNS.2:elasticsearch,DNS.3:elasticsearch.cluster.local,DNS.4:elasticsearch.openshift-logging.svc,DNS.5:elasticsearch.openshift-logging.svc.cluster.local,DNS.6:elasticsearch-cluster,DNS.7:elasticsearch-cluster.cluster.local,DNS.8:elasticsearch-cluster.openshift-logging.svc,DNS.9:elasticsearch-cluster.openshift-logging.svc.cluster.local,RID.1:1.2.3.4.5.5'\n[INFO] signing request for component: elasticsearch\n[INFO] Signing cert for component: elasticsearch\n[INFO] REGENERATE_NEEDED=1\n[INFO] Missing file or invalid type: /tmp/ocp-clo/logging-es.crt\n[INFO] /tmp/ocp-clo/logging-es.crt is either expired or missing\n[INFO] Generating certs for logging-es with ext: IP.1:127.0.0.1,IP.2:0:0:0:0:0:0:0:1,DNS.1:localhost,DNS.2:elasticsearch,DNS.3:elasticsearch.cluster.local,DNS.4:elasticsearch.openshift-logging.svc,DNS.5:elasticsearch.openshift-logging.svc.cluster.local\n[INFO] generating cert config for component 'logging-es' with ext: 'IP.1:127.0.0.1,IP.2:0:0:0:0:0:0:0:1,DNS.1:localhost,DNS.2:elasticsearch,DNS.3:elasticsearch.cluster.local,DNS.4:elasticsearch.openshift-logging.svc,DNS.5:elasticsearch.openshift-logging.svc.cluster.local'\n[INFO] signing request for component: logging-es\n[INFO] Signing cert for component: logging-es\n[INFO] Generating kibana session secret\n","ts":"2020-11-23T20:32:24.74516809Z"}

cc @blockloop

@jcantrill jcantrill added the bug Something isn't working label Nov 23, 2020
@blockloop
Copy link
Contributor

Fixed in #13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants