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

E2E tests didn't catch govmomi connection error as cannot validate certificate #1302

Open
zhanggbj opened this issue Nov 8, 2024 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@zhanggbj
Copy link
Collaborator

zhanggbj commented Nov 8, 2024

What happened?

This is a error caught when running CAPV E2E tests but not in CPI E2E tests.

CPI: https://github.com/kubernetes/cloud-provider-vsphere/releases/tag/v1.32.0-beta.0

CAPV test: kubernetes-sigs/cluster-api-provider-vsphere#3250

E1107 18:20:17.894281       1 connection.go:181] Failed to create new client. err: Post "https://10.2.224.4:443/sdk": tls: failed to verify certificate: x509: cannot validate certificate for 10.2.224.4 because it doesn't contain any IP SANs
E1107 18:20:17.894401       1 connection.go:67] Failed to create govmomi client. err: Post "https://10.2.224.4:443/sdk": tls: failed to verify certificate: x509: cannot validate certificate for 10.2.224.4 because it doesn't contain any IP SANs
E1107 18:20:17.894422       1 connectionmanager.go:147] Cannot connect to vCenter with err: Post "https://10.2.224.4:443/sdk": tls: failed to verify certificate: x509: cannot validate certificate for 10.2.224.4 because it doesn't contain any IP SANs
E1107 18:20:18.903587       1 connection.go:181] Failed to create new client. err: Post "https://10.2.224.4:443/sdk": tls: failed to verify certificate: x509: cannot validate certificate for 10.2.224.4 because it doesn't contain any IP SANs
E1107 18:20:18.903635       1 connection.go:67] Failed to create govmomi client. err: Post "https://10.2.224.4:443/sdk": tls: failed to verify certificate: x509: cannot validate certificate for 10.2.224.4 because it doesn't contain any IP SANs
E1107 18:20:18.903649       1 connectionmanager.go:147] Cannot connect to vCenter with err: Post "https://10.2.224.4:443/sdk": tls: failed to verify certificate: x509: cannot validate certificate for 10.2.224.4 because it doesn't contain any IP SANs
E1107 18:20:19.911962       1 connection.go:181] Failed to create new client. err: Post "https://10.2.224.4:443/sdk": tls: failed to verify certificate: x509: cannot validate certificate for 10.2.224.4 because it doesn't contain any IP SANs

What did you expect to happen?

Investigate if CPI can catch this kind of error in tests and improve e2e tests.

How can we reproduce it (as minimally and precisely as possible)?

Run CAPV E2E test using
CPI: https://github.com/kubernetes/cloud-provider-vsphere/releases/tag/v1.32.0-beta.0

CAPV: https://github.com/kubernetes-sigs/cluster-api-provider-vsphere/releases/tag/v1.12.0-beta.0

Anything else we need to know (please consider providing level 4 or above logs of CPI)?

No response

Kubernetes version

$ kubectl version
# paste output here

1.32.0-beta.0

Cloud provider or hardware configuration

N/A

OS version

# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Kernel (e.g. uname -a)

Install tools

Container runtime (CRI) and and version (if applicable)

Related plugins (CNI, CSI, ...) and versions (if applicable)

Others

@zhanggbj zhanggbj added the kind/bug Categorizes issue or PR as related to a bug. label Nov 8, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 6, 2025
@zhanggbj
Copy link
Collaborator Author

zhanggbj commented Feb 8, 2025

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants