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: Extended.deploymentconfigs generation [Conformance] should deploy based on a status version bump #13105

Closed
smarterclayton opened this issue Feb 24, 2017 · 11 comments
Assignees
Labels
component/apps kind/test-flake Categorizes issue or PR as related to test flakes. priority/P1
Milestone

Comments

@smarterclayton
Copy link
Contributor

https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_gce/978/testReport/junit/(root)/Extended/deploymentconfigs_generation__Conformance__should_deploy_based_on_a_status_version_bump/

/tmp/openshift/tito/rpmbuild-originIrXnnn/BUILD/origin-1.5.0/_output/local/go/src/github.com/openshift/origin/test/extended/deployments/deployments.go:577
Expected error:
    <*util.ExitError | 0xc421181c20>: {
        Cmd: "oc rollout --config=/tmp/extended-test-cli-deployment-21c5c-hnqgm-user.kubeconfig --namespace=extended-test-cli-deployment-21c5c-hnqgm latest generation-test",
        StdErr: "Error from server (Conflict): Operation cannot be fulfilled on deploymentconfigs \"generation-test\": the object has been modified; please apply your changes to the latest version and try again",
        ExitError: {
            ProcessState: {
                pid: 22701,
                status: 256,
                rusage: {
                    Utime: {Sec: 0, Usec: 200859},
                    Stime: {Sec: 0, Usec: 24943},
                    Maxrss: 34768,
                    Ixrss: 0,
                    Idrss: 0,
                    Isrss: 0,
                    Minflt: 9142,
                    Majflt: 0,
                    Nswap: 0,
                    Inblock: 0,
                    Oublock: 0,
                    Msgsnd: 0,
                    Msgrcv: 0,
                    Nsignals: 0,
                    Nvcsw: 2751,
                    Nivcsw: 53,
                },
            },
            Stderr: nil,
        },
    }
    exit status 1
not to have occurred
/tmp/openshift/tito/rpmbuild-originIrXnnn/BUILD/origin-1.5.0/_output/local/go/src/github.com/openshift/origin/test/extended/deployments/deployments.go:550

We should guard against this.

@smarterclayton smarterclayton added component/apps kind/test-flake Categorizes issue or PR as related to test flakes. priority/P1 labels Feb 24, 2017
@smarterclayton
Copy link
Contributor Author

For triage p1

@mfojtik
Copy link
Contributor

mfojtik commented Feb 27, 2017

Guess this should be using Patch(), but our legacy client for DC does not have Patch()... Should be fixed in 1.6 when we switch (hopefully to clientset).

@0xmichalis
Copy link
Contributor

@mfojtik you can always update the test to retry on conflicts and have a separate issue that tracks making instantiate use GuaranteedUpdate.

@tnozicka
Copy link
Contributor

seems like now we do Update only for servers older than 1.4 otherwise we call instantiate
https://github.com/tnozicka/origin/blob/a71e6f14824d4b5bb3eb852104163b01cf32f1fb/pkg/cmd/cli/cmd/rollout/latest.go#L165-L165

@mfojtik
Copy link
Contributor

mfojtik commented Jun 27, 2017

@Kargakis do we want to nuke the support for pre 1.4 clients now?

@0xmichalis
Copy link
Contributor

@mfojtik for 1.7 servers, yes we can. cc: @smarterclayton

Essentially, nuke this part of code out of origin.

@0xmichalis
Copy link
Contributor

@mfojtik can you open a separate issue for the rollback issue we found out yesterday? The code above is responsible that the update is not going through instantiate.

@mfojtik
Copy link
Contributor

mfojtik commented Jun 27, 2017

@Kargakis #14903 is for deprecating the old rollout latest

@mfojtik
Copy link
Contributor

mfojtik commented Jul 3, 2017

This is fixed by #14902

@mfojtik mfojtik closed this as completed Jul 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/apps kind/test-flake Categorizes issue or PR as related to test flakes. priority/P1
Projects
None yet
Development

No branches or pull requests

5 participants