Skip to content

dind: serialize master and node cert generation - #19188

Merged
openshift-merge-robot merged 1 commit into
openshift:masterfrom
danwinship:serialize-dind-ca
Apr 5, 2018
Merged

openshift-merge-robot merged 1 commit into
openshift:masterfrom
danwinship:serialize-dind-ca

Conversation

@danwinship

Copy link
Copy Markdown
Contributor

We're ensuring that two nodes don't try to generate their certs at the same time, but we're not ensuring that a node and the master don't both generate certs at the same time. For a long time nothing noticed, but starting a few months ago it will cause the master to fail.

Fixes #18765

@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Apr 2, 2018
@danwinship

Copy link
Copy Markdown
Contributor Author

eg in https://openshift-gce-devel.appspot.com/build/origin-ci-test/pr-logs/pull/19180/test_pull_request_origin_extended_networking/20/ it appears that nettest-node-2 generates its config while the master is generating its certs (while nettest-node-1 waits for nettest-node-2 to finish).

Apr 02 16:11:51 nettest-master openshift-generate-master-config.sh[160]: Generated new key pair as /data/openshift.local.config/master/serviceaccounts.public.key and /data/openshift.local.config/master/serviceaccounts.private.key
Apr 02 16:11:53 nettest-master openshift-generate-master-config.sh[160]: F0402 16:11:53.482532     184 start_master.go:98] serial file /data/openshift.local.config/master/ca.serial.txt out of sync ram=8 disk=9

Apr 02 16:11:51 nettest-node-1 openshift-generate-node-config.sh[169]: Waiting for admin config
Apr 02 16:11:53 nettest-node-1 openshift-generate-node-config.sh[169]: Generating node credentials ...
Apr 02 16:11:54 nettest-node-1 openshift-generate-node-config.sh[169]: Created node config for nettest-node-1 in /data/openshift.local.config/node-nettest-node-1

Apr 02 16:11:49 nettest-node-2 openshift-generate-node-config.sh[161]: Waiting for admin config
Apr 02 16:11:53 nettest-node-2 openshift-generate-node-config.sh[161]: Generating node credentials ...
Apr 02 16:11:53 nettest-node-2 openshift-generate-node-config.sh[161]: Created node config for nettest-node-2 in /data/openshift.local.config/node-nettest-node-2

@danwinship danwinship added kind/bug Categorizes issue or PR as related to a bug. component/networking sig/networking labels Apr 2, 2018
@danwinship
danwinship requested a review from dcbw April 2, 2018 18:07

@pravisankar pravisankar left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

good catch!
/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 2, 2018
@JacobTanenbaum

Copy link
Copy Markdown
Contributor

LGTM

@danwinship

Copy link
Copy Markdown
Contributor Author

/retest

@knobunc knobunc left a comment

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.

/lgtm
/approve

Thanks Dan

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 4, 2018
@dcbw

dcbw commented Apr 4, 2018

Copy link
Copy Markdown
Contributor

/lgtm
/approve

@openshift-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: danwinship, dcbw, knobunc, pravisankar

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@dcbw

dcbw commented Apr 5, 2018

Copy link
Copy Markdown
Contributor

/test gcp

@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

2 similar comments
@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot
openshift-merge-robot merged commit 81e3078 into openshift:master Apr 5, 2018
@danwinship
danwinship deleted the serialize-dind-ca branch April 5, 2018 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. component/networking kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. sig/networking size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants