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

[BUG]enable-all-logs failed for failed to update param #4951

Closed
ahjing99 opened this issue Sep 1, 2023 · 0 comments · Fixed by #4965
Closed

[BUG]enable-all-logs failed for failed to update param #4951

ahjing99 opened this issue Sep 1, 2023 · 0 comments · Fixed by #4965
Assignees
Labels
bug kind/bug Something isn't working
Milestone

Comments

@ahjing99
Copy link
Collaborator

ahjing99 commented Sep 1, 2023

➜ ~ 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])?')]]
➜  ~
@ahjing99 ahjing99 added the kind/bug Something isn't working label Sep 1, 2023
@ahjing99 ahjing99 added this to the Release 0.7.0 milestone Sep 1, 2023
@sophon-zt sophon-zt linked a pull request Sep 1, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants