You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
➜ ~ kbcli version
Kubernetes: v1.27.3-gke.100
KubeBlocks: 0.7.0-alpha.4
kbcli: 0.7.0-alpha.4
➜ ~ kbcli cluster create mysqltest --termination-policy=DoNotTerminate --monitoring-interval=0 --enable-all-logs=false --cluster-definition=apecloud-mysql --set cpu=100m,memory=0.5Gi,replicas=1,storage=1Gi --namespace default
Info: --cluster-version is not specified, ClusterVersion ac-mysql-8.0.30 is applied by default
Cluster mysqltest created
➜ ~ kbcli cluster update mysqltest --enable-all-logs=true --namespace default
cluster.apps.kubeblocks.io/mysqltest updated
➜ ~ k get ops
NAME TYPE CLUSTER STATUS PROGRESS AGE
logs-reconfigure-5ed9ef0b-6d06-4174-8fe3-5c50c74f5a32 Reconfiguring mysqltest Creating -/- 3m29s
➜ ~ k describe ops logs-reconfigure-5ed9ef0b-6d06-4174-8fe3-5c50c74f5a32
Name: logs-reconfigure-5ed9ef0b-6d06-4174-8fe3-5c50c74f5a32
Namespace: default
Labels: app.kubernetes.io/instance=mysqltest
ops.kubeblocks.io/ops-type=Reconfiguring
Annotations: <none>
API Version: apps.kubeblocks.io/v1alpha1
Kind: OpsRequest
Metadata:
Creation Timestamp: 2023-09-01T03:17:03Z
Finalizers:
opsrequest.kubeblocks.io/finalizer
Generation: 1
Managed Fields:
API Version: apps.kubeblocks.io/v1alpha1
Fields Type: FieldsV1
fieldsV1:
f:spec:
.:
f:clusterRef:
f:reconfigure:
.:
f:componentName:
f:configurations:
.:
k:{"name":"mysql-consensusset-config"}:
.:
f:keys:
.:
k:{"key":"my.cnf"}:
.:
f:key:
f:parameters:
f:name:
f:ttlSecondsBeforeAbort:
f:type:
Manager: kbcli
Operation: Update
Time: 2023-09-01T03:17:03Z
API Version: apps.kubeblocks.io/v1alpha1
Fields Type: FieldsV1
fieldsV1:
f:metadata:
f:finalizers:
.:
v:"opsrequest.kubeblocks.io/finalizer":
f:labels:
.:
f:app.kubernetes.io/instance:
f:ops.kubeblocks.io/ops-type:
f:ownerReferences:
.:
k:{"uid":"99e8336e-cd49-4e0b-9f3a-c554fd6166f5"}:
Manager: manager
Operation: Update
Time: 2023-09-01T03:17:03Z
API Version: apps.kubeblocks.io/v1alpha1
Fields Type: FieldsV1
fieldsV1:
f:status:
.:
f:conditions:
.:
k:{"type":"Progressing"}:
.:
f:lastTransitionTime:
f:message:
f:reason:
f:status:
f:type:
k:{"type":"Reconfigure"}:
.:
f:lastTransitionTime:
f:message:
f:reason:
f:status:
f:type:
k:{"type":"Validated"}:
.:
f:lastTransitionTime:
f:message:
f:reason:
f:status:
f:type:
f:phase:
f:progress:
f:startTimestamp:
Manager: manager
Operation: Update
Subresource: status
Time: 2023-09-01T03:17:03Z
Owner References:
API Version: apps.kubeblocks.io/v1alpha1
Kind: Cluster
Name: mysqltest
UID: 99e8336e-cd49-4e0b-9f3a-c554fd6166f5
Resource Version: 712979
UID: 059fabf1-dd7e-47f3-934c-4eb62e97a235
Spec:
Cluster Ref: mysqltest
Reconfigure:
Component Name: mysql
Configurations:
Keys:
Key: my.cnf
Parameters:
Key: log_error_verbosity
Value: 2
Key: log_output
Value: FILE
Key: log_statements_unsafe_for_binlog
Value: OFF
Key: slow_query_log
Value: ON
Key: slow_query_log_file
Value: /data/mysql/log/mysqld-slowquery.log
Key: log_error
Value: /data/mysql/log/mysqld-error.log
Key: long_query_time
Value: 5
Key: general_log
Value: ON
Key: general_log_file
Value: /data/mysql/log/mysqld.log
Name: mysql-consensusset-config
Ttl Seconds Before Abort: 0
Type: Reconfiguring
Status:
Conditions:
Last Transition Time: 2023-09-01T03:17:03Z
Message: Start to process the OpsRequest: logs-reconfigure-5ed9ef0b-6d06-4174-8fe3-5c50c74f5a32 in Cluster: mysqltest
Reason: OpsRequestProgressingStarted
Status: True
Type: Progressing
Last Transition Time: 2023-09-01T03:17:03Z
Message: OpsRequest: logs-reconfigure-5ed9ef0b-6d06-4174-8fe3-5c50c74f5a32 is validated
Reason: ValidateOpsRequestPassed
Status: True
Type: Validated
Last Transition Time: 2023-09-01T03:17:03Z
Message: Start to reconfigure in Cluster: mysqltest, Component: mysql
Reason: ReconfigureStarted
Status: True
Type: Reconfigure
Phase: Creating
Progress: -/-
Start Timestamp: 2023-09-01T03:17:03Z
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal OpsRequestProgressingStarted 98s ops-request-controller Start to process the OpsRequest: logs-reconfigure-5ed9ef0b-6d06-4174-8fe3-5c50c74f5a32 in Cluster: mysqltest
Normal ValidateOpsRequestPassed 98s ops-request-controller OpsRequest: logs-reconfigure-5ed9ef0b-6d06-4174-8fe3-5c50c74f5a32 is validated
Normal ReconfigureStarted 98s ops-request-controller Start to reconfigure in Cluster: mysqltest, Component: mysql
Warning DoActionFailed 98s ops-request-controller Failed to process the operation of OpsRequest: failed to update param!: [OpsRequest.apps.kubeblocks.io "logs-reconfigure-5ed9ef0b-6d06-4174-8fe3-5c50c74f5a32" is invalid: [metadata.labels: Invalid value: "/data/mysql/log/mysqld-slowquery.log": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?'), metadata.labels: Invalid value: "/data/mysql/log/mysqld-error.log": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?'), metadata.labels: Invalid value: "/data/mysql/log/mysqld.log": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')]]
Warning DoActionFailed 97s (x3 over 98s) ops-request-controller Failed to process the operation of OpsRequest: failed to update param!: [OpsRequest.apps.kubeblocks.io "logs-reconfigure-5ed9ef0b-6d06-4174-8fe3-5c50c74f5a32" is invalid: [metadata.labels: Invalid value: "/data/mysql/log/mysqld-slowquery.log": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?'), metadata.labels: Invalid value: "/data/mysql/log/mysqld.log": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?'), metadata.labels: Invalid value: "/data/mysql/log/mysqld-error.log": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')]]
Warning DoActionFailed 97s (x2 over 97s) ops-request-controller Failed to process the operation of OpsRequest: failed to update param!: [OpsRequest.apps.kubeblocks.io "logs-reconfigure-5ed9ef0b-6d06-4174-8fe3-5c50c74f5a32" is invalid: [metadata.labels: Invalid value: "/data/mysql/log/mysqld.log": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?'), metadata.labels: Invalid value: "/data/mysql/log/mysqld-error.log": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?'), metadata.labels: Invalid value: "/data/mysql/log/mysqld-slowquery.log": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')]]
Warning DoActionFailed 93s (x2 over 96s) ops-request-controller Failed to process the operation of OpsRequest: failed to update param!: [OpsRequest.apps.kubeblocks.io "logs-reconfigure-5ed9ef0b-6d06-4174-8fe3-5c50c74f5a32" is invalid: [metadata.labels: Invalid value: "/data/mysql/log/mysqld-error.log": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?'), metadata.labels: Invalid value: "/data/mysql/log/mysqld.log": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?'), metadata.labels: Invalid value: "/data/mysql/log/mysqld-slowquery.log": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')]]
Warning DoActionFailed 58s (x5 over 97s) ops-request-controller Failed to process the operation of OpsRequest: failed to update param!: [OpsRequest.apps.kubeblocks.io "logs-reconfigure-5ed9ef0b-6d06-4174-8fe3-5c50c74f5a32" is invalid: [metadata.labels: Invalid value: "/data/mysql/log/mysqld-error.log": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?'), metadata.labels: Invalid value: "/data/mysql/log/mysqld-slowquery.log": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?'), metadata.labels: Invalid value: "/data/mysql/log/mysqld.log": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')]]
Warning DoActionFailed 57s (x3 over 97s) ops-request-controller Failed to process the operation of OpsRequest: failed to update param!: [OpsRequest.apps.kubeblocks.io "logs-reconfigure-5ed9ef0b-6d06-4174-8fe3-5c50c74f5a32" is invalid: [metadata.labels: Invalid value: "/data/mysql/log/mysqld.log": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?'), metadata.labels: Invalid value: "/data/mysql/log/mysqld-slowquery.log": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?'), metadata.labels: Invalid value: "/data/mysql/log/mysqld-error.log": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')]]
➜ ~
The text was updated successfully, but these errors were encountered:
➜ ~ kbcli version
Kubernetes: v1.27.3-gke.100
KubeBlocks: 0.7.0-alpha.4
kbcli: 0.7.0-alpha.4
The text was updated successfully, but these errors were encountered: