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

flake in cmd/images: cannot delete istag #10274

Closed
miminar opened this issue Aug 8, 2016 · 7 comments
Closed

flake in cmd/images: cannot delete istag #10274

miminar opened this issue Aug 8, 2016 · 7 comments
Assignees
Labels
component/imageregistry kind/test-flake Categorizes issue or PR as related to test flakes. priority/P2

Comments

@miminar
Copy link

miminar commented Aug 8, 2016

This one looks scary:

Running test/cmd/images_tests.sh:237: executing 'oc delete istag/perl:5.16 --context='default/127-0-0-1:28443/system:admin'' expecting success...
FAILURE after 0.213s: test/cmd/images_tests.sh:237: executing 'oc delete istag/perl:5.16 --context='default/127-0-0-1:28443/system:admin'' expecting success: the command returned the wrong error code
There was no output from the command.
Standard error from the command:
Error from server: imagestreams "perl" not found

Job https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_check/4708/console

Here's some test context:

# test deleting a tag using oc delete
os::cmd::expect_success_and_text "oc get is perl --template '{{(index .spec.tags 0).name}}'" '5.16'
os::cmd::expect_success_and_text "oc get is perl --template '{{(index .status.tags 0).tag}}'" 'latest'
os::cmd::expect_success "oc delete istag/perl:5.16 --context='${cluster_admin_context}'"

So it's clear that both image stream and the tag exist. Can the changed context be somehow related?

@miminar miminar added the kind/test-flake Categorizes issue or PR as related to test flakes. label Aug 8, 2016
@miminar
Copy link
Author

miminar commented Aug 8, 2016

To make the bot happy, here's a parent job link: https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/7632/

@mfojtik
Copy link
Contributor

mfojtik commented Aug 9, 2016

@miminar I think the test is wrong? the image streams are created in the "openshift" namespace, not in "default".

@mfojtik
Copy link
Contributor

mfojtik commented Aug 9, 2016

@deads2k fyi (I think you was changing this recently and yes, I reviewed it :-(

@miminar
Copy link
Author

miminar commented Aug 9, 2016

@mfojtik you're right! The containing namespace is test-cmd-images-2. So it looks like the cluster_admin_context is outdated.

@deads2k
Copy link
Contributor

deads2k commented Aug 9, 2016

@mfojtik you're right! The containing namespace is test-cmd-images-2. So it looks like the cluster_admin_context is outdated.

Weird that its a flake, not a failure.

@smarterclayton
Copy link
Contributor

Maybe the perl image is flaky

@soltysh
Copy link
Contributor

soltysh commented Aug 12, 2016

I've added explicit project name in the delete command, let's see how that helps.

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

No branches or pull requests

7 participants