MySQL Forums
Forum List  »  MySQL & Kubernetes

Re: monitoring MySQL Operator for Kubernetes
Posted by: sujit agarwal
Date: April 04, 2023 03:59AM

I tried the same but getting below error:
Name: mycluster
Namespace: default
Labels: <none>
Annotations: kopf.zalando.org/on_innodbcluster_create:
{"started":"2023-04-04T09:54:10.617256","delayed":"2023-04-04T09:58:12.957950","purpose":"create","retries":4,"success":false,"failure":fa...
kopf.zalando.org/on_innodbcluster_field_instances.spec.i-DOtJmA:
{"started":"2023-04-04T09:54:10.617394","stopped":"2023-04-04T09:54:11.253258","purpose":"create","retries":1,"success":true,"failure":fal...
kopf.zalando.org/on_innodbcluster_field_instances.spec.instances:
{"started":"2023-04-04T09:54:10.617394","stopped":"2023-04-04T09:54:11.253258","purpose":"create","retries":1,"success":true,"failure":fal...
kopf.zalando.org/on_innodbcluster_field_router_instances-S6nhAg:
{"started":"2023-04-04T09:54:10.617423","stopped":"2023-04-04T09:54:11.392995","purpose":"create","retries":1,"success":true,"failure":fal...
kopf.zalando.org/on_innodbcluster_field_router_instances.spec.router.instances:
{"started":"2023-04-04T09:54:10.617423","stopped":"2023-04-04T09:54:11.392995","purpose":"create","retries":1,"success":true,"failure":fal...
kopf.zalando.org/on_innodbcluster_field_tls_use_self_sig-g3TP3g:
{"started":"2023-04-04T09:54:10.617447","stopped":"2023-04-04T09:54:11.544224","purpose":"create","retries":1,"success":true,"failure":fal...
kopf.zalando.org/on_innodbcluster_field_tls_use_self_signed.spec.tlsUseSe-R2pXAA:
{"started":"2023-04-04T09:54:10.617447","stopped":"2023-04-04T09:54:11.544224","purpose":"create","retries":1,"success":true,"failure":fal...
API Version: mysql.oracle.com/v2
Kind: InnoDBCluster
Metadata:
Creation Timestamp: 2023-04-04T09:54:10Z
Finalizers:
kopf.zalando.org/KopfFinalizerMarker
Generation: 2
Managed Fields:
API Version: mysql.oracle.com/v2
Fields Type: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.:
f:kubectl.kubernetes.io/last-applied-configuration:
f:spec:
.:
f:baseServerId:
f:instances:
f:podSpec:
.:
f:containers:
f:image:
f:name:
f:ports:
f:value:
f:volumeMounts:
f:router:
.:
f:instances:
f:secretName:
f:tlsUseSelfSigned:
Manager: kubectl-client-side-apply
Operation: Update
Time: 2023-04-04T09:56:43Z
API Version: mysql.oracle.com/v2
Fields Type: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
f:kopf.zalando.org/on_innodbcluster_create:
f:kopf.zalando.org/on_innodbcluster_field_instances.spec.i-DOtJmA:
f:kopf.zalando.org/on_innodbcluster_field_instances.spec.instances:
f:kopf.zalando.org/on_innodbcluster_field_router_instances-S6nhAg:
f:kopf.zalando.org/on_innodbcluster_field_router_instances.spec.router.instances:
f:kopf.zalando.org/on_innodbcluster_field_tls_use_self_sig-g3TP3g:
f:kopf.zalando.org/on_innodbcluster_field_tls_use_self_signed.spec.tlsUseSe-R2pXAA:
f:finalizers:
.:
v:"kopf.zalando.org/KopfFinalizerMarker":
Manager: kopf
Operation: Update
Time: 2023-04-04T09:57:12Z
API Version: mysql.oracle.com/v2
Fields Type: FieldsV1
fieldsV1:
f:status:
.:
f:kopf:
.:
f:progress:
.:
f:on_innodbcluster_create:
.:
f:delayed:
f:failure:
f:message:
f:purpose:
f:retries:
f:started:
f:success:
f:on_innodbcluster_field_instances/spec.instances:
.:
f:failure:
f:purpose:
f:retries:
f:started:
f:stopped:
f:success:
f:on_innodbcluster_field_router_instances/spec.router.instances:
.:
f:failure:
f:purpose:
f:retries:
f:started:
f:stopped:
f:success:
f:on_innodbcluster_field_tls_use_self_signed/spec.tlsUseSelfSigned:
.:
f:failure:
f:purpose:
f:retries:
f:started:
f:stopped:
f:success:
Manager: kopf
Operation: Update
Subresource: status
Time: 2023-04-04T09:57:12Z
Resource Version: 4653
UID: b16cbb5b-be44-43fc-b13d-af05a528575f
Spec:
Base Server Id: 1000
Instances: 3
Pod Spec:
Containers:
Env: <nil>
Name: DATA_SOURCE_NAME
Image: prom/prometheus:v2.33.4
Name: metrics
Ports:
Metrics: 9104
Value: root:password@127.0.0.1/
Volume Mounts:
Mount Path: /var/run/mysqld
Name: rundir
Router:
Instances: 1
Secret Name: mysql-root-user
Tls Use Self Signed: true
Status:
Kopf:
Progress:
on_innodbcluster_create:
Delayed: 2023-04-04T09:58:12.957950
Failure: false
Message: Object in list must have name
Purpose: create
Retries: 4
Started: 2023-04-04T09:54:10.617256
Success: false
on_innodbcluster_field_instances/spec.instances:
Failure: false
Purpose: create
Retries: 1
Started: 2023-04-04T09:54:10.617394
Stopped: 2023-04-04T09:54:11.253258
Success: true
on_innodbcluster_field_router_instances/spec.router.instances:
Failure: false
Purpose: create
Retries: 1
Started: 2023-04-04T09:54:10.617423
Stopped: 2023-04-04T09:54:11.392995
Success: true
on_innodbcluster_field_tls_use_self_signed/spec.tlsUseSelfSigned:
Failure: false
Purpose: create
Retries: 1
Started: 2023-04-04T09:54:10.617447
Stopped: 2023-04-04T09:54:11.544224
Success: true
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning CreateResourceFailed 3m19s operator Object in list must have name
Warning CreateResourceFailed 78s operator Object in list must have name
Warning CreateResourceFailed 17s operator Object in list must have name
Warning CreateResourceFailed 2m18s operator Object in list must have name
Normal Logging 3m19s kopf Backup profiles: 0
Normal Logging 3m19s kopf Server Image: mysql/mysql-server:8.0.32 / Always
Normal Logging 3m19s kopf Router Image: mysql/mysql-router:8.0.32 / Always
Normal Logging 3m19s kopf Server.TLS.useSelfSigned: True
Normal Logging 3m19s kopf Router instances: 1
Normal Logging 3m19s kopf Initializing InnoDB Cluster name=mycluster namespace=default on K8s 1.26
Normal Logging 3m19s kopf Sidecar Image: mysql/mysql-operator:8.0.32-2.0.8 / Always
Normal Logging 3m19s kopf Base ServerId: 1000
Normal Logging 3m19s kopf ImageRepository: mysql
Normal Logging 3m19s kopf InnoDB Cluster default/mycluster Edition(Edition.community) Edition
Normal Logging 3m19s kopf ImagePullPolicy: ImagePullPolicy.Always
Normal Logging 3m19s kopf Backup schedules: 0
Error Logging 3m19s kopf Handler 'on_innodbcluster_create' failed with an exception. Will retry.
Traceback (most recent call last):
File "/usr/lib/mysqlsh/python-packages/kopf/_core/actions/execution.py", line 279, in execute_handler_once
result = await invoke_handler(
File "/usr/lib/mysqlsh/python-packages/kopf/_core/actions/execution.py", line 374, in invoke_handler
result = await invocation.invoke(
File "/usr/lib/mysqlsh/python-packages/kopf/_core/actions/invocation.py", line 139, in invoke
await asyncio.shiel...tor_cluster.py", line 165, in on_innodbcluster_create
statefulset = cluster_objects.prepare_cluster_stateful_set(icspec)
File "/usr/lib/mysqlsh/python-packages/mysqloperator/controller/innodbcluster/cluster_objects.py", line 495, in prepare_cluster_stateful_set
utils.merge_patch_object(statefulset["spec"]["template"]["spec"],
File "/usr/lib/mysqlsh/python-packages/mysqloperator/controller/utils.py", line 112, in merge_patch_object
raise ValueError(
ValueError: Object in list must have name
Normal Logging 3m19s kopf Handler 'on_innodbcluster_field_instances/spec.instances' succeeded.
Normal Logging 3m18s kopf Handler 'on_innodbcluster_field_tls_use_self_signed/spec.tlsUseSelfSigned' succeeded.
Normal Logging 3m18s kopf on_innodbcluster_field_tls_use_self_signed
Normal Logging 3m19s kopf Handler 'on_innodbcluster_field_router_instances/spec.router.instances' succeeded.
Normal Logging 2m19s kopf Backup profiles: 0
Normal Logging 2m19s kopf Router instances: 1
Normal Logging 2m19s kopf Server Image: mysql/mysql-server:8.0.32 / Always
Normal Logging 2m19s kopf Sidecar Image: mysql/mysql-operator:8.0.32-2.0.8 / Always
Normal Logging 2m18s kopf Server.TLS.useSelfSigned: True
Normal Logging 2m19s kopf ImageRepository: mysql
Normal Logging 2m19s kopf Base ServerId: 1000
Normal Logging 2m19s kopf ImagePullPolicy: ImagePullPolicy.Always
Normal Logging 2m18s kopf Backup schedules: 0
Normal Logging 2m19s kopf InnoDB Cluster default/mycluster Edition(Edition.community) Edition
Normal Logging 2m19s kopf Initializing InnoDB Cluster name=mycluster namespace=default on K8s 1.26
Normal Logging 2m19s kopf Router Image: mysql/mysql-router:8.0.32 / Always
Error Logging 2m18s kopf Handler 'on_innodbcluster_create' failed with an exception. Will retry.
Traceback (most recent call last):
File "/usr/lib/mysqlsh/python-packages/kopf/_core/actions/execution.py", line 279, in execute_handler_once
result = await invoke_handler(
File "/usr/lib/mysqlsh/python-packages/kopf/_core/actions/execution.py", line 374, in invoke_handler
result = await invocation.invoke(
File "/usr/lib/mysqlsh/python-packages/kopf/_core/actions/invocation.py", line 139, in invoke
await asyncio.shiel...tor_cluster.py", line 165, in on_innodbcluster_create
statefulset = cluster_objects.prepare_cluster_stateful_set(icspec)
File "/usr/lib/mysqlsh/python-packages/mysqloperator/controller/innodbcluster/cluster_objects.py", line 495, in prepare_cluster_stateful_set
utils.merge_patch_object(statefulset["spec"]["template"]["spec"],
File "/usr/lib/mysqlsh/python-packages/mysqloperator/controller/utils.py", line 112, in merge_patch_object
raise ValueError(
ValueError: Object in list must have name
Normal Logging 78s kopf Sidecar Image: mysql/mysql-operator:8.0.32-2.0.8 / Always
Normal Logging 78s kopf Router Image: mysql/mysql-router:8.0.32 / Always
Normal Logging 78s kopf Server Image: mysql/mysql-server:8.0.32 / Always
Normal Logging 78s kopf Initializing InnoDB Cluster name=mycluster namespace=default on K8s 1.26
Normal Logging 78s kopf InnoDB Cluster default/mycluster Edition(Edition.community) Edition
Normal Logging 78s kopf ImageRepository: mysql
Normal Logging 78s kopf ImagePullPolicy: ImagePullPolicy.Always
Normal Logging 78s kopf Base ServerId: 1000
Normal Logging 78s kopf Server.TLS.useSelfSigned: True
Error Logging 78s kopf Handler 'on_innodbcluster_create' failed with an exception. Will retry.
Traceback (most recent call last):
File "/usr/lib/mysqlsh/python-packages/kopf/_core/actions/execution.py", line 279, in execute_handler_once
result = await invoke_handler(
File "/usr/lib/mysqlsh/python-packages/kopf/_core/actions/execution.py", line 374, in invoke_handler
result = await invocation.invoke(
File "/usr/lib/mysqlsh/python-packages/kopf/_core/actions/invocation.py", line 139, in invoke
await asyncio.shiel...tor_cluster.py", line 165, in on_innodbcluster_create
statefulset = cluster_objects.prepare_cluster_stateful_set(icspec)
File "/usr/lib/mysqlsh/python-packages/mysqloperator/controller/innodbcluster/cluster_objects.py", line 495, in prepare_cluster_stateful_set
utils.merge_patch_object(statefulset["spec"]["template"]["spec"],
File "/usr/lib/mysqlsh/python-packages/mysqloperator/controller/utils.py", line 112, in merge_patch_object
raise ValueError(
ValueError: Object in list must have name
Normal Logging 78s kopf Backup schedules: 0
Normal Logging 78s kopf Router instances: 1
Normal Logging 78s kopf Backup profiles: 0
Normal Logging 17s kopf Backup profiles: 0
Normal Logging 17s kopf InnoDB Cluster default/mycluster Edition(Edition.community) Edition
Normal Logging 17s kopf Initializing InnoDB Cluster name=mycluster namespace=default on K8s 1.26
Normal Logging 17s kopf Base ServerId: 1000
Error Logging 17s kopf Handler 'on_innodbcluster_create' failed with an exception. Will retry.
Traceback (most recent call last):
File "/usr/lib/mysqlsh/python-packages/kopf/_core/actions/execution.py", line 279, in execute_handler_once
result = await invoke_handler(
File "/usr/lib/mysqlsh/python-packages/kopf/_core/actions/execution.py", line 374, in invoke_handler
result = await invocation.invoke(
File "/usr/lib/mysqlsh/python-packages/kopf/_core/actions/invocation.py", line 139, in invoke
await asyncio.shiel...tor_cluster.py", line 165, in on_innodbcluster_create
statefulset = cluster_objects.prepare_cluster_stateful_set(icspec)
File "/usr/lib/mysqlsh/python-packages/mysqloperator/controller/innodbcluster/cluster_objects.py", line 495, in prepare_cluster_stateful_set
utils.merge_patch_object(statefulset["spec"]["template"]["spec"],
File "/usr/lib/mysqlsh/python-packages/mysqloperator/controller/utils.py", line 112, in merge_patch_object
raise ValueError(
ValueError: Object in list must have name
Normal Logging 17s kopf Backup schedules: 0
Normal Logging 17s kopf Router Image: mysql/mysql-router:8.0.32 / Always
Normal Logging 17s kopf ImagePullPolicy: ImagePullPolicy.Always
Normal Logging 17s kopf Server Image: mysql/mysql-server:8.0.32 / Always
Normal Logging 17s kopf Sidecar Image: mysql/mysql-operator:8.0.32-2.0.8 / Always
Normal Logging 17s kopf Server.TLS.useSelfSigned: True
Normal Logging 17s kopf Router instances: 1

Options: ReplyQuote


Subject
Written By
Posted
Re: monitoring MySQL Operator for Kubernetes
April 04, 2023 03:59AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.