Skip to content

Rebase to kubernetes 1.4-pre.rc1 - #10777

Merged
openshift-bot merged 77 commits into
openshift:masterfrom
smarterclayton:rebase
Sep 16, 2016
Merged

openshift-bot merged 77 commits into
openshift:masterfrom
smarterclayton:rebase

Conversation

@smarterclayton

@smarterclayton smarterclayton commented Sep 1, 2016 •

Copy link
Copy Markdown
Contributor
  • Dropped 1.0 backwards API compatibility (portalIP, node.name)
  • Removed the "wait for other backend storage to catch up to resource version" for now with the switch to the new etcd client and the complexity in the storage decorators. Made SAToken / OAuth Access/Authorize quorum storages (which is significantly faster in etcd3, basically free). Now means that if 2 masters go down remaining clients can't authorize with service account (so have to fix that).

TODO:

  • Add event recorders to controllers
  • Double check nodeName setting in Kubelet and related commands
  • Verify etcd paths are correct after changes to REST initialization flows
  • Identify why openshift kubectl no longer respects --loglevel (initialization order?) - could be a result of logs being in a separate package now and being initialized after other code
    • Was a result of cloudflare/cfssl which sets a "loglevel" flag
  • Open issues to track new controllers
    • Garbage collection
    • ScheduledJobs
    • ???
  • Work with Jordan on the quorum writes
  • Resolve the controller refs decision

Review TODOs

@smarterclayton
smarterclayton force-pushed the rebase branch 2 times, most recently from 0287116 to a982342 Compare September 2, 2016 02:41
if newVal, err := c.DeepCopy(*in); err != nil {
return err
} else {
*out = newVal.(SourceRevision)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sttts can you help me track down what introduced this regression in deep copy?

pkg/build/api/v1/zz_generated.deepcopy.go:339: cannot use newVal.(SourceRevision) (type SourceRevision) as type *SourceRevision in assignment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you tracked it down yourself yesterday.

You had hit a broken code path in the generator (
https://github.com/kubernetes/kubernetes/blob/bd7d7cc02a370180c25b20096b450b79ba2713b8/cmd/libs/go2idl/deepcopy-gen/generators/deepcopy.go#L612-L612): it must look like this:

sw.Do("*out = newVal.($.|raw$)\n", t)

Will fix that upstream.

@smarterclayton
smarterclayton force-pushed the rebase branch 2 times, most recently from 46ed065 to 302c513 Compare September 2, 2016 03:41
@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 2, 2016
@smarterclayton

Copy link
Copy Markdown
Contributor Author

Compiles, master starts.

@smarterclayton
smarterclayton force-pushed the rebase branch 2 times, most recently from 57f5636 to 34c761f Compare September 6, 2016 02:46
@smarterclayton smarterclayton removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 6, 2016
@smarterclayton

Copy link
Copy Markdown
Contributor Author

[test]

imagepolicy.PluginName,
"BuildOverrides",
"AlwaysPullImages",
"openshift.io/OwnerReference",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

follow-up issue to make the admission plugin check delete permissions and re-enable it

@smarterclayton
smarterclayton force-pushed the rebase branch 5 times, most recently from 0eb34fa to 97e448b Compare September 7, 2016 00:50
@smarterclayton

Copy link
Copy Markdown
Contributor Author

I am not proud of the last commit on this PR

Comment thread hack/common.sh
# os::build::enable_swap attempts to enable swap for the system if a) this is Linux and b)
# the amount of physical memory is less than 10GB. This is a stopgap until we have
# better control over memory use in Go 1.7+.
function os::build::enable_swap() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would happily contribute my memory if it meant a) we didn't need to do this or b) the thought of it wouldn't haunt me

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would happily contribute my memory if it meant a) we didn't need to do this or b) the thought of it wouldn't haunt me

yikes

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😱

@marun

marun commented Sep 7, 2016

Copy link
Copy Markdown
Contributor

@smarterclayton Networking test failure looks to be related to test setup. A manually deployed dind cluster doesn't exhibit the problem, only one deployed by the test runner.

@smarterclayton

Copy link
Copy Markdown
Contributor Author

Ok, thanks

@smarterclayton

Copy link
Copy Markdown
Contributor Author

@derekwaynecarr integration test TestExtensionsAPIDisabledAutoscaleBatchEnabled I think is too clever for your namespace cleanup code - it seems to reliably (mostly) trigger a panic in the namespace controller. I suspect it's because the extension group is completely disabled. The panic happens after content cleanup appears to succeed. This is 1.4.0-beta as of two days ago.

E0907 22:04:06.356870   78927 runtime.go:64] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
/Users/clayton/projects/origin/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/util/runtime/runtime.go:70
/Users/clayton/projects/origin/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/util/runtime/runtime.go:63
/Users/clayton/projects/origin/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/util/runtime/runtime.go:49
/usr/local/Cellar/go/1.7/libexec/src/runtime/asm_amd64.s:479
/usr/local/Cellar/go/1.7/libexec/src/runtime/panic.go:458
/usr/local/Cellar/go/1.7/libexec/src/runtime/panic.go:62
/usr/local/Cellar/go/1.7/libexec/src/runtime/sigpanic_unix.go:24
/Users/clayton/projects/origin/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/controller/namespace/namespace_controller_utils.go:380
/Users/clayton/projects/origin/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/controller/namespace/namespace_controller.go:176
/Users/clayton/projects/origin/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/controller/namespace/namespace_controller.go:132
/Users/clayton/projects/origin/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/controller/namespace/namespace_controller.go:152
/Users/clayton/projects/origin/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/controller/namespace/namespace_controller.go:184
/Users/clayton/projects/origin/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/util/wait/wait.go:88
/Users/clayton/projects/origin/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/util/wait/wait.go:89
/Users/clayton/projects/origin/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/util/wait/wait.go:49
/usr/local/Cellar/go/1.7/libexec/src/runtime/asm_amd64.s:2086
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x1609f17]

goroutine 7804 [running]:
panic(0x3375020, 0xc4200160f0)
        /usr/local/Cellar/go/1.7/libexec/src/runtime/panic.go:500 +0x1a1
github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0)
        /Users/clayton/projects/origin/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/util/runtime/runtime.go:56 +0x126
panic(0x3375020, 0xc4200160f0)
        /usr/local/Cellar/go/1.7/libexec/src/runtime/panic.go:458 +0x243
github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/controller/namespace.syncNamespace(0x5aa6b00, 0xc42a5db7c0, 0x5a64620, 0xc42aef4660, 0xc42e066240, 0xc42df3b800, 0x10, 0x10, 0xc42c8deb40, 0x3a0a0de, ...)
        /Users/clayton/projects/origin/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/controller/namespace/namespace_controller_utils.go:380 +0x367
github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/controller/namespace.(*NamespaceController).syncNamespaceFromKey(0xc42e018a80, 0xc42e0c91c0, 0x1f, 0x0, 0x0)
        /Users/clayton/projects/origin/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/controller/namespace/namespace_controller.go:176 +0x2f3
github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/controller/namespace.(*NamespaceController).worker.func1(0x54c00)
        /Users/clayton/projects/origin/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/controller/namespace/namespace_controller.go:132 +0x123
github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/controller/namespace.(*NamespaceController).worker(0xc42e018a80)
        /Users/clayton/projects/origin/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/controller/namespace/namespace_controller.go:152 +0x48
github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/controller/namespace.(*NamespaceController).(github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/controller/namespace.worker)-fm()
        /Users/clayton/projects/origin/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/controller/namespace/namespace_controller.go:184 +0x2a
github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/util/wait.JitterUntil.func1(0xc42de00b90)
        /Users/clayton/projects/origin/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/util/wait/wait.go:88 +0x5e
github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/util/wait.JitterUntil(0xc42de00b90, 0x3b9aca00, 0x0, 0x3e42001, 0xc4201c00c0)
        /Users/clayton/projects/origin/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/util/wait/wait.go:89 +0xad
github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/util/wait.Until(0xc42de00b90, 0x3b9aca00, 0xc4201c00c0)
        /Users/clayton/projects/origin/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/util/wait/wait.go:49 +0x4d
created by github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/controller/namespace.(*NamespaceController).Run
        /Users/clayton/projects/origin/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/controller/namespace/namespace_controller.go:184 +0x110

@smarterclayton

Copy link
Copy Markdown
Contributor Author

This could actually be the deltafifo - if we got Replace'd and got the version of namespace without TerminationTimestamp set.

@smarterclayton

Copy link
Copy Markdown
Contributor Author

Well that's cute:

panic: Invalid state transition: ADDED -> ADDED [recovered]
    panic: Invalid state transition: ADDED -> ADDED
goroutine 94 [running]:
panic(0x44dac40, 0xc8205b59d0)
    /usr/local/go/src/runtime/panic.go:481 +0x3e6
github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0)
    /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/util/runtime/runtime.go:56 +0x153
panic(0x44dac40, 0xc8205b59d0)
    /usr/local/go/src/runtime/panic.go:443 +0x4e9
github.com/openshift/origin/pkg/client/cache.(*EventQueue).handleEvent(0xc8200db7c0, 0x5cec9c0, 0xc82063e5a0, 0x5defbf0, 0x5, 0x0, 0x0)
    /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/pkg/client/cache/eventqueue.go:128 +0xbbb
github.com/openshift/origin/pkg/client/cache.(*EventQueue).Add(0xc8200db7c0, 0x5cec9c0, 0xc82063e5a0, 0x0, 0x0)
    /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/pkg/client/cache/eventqueue.go:192 +0x56
github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/client/cache.(*Reflector).watchHandler(0xc8205af380, 0x7fd64388d428, 0xc8204d8810, 0xc820bbbc08, 0xc8205b8b40, 0xc82005c120, 0x0, 0x0)
    /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/client/cache/reflector.go:381 +0xd6b
github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/client/cache.(*Reflector).ListAndWatch(0xc8205af380, 0xc82005c120, 0x0, 0x0)

@smarterclayton
smarterclayton force-pushed the rebase branch 2 times, most recently from b0c159a to bda0f5f Compare September 9, 2016 18:30
@smarterclayton

Copy link
Copy Markdown
Contributor Author

[test] copr failure

@smarterclayton

Copy link
Copy Markdown
Contributor Author

[test]

1 similar comment
@smarterclayton

Copy link
Copy Markdown
Contributor Author

[test]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 65162e4

@openshift-bot

Copy link
Copy Markdown
Contributor

@smarterclayton

Copy link
Copy Markdown
Contributor Author

[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 65162e4

@openshift-bot

openshift-bot commented Sep 16, 2016 •

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/8899/) (Image: devenv-rhel7_5019)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants