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

cloud-provider-azure 1.23.2 CA dependency is broken #4875

Closed
MaciekPytel opened this issue May 10, 2022 · 11 comments
Closed

cloud-provider-azure 1.23.2 CA dependency is broken #4875

MaciekPytel opened this issue May 10, 2022 · 11 comments
Labels
area/cluster-autoscaler kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@MaciekPytel
Copy link
Contributor

MaciekPytel commented May 10, 2022

CA has a dependency on cloud-provider-azure 1.23.2, which contains a file with mismatched quotes that breaks CA tests.

Interestingly the file in CA vendor directory doesn't have the same bug. The problematic file was first introduced to CA vendor in #4689, without the bug. The only way I can think for how this would be possible is if the problem was manually fixed directly in the vendor directory (but the PR doesn't even mention anything like this).

  1. Can we update the cloud-provider-azure dependency to a version with the fix? Currently any attempt to update vendor fails, because of this bug being introduced by the update.
    • This is currently blocking 1.24 release. Is this version bump something we can safely perform last minute? The alternative is to carry the fix in the vendor (by manually removing the problematic file from vendor update commit), but this comes with its own problems. For example anyone importing CA 1.24.0 is likely to run into the very same issue (as they would get the transitive dependency, but not the modified version in CA vendor/).
  2. If my guess above was correct, can we make sure not to fix any bugs or make any code changes directly in CA vendor directory going forward?

@gandhipr @marwanad @feiskyer

@x13n
Copy link
Member

x13n commented May 10, 2022

I think the long term solution (aka point 3) should be to just stop using vendor, just created #4878 for this.

@gandhipr
Copy link
Contributor

gandhipr commented May 10, 2022 via email

@marwanad
Copy link
Member

marwanad commented May 10, 2022

The cloudprovider version should be bumped to v1.24.x which contains this fix. The fix seems to be in 1.23.11 as well.

@MaciekPytel
Copy link
Contributor Author

Bumping cloudprovider to either 1.23.11 or 1.24 causes compilation error in CA azure cloudprovider. I'm guessing they shouldn't be very hard to fix, but I don't want to make last minute changes in cloudprovider I don't know and have no way of testing.

I'm leaning towards manually fixing this in vendor/, listing the import problem as a know issue and fixing it in a follow-up patch release. Unless you want to open a PR bumping the version of cloud-provider-azure and you have enough confidence that those changes are safe enough to include in 1.24.0?

MaciekPytel added a commit to MaciekPytel/autoscaler that referenced this issue May 11, 2022
Manually removed the update to vendor/sigs.k8s.io/cloud-provider-azure/pkg/provider/doc.go
as per discussion in
kubernetes#4875.
@MaciekPytel
Copy link
Contributor Author

I've updated #4871 to carry the fix in vendor. If there are no comments against this approach and / or alternative PRs with version update for Azure by tomorrow, I'd like to merge it tomorrow to unblock 1.24.0 release.

@gandhipr
Copy link
Contributor

gandhipr commented May 11, 2022 via email

@gandhipr
Copy link
Contributor

gandhipr commented May 11, 2022 via email

@gandhipr
Copy link
Contributor

gandhipr commented May 12, 2022 via email

JoelSpeed pushed a commit to openshift-cloud-team/kubernetes-autoscaler that referenced this issue May 31, 2022
Manually removed the update to vendor/sigs.k8s.io/cloud-provider-azure/pkg/provider/doc.go
as per discussion in
kubernetes#4875.

# Conflicts:
#	vertical-pod-autoscaler/vendor/k8s.io/api/certificates/v1/register.go
#	vertical-pod-autoscaler/vendor/k8s.io/api/events/v1beta1/zz_generated.prerelease-lifecycle.go
#	vertical-pod-autoscaler/vendor/k8s.io/api/flowcontrol/v1beta1/doc.go
#	vertical-pod-autoscaler/vendor/k8s.io/api/node/v1/zz_generated.deepcopy.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/applyconfigurations/batch/v1/job.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/applyconfigurations/core/v1/podip.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/applyconfigurations/extensions/v1beta1/ipblock.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/applyconfigurations/extensions/v1beta1/networkpolicystatus.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/informers/apiserverinternal/v1alpha1/storageversion.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/informers/policy/v1/interface.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/kubernetes/typed/apiserverinternal/v1alpha1/apiserverinternal_client.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/kubernetes/typed/apiserverinternal/v1alpha1/doc.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/kubernetes/typed/apiserverinternal/v1alpha1/fake/doc.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v2/generated_expansion.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/kubernetes/typed/certificates/v1/fake/fake_certificates_client.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/listers/node/v1/expansion_generated.go
JoelSpeed pushed a commit to openshift-cloud-team/kubernetes-autoscaler that referenced this issue May 31, 2022
Manually removed the update to vendor/sigs.k8s.io/cloud-provider-azure/pkg/provider/doc.go
as per discussion in
kubernetes#4875.

# Conflicts:
#	vertical-pod-autoscaler/vendor/k8s.io/api/certificates/v1/register.go
#	vertical-pod-autoscaler/vendor/k8s.io/api/events/v1beta1/zz_generated.prerelease-lifecycle.go
#	vertical-pod-autoscaler/vendor/k8s.io/api/flowcontrol/v1beta1/doc.go
#	vertical-pod-autoscaler/vendor/k8s.io/api/node/v1/zz_generated.deepcopy.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/applyconfigurations/batch/v1/job.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/applyconfigurations/core/v1/podip.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/applyconfigurations/extensions/v1beta1/ipblock.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/applyconfigurations/extensions/v1beta1/networkpolicystatus.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/informers/apiserverinternal/v1alpha1/storageversion.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/informers/policy/v1/interface.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/kubernetes/typed/apiserverinternal/v1alpha1/apiserverinternal_client.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/kubernetes/typed/apiserverinternal/v1alpha1/doc.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/kubernetes/typed/apiserverinternal/v1alpha1/fake/doc.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v2/generated_expansion.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/kubernetes/typed/certificates/v1/fake/fake_certificates_client.go
#	vertical-pod-autoscaler/vendor/k8s.io/client-go/listers/node/v1/expansion_generated.go
JoelSpeed pushed a commit to openshift-cloud-team/kubernetes-autoscaler that referenced this issue May 31, 2022
Manually removed the update to vendor/sigs.k8s.io/cloud-provider-azure/pkg/provider/doc.go
as per discussion in
kubernetes#4875.
JoelSpeed pushed a commit to openshift-cloud-team/kubernetes-autoscaler that referenced this issue May 31, 2022
Manually removed the update to vendor/sigs.k8s.io/cloud-provider-azure/pkg/provider/doc.go
as per discussion in
kubernetes#4875.
JoelSpeed pushed a commit to openshift-cloud-team/kubernetes-autoscaler that referenced this issue May 31, 2022
Manually removed the update to vendor/sigs.k8s.io/cloud-provider-azure/pkg/provider/doc.go
as per discussion in
kubernetes#4875.
JoelSpeed pushed a commit to openshift-cloud-team/kubernetes-autoscaler that referenced this issue May 31, 2022
Manually removed the update to vendor/sigs.k8s.io/cloud-provider-azure/pkg/provider/doc.go
as per discussion in
kubernetes#4875.
@k8s-triage-robot
Copy link

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

This bot triages issues and PRs 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 or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR 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 Aug 10, 2022
@feiskyer
Copy link
Member

this should be fixed already
/close

@k8s-ci-robot
Copy link
Contributor

@feiskyer: Closing this issue.

In response to this:

this should be fixed already
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cluster-autoscaler kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

7 participants