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

vsphere-cloud-credentials incorrect sync with new created vsphere-creds secret

XMLWordPrintable

    • No
    • AI-35, AI-36, AI-37, AI-39
    • 4
    • False
    • Hide

      None

      Show
      None

      Description of problem:
      Openshift cluster 4.14.0-rc.1 installed on vSphere platform using Assisted Installer SaaS
      Cluster installed successfully.
      I modify vSphere credentials in Openshift using the flow
      https://access.redhat.com/solutions/6677901

      After that create Storage class and PersistentVolumeClaim
      PVC stacked in Pending status

      After investigation found that Pods such as
      vmware-vsphere-csi-driver-controller
      and
      vmware-vsphere-csi-driver-node
      in CrashLoopBackOff

      Going to logs

      {"level":"error","time":"2023-09-22T17:47:09.377386418Z","caller":"vsphere/virtualcenter.go:600","msg":"failed to connect to VirtualCenter host: \"e2e-vcsa67.vcenter.e2e.bos.redhat.com\". Err: ServerFaultCode: Cannot complete login due to an incorrect user name or password.","TraceId":"7e8a79d5-97ab-4f97-a45e-52e4b78c6911","stacktrace":"sigs.k8s.io/vsphere-csi-driver/v3/pkg/common/cns-lib/vsphere.GetVirtualCenterInstance\n\t/go/src/github.com/kubernetes-sigs/vsphere-csi-driver/pkg/common/cns-lib/vsphere/virtualcenter.go:600\nsigs.k8s.io/vsphere-csi-driver/v3/pkg/csi/service/vanilla.(*controller).Init\n\t/go/src/github.com/kubernetes-sigs/vsphere-csi-driver/pkg/csi/service/vanilla/controller.go:140\nsigs.k8s.io/vsphere-csi-driver/v3/pkg/csi/service.(*vsphereCSIDriver).BeforeServe\n\t/go/src/github.com/kubernetes-sigs/vsphere-csi-driver/pkg/csi/service/driver.go:188\nsigs.k8s.io/vsphere-csi-driver/v3/pkg/csi/service.(*vsphereCSIDriver).Run\n\t/go/src/github.com/kubernetes-sigs/vsphere-csi-driver/pkg/csi/service/driver.go:202\nmain.main\n\t/go/src/github.com/kubernetes-sigs/vsphere-csi-driver/cmd/vsphere-csi/main.go:71\nruntime.main\n\t/usr/lib/golang/src/runtime/proc.go:250"}
      

      Verified secrets:
      vsphere-creds is OK
      apiVersion: v1
      data:
      e2e-vcsa67.vcenter.e2e.bos.redhat.com.password: ******
      e2e-vcsa67.vcenter.e2e.bos.redhat.com.username: ******
      kind: Secret

      vsphere-cloud-credentials Namespace openshift-cloud-controller-manager
      vsphere-cloud-credentials Namespace openshift-cluster-storage-operator
      vsphere-cloud-credentials Namespace openshift-machine-api
      vmware-vsphere-cloud-credentials Namespace openshift-cluster-csi-drivers
      are wrong
      data:
      e2e-vcsa67.vcenter.e2e.bos.redhat.com.password: *****
      e2e-vcsa67.vcenter.e2e.bos.redhat.com.username: *****
      vcenterplaceholder.password: *****
      vcenterplaceholder.username: *****

      vcenterplaceholder and vcenterplaceholder should be removed

              agentil@redhat.com Adrien Gentil
              yurigaga Yuri Obshansky
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: