Skip to content

projectrequest creation fails with HA etcd #10909

Closed

Description

@liggitt

Seen requesting a project in a HA etcd env:

*errors.errorString: error creating items in requested project "some-namespace": namespace "some-namespace" not found
  File "pkg/cmd/util/serviceability/panic.go", line 28, in CaptureError-fm
  File "vendor/k8s.io/kubernetes/pkg/util/runtime/runtime.go", line 83, in HandleError
  File "pkg/project/registry/projectrequest/delegated/delegated.go", line 160, in Create
  File "vendor/k8s.io/kubernetes/pkg/apiserver/resthandler.go", line 440, in Create
  File "vendor/k8s.io/kubernetes/pkg/apiserver/resthandler.go", line 403, in 1
  File "vendor/k8s.io/kubernetes/pkg/apiserver/resthandler.go", line 953, in func1
  File "/usr/lib/golang/src/runtime/asm_amd64.s", line 1998, in goexit

Likely caused by the namespace admission plugin not having the new namespace in cache, and the compensating live lookup hitting a non-leader etcd and returning a NotFound

Activity

  1. added
    kind/bug
    on Sep 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    component/restapikind/bugpriority/P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions