Repository navigation
Closed
Labels
Description
Extended tests trying to curl integrated registry directly fail with this error:
failed to get image "sha256:a4948c96a4784dc2a5b6e9c0dbaca7e14942c3f1185b32081219e20cdea74512" manifest: Get http://docker-registry.default.svc:5000/v2/: malformed HTTP response "\x15\x03\x01\x00\x02\x02"
The Get request made to the registry doesn't generate any entry in registry's log. Pull/push made by Docker daemon works like a charm.
Examples of failed tests:
Details
Failure [11.080 seconds]
[Feature:ImagePrune] Image prune
/go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/test/extended/images/prune.go:127
with default --all flag
/go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/test/extended/images/prune.go:107
should prune both internally managed and external images [It]
/go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/test/extended/images/prune.go:106
Expected error:
<*url.Error | 0xc4215c1560>: {
Op: "Get",
URL: "http://172.30.228.91:5000/v2/extended-test-prune-images-hxlqx-hj7c0/origin-release/blobs/sha256:ae60289ae57f6a7da4a23756109b6078c209a2e280be031a70bf00e198b6b1a0",
Err: {
what: "malformed HTTP response",
str: "\x15\x03\x01\x00\x02\x02",
},
}
Get http://172.30.228.91:5000/v2/extended-test-prune-images-hxlqx-hj7c0/origin-release/blobs/sha256:ae60289ae57f6a7da4a23756109b6078c209a2e280be031a70bf00e198b6b1a0: malformed HTTP response "\x15\x03\x01\x00\x02\x02"
not to have occurred
/go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/test/extended/images/prune.go:267
Details
• Failure [119.714 seconds]
[imageapis][registry] image signature workflow
/go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/test/extended/registry/signature.go:113
can push a signed image to openshift registry and verify it [It]
/go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/test/extended/registry/signature.go:112
Expected
<string>: error verifying signature sha256:a4948c96a4784dc2a5b6e9c0dbaca7e14942c3f1185b32081219e20cdea74512@3009b28d3715141e65f04d51ff25a066 for image sha256:a4948c96a4784dc2a5b6e9c0dbaca7e14942c3f1185b32081219e20cdea74512 (verification status will be removed): failed to get image "sha256:a4948c96a4784dc2a5b6e9c0dbaca7e14942c3f1185b32081219e20cdea74512" manifest: Get http://docker-registry.default.svc:5000/v2/: malformed HTTP response "\x15\x03\x01\x00\x02\x02"
to contain substring
<string>: identity is now confirmed
/go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/test/extended/registry/signature.go:106
See jobs
https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin_extended_image_registry/3/consoleFull
and https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin_extended_image_registry/2/consoleFull
Activity
miminar commentedon Aug 14, 2017
@stevekuznetsov Do you have a clue why http requests made from the test binary to the registry fail while docker can talk to the registry just fine?
stevekuznetsov commentedon Aug 14, 2017
Not obvious to me. This is a single-node install. Maybe @sdodson knows that these things are configured differently?
miminar commentedon Aug 14, 2017
By the way, there are some expected environment variables unset (which were previously set):
Can be found in the same job as the errors above. It may be related.
This particular variable should be exported by
os::util::environment::setup_images_vars().stevekuznetsov commentedon Aug 14, 2017
Hm. We launch the jobs with this line:
Maybe because we are skipping the build they are not called? @miminar do you have the cycles to chase that?
miminar commentedon Aug 14, 2017
@stevekuznetsov I can check this out locally in a VM. I'll let your know.
miminar commentedon Aug 15, 2017
@stevekuznetsov the problem is with
TEST_ONLY=true. The environment variableMAX_IMAGES_BULK_IMAGES_IMPORTED_PER_REPOSITORYget set here. But it's never called whenTEST_ONLYistrue.However it's wrong to move the line before the
TEST_ONLYcheck because we would expect that the server was configured with our default settings - which may be wrong. The right thing is to set this variable in a parent job of test_pull_request_origin_extended_image_registry.yml so that the same setting is used to generate the master config and in the test.stevekuznetsov commentedon Aug 15, 2017
SGTM
miminar commentedon Aug 16, 2017
The registry is secured now for the extended tests!
@stevekuznetsov please correct me if I'm wrong. It looks like the
extended_image_registryjob now depends on openshift-ansible to install the registry, which secures it by default.I'll make sure the tests can cope with that.
stevekuznetsov commentedon Aug 16, 2017
@miminar yes I think that is correct
miminar commentedon Aug 17, 2017
Addressed by #15807. There's one last failure which is a bit more difficult.
Merge pull request openshift#15807 from miminar/registry-extended-tes…