Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-21871

Should optimize the output for command `oc adm ocp-certificates regenerate-machine-config-server-serving-cert`

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Normal Normal
    • 4.15.0
    • 4.15.0
    • oc
    • None
    • Moderate
    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      when run command  `oc adm ocp-certificates regenerate-machine-config-server-serving-cert` {}will print lots of message with none meaning.

      Version-Release number of selected component (if applicable):

      4.15

      How reproducible:

      100%

      Steps to Reproduce:

      1. Run command `oc adm ocp-certificates regenerate-machine-config-server-serving-cert`
      2.
      3.
      

      Actual results:

      oc adm ocp-certificates regenerate-machine-config-server-serving-cert
      I1018 17:18:09.144211  987477 recorder_logging.go:44] &Event{ObjectMeta:{dummy.178f2905bb874359  dummy    0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},InvolvedObject:ObjectReference{Kind:Pod,Namespace:dummy,Name:dummy,UID:,APIVersion:v1,ResourceVersion:,FieldPath:,},Reason:SignerUpdateRequired,Message:"machine-config-server-ca" in "openshift-machine-config-operator" requires a new signing cert/key pair: missing notAfter,Source:EventSource{Component:,Host:,},FirstTimestamp:2023-10-18 17:18:09.139745625 +0800 CST m=+2.912880356,LastTimestamp:2023-10-18 17:18:09.139745625 +0800 CST m=+2.912880356,Count:1,Type:Normal,EventTime:0001-01-01 00:00:00 +0000 UTC,Series:nil,Action:,Related:nil,ReportingController:,ReportingInstance:,}
      I1018 17:18:10.246503  987477 recorder_logging.go:44] &Event{ObjectMeta:{dummy.178f2905fd7dbee8  dummy    0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},InvolvedObject:ObjectReference{Kind:Pod,Namespace:dummy,Name:dummy,UID:,APIVersion:v1,ResourceVersion:,FieldPath:,},Reason:SecretCreated,Message:Created Secret/machine-config-server-ca -n openshift-machine-config-operator because it was missing,Source:EventSource{Component:,Host:,},FirstTimestamp:2023-10-18 17:18:10.246418152 +0800 CST m=+4.019552855,LastTimestamp:2023-10-18 17:18:10.246418152 +0800 CST m=+4.019552855,Count:1,Type:Normal,EventTime:0001-01-01 00:00:00 +0000 UTC,Series:nil,Action:,Related:nil,ReportingController:,ReportingInstance:,}
      I1018 17:18:10.247209  987477 recorder_logging.go:44] &Event{ObjectMeta:{dummy.178f2905fd892650  dummy    0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},InvolvedObject:ObjectReference{Kind:Pod,Namespace:dummy,Name:dummy,UID:,APIVersion:v1,ResourceVersion:,FieldPath:,},Reason:CABundleUpdateRequired,Message:"machine-config-server-ca" in "openshift-machine-config-operator" requires a new cert,Source:EventSource{Component:,Host:,},FirstTimestamp:2023-10-18 17:18:10.24716552 +0800 CST m=+4.020300221,LastTimestamp:2023-10-18 17:18:10.24716552 +0800 CST m=+4.020300221,Count:1,Type:Normal,EventTime:0001-01-01 00:00:00 +0000 UTC,Series:nil,Action:,Related:nil,ReportingController:,ReportingInstance:,}
      I1018 17:18:10.957636  987477 recorder_logging.go:44] &Event{ObjectMeta:{dummy.178f290627e0ed70  dummy    0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},InvolvedObject:ObjectReference{Kind:Pod,Namespace:dummy,Name:dummy,UID:,APIVersion:v1,ResourceVersion:,FieldPath:,},Reason:ConfigMapCreated,Message:Created ConfigMap/machine-config-server-ca -n openshift-machine-config-operator because it was missing,Source:EventSource{Component:,Host:,},FirstTimestamp:2023-10-18 17:18:10.9575612 +0800 CST m=+4.730695931,LastTimestamp:2023-10-18 17:18:10.9575612 +0800 CST m=+4.730695931,Count:1,Type:Normal,EventTime:0001-01-01 00:00:00 +0000 UTC,Series:nil,Action:,Related:nil,ReportingController:,ReportingInstance:,}
      I1018 17:18:10.957810  987477 recorder_logging.go:44] &Event{ObjectMeta:{dummy.178f290627e39000  dummy    0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},InvolvedObject:ObjectReference{Kind:Pod,Namespace:dummy,Name:dummy,UID:,APIVersion:v1,ResourceVersion:,FieldPath:,},Reason:TargetUpdateRequired,Message:"machine-config-server-tls" in "openshift-machine-config-operator" requires a new target cert/key pair: missing notAfter,Source:EventSource{Component:,Host:,},FirstTimestamp:2023-10-18 17:18:10.957733888 +0800 CST m=+4.730868621,LastTimestamp:2023-10-18 17:18:10.957733888 +0800 CST m=+4.730868621,Count:1,Type:Normal,EventTime:0001-01-01 00:00:00 +0000 UTC,Series:nil,Action:,Related:nil,ReportingController:,ReportingInstance:,}
      I1018 17:18:11.896719  987477 recorder_logging.go:44] &Event{ObjectMeta:{dummy.178f29065fd9b664  dummy    0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},InvolvedObject:ObjectReference{Kind:Pod,Namespace:dummy,Name:dummy,UID:,APIVersion:v1,ResourceVersion:,FieldPath:,},Reason:SecretDeleted,Message:Deleted Secret/machine-config-server-tls -n openshift-machine-config-operator,Source:EventSource{Component:,Host:,},FirstTimestamp:2023-10-18 17:18:11.896612452 +0800 CST m=+5.669747168,LastTimestamp:2023-10-18 17:18:11.896612452 +0800 CST m=+5.669747168,Count:1,Type:Normal,EventTime:0001-01-01 00:00:00 +0000 UTC,Series:nil,Action:,Related:nil,ReportingController:,ReportingInstance:,}
      I1018 17:18:12.260333  987477 recorder_logging.go:44] &Event{ObjectMeta:{dummy.178f290675865696  dummy    0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},InvolvedObject:ObjectReference{Kind:Pod,Namespace:dummy,Name:dummy,UID:,APIVersion:v1,ResourceVersion:,FieldPath:,},Reason:SecretCreated,Message:Created Secret/machine-config-server-tls -n openshift-machine-config-operator because it was missing,Source:EventSource{Component:,Host:,},FirstTimestamp:2023-10-18 17:18:12.26024719 +0800 CST m=+6.033381912,LastTimestamp:2023-10-18 17:18:12.26024719 +0800 CST m=+6.033381912,Count:1,Type:Normal,EventTime:0001-01-01 00:00:00 +0000 UTC,Series:nil,Action:,Related:nil,ReportingController:,ReportingInstance:,}
      Successfully rotated MCS CA + certs. Redeploying MCS and updating references.
      Successfully modified user-data secret master-user-data
      Successfully modified user-data secret worker-user-data

      Expected results:

      no panic

      Additional info:

      optimize the output

            jchaloup@redhat.com Jan Chaloupka
            yinzhou@redhat.com ying zhou
            ying zhou ying zhou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: