Skip to content

oc create -f test/testdata/app-scenarios fails to POST #10008

Closed

Description

@juanvallejo

Link to last failure: https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_check/4612/consoleFull#-200384109356c25df4e4b05b79524e5d52

Version
oc v1.3.0-alpha.0+ea204df-dirty
kubernetes v1.3.0+57fb9ac
features: Basic-Auth
Steps To Reproduce
  1. [test]
Current Result
FAILURE after 2.917s: test/cmd/admin.sh:350: executing 'oc create -f test/testdata/app-scenarios' expecting success: the command returned the wrong error code

Standard error from the command:
The Service "frontend" is invalid.
spec.clusterIP: Invalid value: "172.30.17.154": provided IP is already allocated
Expected Result

Should succeed

EDIT: updated link to last failure

Activity

  1. added
    kind/test-flake
    on Jul 25, 2016
  2. stevekuznetsov commented on Jul 25, 2016

    @stevekuznetsov
    Contributor

    @juanvallejo why the assign to me?

  3. removed their assignment
    on Jul 25, 2016
  4. juanvallejo commented on Jul 25, 2016

    @juanvallejo
    ContributorAuthor

    @stevekuznetsov Ah was not sure who to assign to this

  5. stevekuznetsov commented on Jul 25, 2016

    @stevekuznetsov
    Contributor

    @juanvallejo if unsure, leave assignment and priority label unset, someone like @danmcp will come by to set them soon

  6. mfojtik commented on Jul 26, 2016

    @mfojtik
    Contributor

    @sgallagher can you please spend some time figuring out what is the issue here?

  7. sgallagher commented on Jul 28, 2016

    @sgallagher
    Contributor

    @juanvallejo Can you point me at a recent example? The original link has expired.

  8. juanvallejo commented on Jul 28, 2016

    @juanvallejo
    ContributorAuthor

    @sgallagher Hm, the build seems to have been deleted, after checking on ci.openshift.redhat.com/jenkins/. Unfortunately this was the only build I can find this error happening

  9. stevekuznetsov commented on Aug 5, 2016

    @stevekuznetsov
    Contributor

    The failures seem to be this always:

    Error from server: The POST operation against Pod could not be completed at this time, please try again.
    
  10. changed the title [-]`oc create -f test/testdata/app-scenarios` test case keeps failing on jenkins[/-] [+]`oc create -f test/testdata/app-scenarios` fails to POST[/+] on Aug 5, 2016
  11. liggitt commented on Aug 5, 2016

    @liggitt
    Contributor

    Looks like that message is coming from https://github.com/openshift/origin/blob/master/vendor/k8s.io/kubernetes/pkg/api/rest/create.go#L106

    // CheckGeneratedNameError checks whether an error that occurred creating a resource is due
    // to generation being unable to pick a valid name.
    func CheckGeneratedNameError(strategy RESTCreateStrategy, err error, obj runtime.Object) error {
        if !errors.IsAlreadyExists(err) {
            return err
        }
    
        objectMeta, kind, kerr := objectMetaAndKind(strategy, obj)
        if kerr != nil {
            return kerr
        }
    
        if len(objectMeta.GenerateName) == 0 {
            return err
        }
    
        return errors.NewServerTimeoutForKind(kind.GroupKind(), "POST", 0)
    }

    that's a terrible error... it looks like it's converting an AlreadyExists error into a server timeout error if it has a generate name

  12. liggitt commented on Aug 5, 2016

    @liggitt
    Contributor

    @smarterclayton looks like the sample data for petset is the culprit... it's creating a petset and all the pods that go with it, so the pod creates will race with the petset controller, and are likely to fail with an AlreadyExists error

  13. liggitt commented on Aug 5, 2016

    @liggitt
    Contributor

    bumping priority, I think we'll hit this flake a lot

  14. liggitt commented on Aug 5, 2016

    @liggitt
    Contributor

    reopening until #10240 goes in as well

  15. reopened this on Aug 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/test-flakepriority/P2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions