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

[Conformance][templates] templateservicebroker security test #15912

Closed
sdodson opened this issue Aug 22, 2017 · 8 comments · Fixed by #15966
Closed

[Conformance][templates] templateservicebroker security test #15912

sdodson opened this issue Aug 22, 2017 · 8 comments · Fixed by #15966
Assignees
Labels
kind/test-flake Categorizes issue or PR as related to test flakes. priority/P1

Comments

@sdodson
Copy link
Member

sdodson commented Aug 22, 2017

From https://ci.openshift.redhat.com/jenkins/job/test_pull_request_openshift_ansible_extended_conformance_install_update/945/consoleFull#198825387156cbb9a5e4b02b88ae8c2f77

May be happening on every job not certain yet.

[Conformance][templates] templateservicebroker security test

[AfterEach] [Conformance][templates] templateservicebroker security test
  /go/src/github.com/openshift/origin/test/extended/templates/templateservicebroker_security.go:89


• Failure [52.669 seconds]
[Conformance][templates] templateservicebroker security test
/go/src/github.com/openshift/origin/test/extended/templates/templateservicebroker_security.go:199
  should pass security tests [It]
  /go/src/github.com/openshift/origin/test/extended/templates/templateservicebroker_security.go:197

  Expected error:
      <*url.Error | 0xc421973500>: {
          Op: "Get",
          URL: "https://localhost:45126/brokers/template.openshift.io/v2/catalog",
          Err: {
              Op: "dial",
              Net: "tcp",
              Source: nil,
              Addr: {
                  IP: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],
                  Port: 45126,
                  Zone: "",
              },
              Err: {
                  Syscall: "getsockopt",
                  Err: 0x6f,
              },
          },
      }
      Get https://localhost:45126/brokers/template.openshift.io/v2/catalog: dial tcp [::1]:45126: getsockopt: connection refused
  not to have occurred

  /go/src/github.com/openshift/origin/test/extended/templates/templateservicebroker_security.go:94
@sdodson sdodson added kind/test-flake Categorizes issue or PR as related to test flakes. priority/P1 labels Aug 22, 2017
@smarterclayton
Copy link
Contributor

@bparees @jim-minter

@bparees
Copy link
Contributor

bparees commented Aug 23, 2017

/cc @deads2k since i think this was one of the reworked tests intended to stand up its own TSB and then port-forward itself to access the TSB.

@deads2k
Copy link
Contributor

deads2k commented Aug 23, 2017

Did this get fixed by something? I'm not seeing the errors in prow.

@danwinship
Copy link
Contributor

@deads2k
Copy link
Contributor

deads2k commented Aug 23, 2017

@deads2k just happened in #15930. https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin_extended_templates/814/

Ok, looks like

Expected error:
    <*url.Error | 0xc42130bd10>: {
        Op: "Get",
        URL: "https://localhost:42916/brokers/template.openshift.io/v2/catalog",
        Err: {
            Op: "dial",
            Net: "tcp",
            Source: nil,
            Addr: {
                IP: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],
                Port: 42916,
                Zone: "",
            },
            Err: {
                Syscall: "getsockopt",
                Err: 0x6f,
            },
        },
    }
    Get https://localhost:42916/brokers/template.openshift.io/v2/catalog: dial tcp [::1]:42916: getsockopt: connection refused
not to have occurred

on the port forward. Guess I'll add some logging/health checking on it.

openshift-merge-robot added a commit that referenced this issue Aug 23, 2017
Automatic merge from submit-queue (batch tested with PRs 15899, 15887, 15866, 15935, 15930)

add logging information to debug failing port-forward

debugging information for #15912
@mfojtik
Copy link
Member

mfojtik commented Aug 25, 2017

raising to P0 as almost every PR fails with this right now

@bparees
Copy link
Contributor

bparees commented Aug 25, 2017

I backed this test out of conformance last night: #15976

but we absolutely need to get to the bottom of why this is failing and get that test back in. Somehow something merged that consistently broke a conformance test (but only in the install+upgrade scenario), so that's really bad.

@jim-minter
Copy link
Contributor

I think there's a good chance this is down to a race trying to use the port-forward socket before oc port-forward had actually started. If so, #15966 should fix this along with a number of other races in EnsureTSB().

openshift-merge-robot added a commit that referenced this issue Aug 26, 2017
Automatic merge from submit-queue

Template test fixes

- add all template tests to Conformance
- don't use persistent templates for templateservicebroker tests
- additional template instance controller readiness checking testing
- increase tsb loglevel in extended tests

fixes #15912
fixes #15961
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/test-flake Categorizes issue or PR as related to test flakes. priority/P1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants