Skip to content

Instantly share code, notes, and snippets.

View Frawless's full-sized avatar

Jakub Stejskal Frawless

  • Red Hat
View GitHub Profile
2021-09-02 18:49:22 WARN AbstractOperator:481 - Reconciliation #31(timer) Kafka(np-cluster-test/my-cluster-1114430302): Failed to reconcile
io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://172.30.0.1/apis/networking.k8s.io/v1/namespaces/np-cluster-test/networkpolicies/my-cluster-1114430302-network-policy-zookeeper. Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked. networkpolicies.networking.k8s.io "my-cluster-1114430302-network-policy-zookeeper" is forbidden: User "system:serviceaccount:np-cluster-test:strimzi-cluster-operator" cannot get resource "networkpolicies" in API group "networking.k8s.io" in the namespace "np-cluster-test".
at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:686) ~[io.fabric8.kubernetes-client-5.7.1.jar:?]
at io.fabric8.kubernetes.client.dsl.base.OperationSupport.assertResponseCode(OperationSupport.java:623) ~[io.fabric8.kubernetes-client-5.7
[
{
"fromVersion":"0.19.0",
"fromExamples":"strimzi-0.19.0",
"urlFrom":"https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.19.0/strimzi-0.19.0.zip",
"midVersion":"0.22.1",
"midVersionExamples":"strimzi-0.22.1",
"urlMidVersion":"https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.21.1/strimzi-0.22.1.zip",
"conversionTool": {
"conversionTool": "https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.22.1/api-conversion-0.22.1.zip",
# Build Docker image ...
docker build --build-arg JAVA_VERSION=11 --build-arg KAFKA_VERSION=2.7.0 --build-arg KAFKA_DIST_DIR=./tmp/2.7.0 --build-arg THIRD_PARTY_LIBS=2.7.x --build-arg strimzi_version=0.23.0-SNAPSHOT -t strimzi/kafka:latest ./
[+] Building 5.9s (24/24) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 3.46kB 0.0s
=> [internal] load .dockerignore
{
"kind":"Event",
"apiVersion":"audit.k8s.io/v1",
"level":"RequestResponse",
"auditID":"2807991c-1391-499e-9a0a-25726e1a7131",
"stage":"ResponseComplete",
"requestURI":"/apis/kafka.strimzi.io/v1beta2/namespaces/default/kafkaconnects/test-kafka-connect?fieldManager=kubectl-client-side-apply",
"verb":"patch",
"user":{
"username":"admin",
type: object
properties:
spec:
type: object
properties:
version:
type: string
description: The Kafka Connect version. Defaults to {DefaultKafkaVersion}.
Consult the user documentation to understand the process required
to upgrade or downgrade the version.
cat /tmp/sracka.yaml  0|1 ↵  kafkabridge-crd-it/api-jakub-47-strimzi-app-services-dev-net:6443/admin/kafkabridge-crd-it ⎈  14:21:02 
---
apiVersion: "kafka.strimzi.io/v1beta2"
kind: "KafkaBridge"
metadata:
name: "test-kafka-bridge"
spec:
replicas: 1
bootstrapServers: "my-cluster-kafka:9092"
enableMetrics: false
apiVersion: v1
items:
- apiVersion: kafka.strimzi.io/v1beta2
kind: Kafka
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"kafka.strimzi.io/v1beta1","kind":"Kafka","metadata":{"annotations":{},"labels":{"clients":"used"},"name":"my-cluster","namespace":"strimzi-main-cluster"},"spec":{"cruiseControl":{"metrics":{"lowercaseOutputName":true,"rules":[{"name":"kafka_cruisecontrol_$1_$2","pattern":"kafka.cruisecontrol\u003cname=(.+)\u003e\u003c\u003e(\\w+)","type":"GAUGE"}]}},"entityOperator":{"topicOperator":{},"userOperator":{}},"kafka":{"authorization":{"type":"simple"},"config":{"inter.broker.protocol.version":"2.7","log.message.format.version":"2.7","offsets.topic.replication.factor":3,"transaction.state.log.min.isr":2,"transaction.state.log.replication.factor":3},"listeners":[{"name":"plain","port":9092,"tls":false,"type":"internal"},{"authentication":{"type":"tls"},"name":"tls","port":9093,"tls":true,"type":"internal"},{"authentication":{"accessTo
2021-03-10 15:26:46 DEBUG AbstractOperator:393 - Reconciliation #139(timer) KafkaConnect(strimzi-main-cluster/my-connect): Lock lock::strimzi-main-cluster::KafkaConnect::my-connect acquired
2021-03-10 15:26:46 DEBUG CustomResource:157 - Calling CustomResource#setKind doesn't do anything because the Kind is computed and shouldn't be changed
2021-03-10 15:26:46 WARN AbstractOperator:97 - KafkaConnect resource my-connect in namespace strimzi-main-cluster: In API version kafka.strimzi.io/v1beta1 the metrics property at path spec.metrics has been deprecated, and should now be configured using spec.metricsConfig. This property is removed in API version v1beta2.
2021-03-10 15:26:46 WARN AbstractOperator:97 - KafkaConnect resource my-connect in namespace strimzi-main-cluster: In API version kafka.strimzi.io/v1beta1 the metrics property at path spec.metrics has been deprecated, and should now be configured using spec.metricsConfig. This property is removed in API version v1beta2.
2021-03-10 15:26:46 INFO AbstractOp
2021-03-08T13:58:31.239+0000] Using Serial
[2021-03-08T13:58:31.239+0000] Heap address: 0x0000000715600000, size: 3754 MB, Compressed Oops mode: Zero based, Oop shift amount: 3
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
2021-03-08 13:58:32 INFO KafkaProducerExample:32 - KafkaProducerConfig: KafkaProducerConfig{bootstrapServers='my-cluster-kafka-bootstrap:9092', topic='continuous-topic', delay=1000, messageCount=500, message='Hello-world', acks='all', headers='null', trustStorePassword='null', trustStorePath='null', keyStorePassword='null', keyStorePath='null', oauthClientId='null', oauthClientSecret='null', oauthAccessToken='null', oauthRefreshToken='null', oauthTokenEndpointUri='null', additionalConfig='delivery.timeout.ms=20000
request.timeout.ms=20000'}
18 [main] INFO org.apache.kafka.clients.producer.ProducerConfig - ProducerConfig values:
acks = -1
batch.size = 16384
bootstrap.servers = [my-cluster-kafka-bootstrap:9092]
buffer.memory = 33554432
2021-03-07 23:30:32 INFO KafkaProducerExample:69 - Sending messages "Hello-world - 116"
2021-03-07 23:30:33 INFO KafkaProducerExample:69 - Sending messages "Hello-world - 117"
145510 [kafka-producer-network-thread | producer-1] WARN org.apache.kafka.clients.NetworkClient - [Producer clientId=producer-1] Connection to node 2 (my-cluster-kafka-2.my-cluster-kafka-brokers.strimzi-downgrade-test.svc/172.17.0.12:9092) could not be established. Broker may not be available.
145615 [kafka-producer-network-thread | producer-1] WARN org.apache.kafka.clients.NetworkClient - [Producer clientId=producer-1] Connection to node 2 (my-cluster-kafka-2.my-cluster-kafka-brokers.strimzi-downgrade-test.svc/172.17.0.12:9092) could not be established. Broker may not be available.
145852 [kafka-producer-network-thread | producer-1] WARN org.apache.kafka.clients.NetworkClient - [Producer clientId=producer-1] Connection to node 2 (my-cluster-kafka-2.my-cluster-kafka-brokers.strimzi-downgrade-test.svc/172.17.0.12:9092) could not be es