-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
cmd/openshift-install/upi: Add a user-provided-infrastructure subcommand #1393
cmd/openshift-install/upi: Add a user-provided-infrastructure subcommand #1393
Conversation
210a5b0
to
5b3626e
Compare
I'd forgotten that |
I was able to use this and detect the bootstrap complete event. Here are a couple notes during my session: [scuppett@cuppett installer]$ bin/openshift-install user-provided-infrastructure bootstrap-complete Notes: May be useful to identify the target address here. Just in case there's a weird mismatch between what the installer is thinking and the reality of the currently configured UPI. INFO API v1.12.4+bf1e6bd up Notes: Should we tell them to destroy the bootstrap here? [scuppett@cuppett installer]$ bin/openshift-install user-provided-infrastructure finish |
docs/user/customization.md
Outdated
@@ -184,7 +184,7 @@ For example: | |||
02-master-kubelet 2.2.0 137m | |||
01-worker-container-runtime 3.11.0-744-g5b05d9d3-dirty 2.2.0 137m | |||
01-worker-kubelet 3.11.0-744-g5b05d9d3-dirty 2.2.0 137m | |||
99-master-3c81ffa3-3b8d-11e9-ac1e-52fdfc072182-registries 3.11.0-744-g5b05d9d3-dirty 133m | |||
99-master-3c81ffa3-3b8d-11e9-ac1e-52fdfc072182-registries 3.11.0-744-g5b05d9d3-dirty docs/user/customization.md 133m |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
un-related change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, rogue paste. Will fix shortly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm |
/lgtm cancel |
To support the workflow described in upiLong. I've also replaced openshiftcorp.com with example.com to comply with [1]. That way readers don't need to worry about whether openshiftcorp.com exists and, if so, who owns it. I've updated the docs/user/aws/install.md examples to follow our current (with this PR) output: $ curl -s https://storage.googleapis.com/origin-ci-test/pr-logs/pull/openshift_installer/1393/pull-ci-openshift-installer-master-e2e-aws/4457/artifacts/e2e-aws/installer/.openshift_install.log | grep level=info | head -n13 time="2019-03-12T16:34:33Z" level=info msg="Consuming \"Install Config\" from target directory" time="2019-03-12T16:34:33Z" level=info msg="Creating cluster..." time="2019-03-12T16:51:21Z" level=info msg="Waiting up to 30m0s for the Kubernetes API at https://api.ci-op-j33s61i6-1d3f3.origin-ci-int-aws.dev.rhcloud.com:6443..." time="2019-03-12T16:55:29Z" level=info msg="API v1.12.4+341c822 up" time="2019-03-12T16:55:29Z" level=info msg="Waiting up to 30m0s for the bootstrap-complete event..." time="2019-03-12T17:04:56Z" level=info msg="Destroying the bootstrap resources..." time="2019-03-12T17:05:36Z" level=info msg="Waiting up to 30m0s for the cluster at https://api.ci-op-j33s61i6-1d3f3.origin-ci-int-aws.dev.rhcloud.com:6443 to initialize..." time="2019-03-12T17:14:56Z" level=info msg="Waiting up to 10m0s for the openshift-console route to be created..." time="2019-03-12T17:14:56Z" level=info msg="Install complete!" time="2019-03-12T17:14:56Z" level=info msg="Run 'export KUBECONFIG=/tmp/artifacts/installer/auth/kubeconfig' to manage the cluster with 'oc', the OpenShift CLI." time="2019-03-12T17:14:56Z" level=info msg="The cluster is ready when 'oc login -u kubeadmin -p 3MJb2-RRTfu-SKyuq-5NcCb' succeeds (wait a few minutes)." time="2019-03-12T17:14:56Z" level=info msg="Access the OpenShift web-console here: https://console-openshift-console.apps.ci-op-j33s61i6-1d3f3.origin-ci-int-aws.dev.rhcloud.com" time="2019-03-12T17:14:56Z" level=info msg="Login to the console with user: kubeadmin, password: 3MJb2-RRTfu-SKyuq-5NcCb" [1]: https://tools.ietf.org/html/rfc6761#section-6.5
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abhinavdahiya, wking The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Looks like I forgot to clean these up when pivoting from destroyBootstrap to waitForBootstrapComplete and removing the only directory consumer in bfc40f8 (cmd/openshift-install/upi: Add a user-provided-infrastructure subcommand, 2019-03-08, openshift#1393).
To support:
create FIXME
to create the bootstrap Ignition config and admin kubeconfig, create: separate bootstrap and node ignition config assets into separate targets #1119.user-provided-infrastructure bootstrap-complete
to wait until the bootstrap phase has completed.user-provided-infrastructure finish
to wait until the cluster finishes deploying its initial version. This also retrieves the router certificate authority from the cluster and inserts it into the admin kubeconfig.CC @abhinavdahiya, @staebler, @cuppett