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

Fix LBaaS version detection in openstack cloudprovider #36249

Merged

Conversation

sjenning
Copy link
Contributor

@sjenning sjenning commented Nov 4, 2016

lbversion is the local variable used for version detection when os.lbOpts.LBVersion is not specified.

xref https://bugzilla.redhat.com/show_bug.cgi?id=1391837

@ncdc @derekwaynecarr @anguslees


This change is Reviewable

@ncdc
Copy link
Member

ncdc commented Nov 4, 2016

lgtm

@k8s-github-robot k8s-github-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. release-note-label-needed labels Nov 4, 2016
@ncdc
Copy link
Member

ncdc commented Nov 4, 2016

Update the unit test?

@sjenning
Copy link
Contributor Author

sjenning commented Nov 4, 2016

@ncdc already a test for it. It is just skipped if there is no openstack env set. When env is set and run inside an openstack instance:

Before fix

Running tests for APIVersion: v1,apps/v1beta1,authentication.k8s.io/v1beta1,authorization.k8s.io/v1beta1,autoscaling/v1,batch/v1,batch/v2alpha1,certificates.k8s.io/v1alpha1,extensions/v1beta1,imagepolicy.k8s.io/v1alpha1,policy/v1beta1,rbac.authorization.k8s.io/v1alpha1,storage.k8s.io/v1beta1,federation/v1beta1
+++ [1104 18:31:18] Running tests without code coverage
--- FAIL: TestLoadBalancer (0.95s)
        openstack_test.go:216: Trying LBVersion = 'v1'
        openstack_test.go:216: Trying LBVersion = 'v2'
        openstack_test.go:216: Trying LBVersion = ''
        openstack_test.go:226: LoadBalancer() returned false - perhaps your stack doesn't support Neutron?
FAIL
FAIL    k8s.io/kubernetes/pkg/cloudprovider/providers/openstack 12.734s
Makefile:126: recipe for target 'test' failed
make: *** [test] Error 1

After fix

Running tests for APIVersion: v1,apps/v1beta1,authentication.k8s.io/v1beta1,authorization.k8s.io/v1beta1,autoscaling/v1,batch/v1,batch/v2alpha1,certificates.k8s.io/v1alpha1,extensions/v1beta1,imagepolicy.k8s.io/v1alpha1,policy/v1beta1,rbac.authorization.k8s.io/v1alpha1,storage.k8s.io/v1beta1,federation/v1beta1
+++ [1104 18:33:14] Running tests without code coverage
ok      k8s.io/kubernetes/pkg/cloudprovider/providers/openstack 13.068s

@ncdc ncdc added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Nov 4, 2016
@ncdc ncdc changed the title fix LBaaS version detection in openstack cloudprovider Fix LBaaS version detection in openstack cloudprovider Nov 4, 2016
@ncdc ncdc added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 4, 2016
@ncdc ncdc added this to the v1.5 milestone Nov 4, 2016
@anguslees
Copy link
Member

Oops.

/lgtm

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-ci-robot
Copy link
Contributor

Jenkins GCI GKE smoke e2e failed for commit 9875657. Full PR test history.

The magic incantation to run this job again is @k8s-bot gci gke e2e test this. Please help us cut down flakes by linking to an open flake issue when you hit one in your PR.

@k8s-ci-robot
Copy link
Contributor

Jenkins GKE smoke e2e failed for commit 9875657. Full PR test history.

The magic incantation to run this job again is @k8s-bot cvm gke e2e test this. Please help us cut down flakes by linking to an open flake issue when you hit one in your PR.

@k8s-ci-robot
Copy link
Contributor

Jenkins GCI GCE e2e failed for commit 9875657. Full PR test history.

The magic incantation to run this job again is @k8s-bot gci gce e2e test this. Please help us cut down flakes by linking to an open flake issue when you hit one in your PR.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit f37039b into kubernetes:master Nov 7, 2016
@sjenning sjenning deleted the fix-lbaas-openstack-init branch November 21, 2016 16:17
dims pushed a commit to dims/kubernetes that referenced this pull request Feb 8, 2018
…-init

Automatic merge from submit-queue

Fix LBaaS version detection in openstack cloudprovider

`lbversion` is the local variable used for version detection when `os.lbOpts.LBVersion` is not specified.

xref https://bugzilla.redhat.com/show_bug.cgi?id=1391837

@ncdc @derekwaynecarr @anguslees
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants