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

The "oc adm ocp-certificates regenerate-machine-config-server-serving-cert" command is failing

XMLWordPrintable

    • Important
    • None
    • 3
    • MCO Sprint 261, MCO Sprint 262
    • 2
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Release Note Not Required
    • In Progress

      Description of problem:

      The "oc adm ocp-certificates regenerate-machine-config-server-serving-cert" is failing
      
          

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

      4.18.0-0.nightly-2024-10-10-195326
      
      
      $ oc  version
      Client Version: 4.18.0-202410080912.p0.g3692450.assembly.stream-3692450
      Kustomize Version: v5.4.2
      Server Version: 4.18.0-0.nightly-2024-10-10-195326
      Kubernetes Version: v1.31.1
      
          

      How reproducible:

      Always
          

      Steps to Reproduce:

          1. Execute the "oc adm ocp-certificates regenerate-machine-config-server-serving-cert" with the right oc binary for the tested version
          2.
          3.
          

      Actual results:

      
      The "oc adm ocp-certificates regenerate-machine-config-server-serving-cert"  command fails with this error:
      
      $ oc adm ocp-certificates regenerate-machine-config-server-serving-cert
      W1011 10:13:41.951040 2699876 recorder_logging.go:53] &Event{ObjectMeta:{dummy.17fd5e657c5748ca  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:SecretUpdateFailed,Message:Failed to update Secret/: Secret "machine-config-server-tls" is invalid: type: Invalid value: "kubernetes.io/tls": field is immutable,Source:EventSource{Component:,Host:,},FirstTimestamp:2024-10-11 10:13:41.950941386 +0000 UTC m=+0.377199185,LastTimestamp:2024-10-11 10:13:41.950941386 +0000 UTC m=+0.377199185,Count:1,Type:Warning,EventTime:0001-01-01 00:00:00 +0000 UTC,Series:nil,Action:,Related:nil,ReportingController:,ReportingInstance:,}
      The Secret "machine-config-server-tls" is invalid: type: Invalid value: "kubernetes.io/tls": field is immutable
      
      
          

      Expected results:

      The command should be executed without errors
          

      Additional info:

          

              djoshy David Joshy
              sregidor@redhat.com Sergio Regidor de la Rosa
              Sergio Regidor de la Rosa Sergio Regidor de la Rosa
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: