Skip to content
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

extract the release image on a machine with internet #17569

Merged
merged 1 commit into from Nov 27, 2019

Conversation

kalexand-rh
Copy link
Contributor

Per @umohnani8 in Slack.

(@wking, FYI)

@jianlinliu, will you PTAL?

@openshift-docs-preview-bot

The preview will be available shortly at:

@jianlinliu
Copy link

jianlinliu commented Oct 24, 2019

Refer to https://jira.coreos.com/browse/CORS-1107?focusedCommentId=114277&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-114277,

all clusters that are created by using OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE are unsupported.

I am not sure @umohnani8's issue, but pls make sure really follow the steps in our official doc. https://docs.openshift.com/container-platform/4.2/installing/installing_restricted_networks/installing-restricted-networks-preparations.html#cli-installing-cli_installing-restricted-networks-preparations

To create the installation program that is based on the content that you mirrored, extract it and pin it to the release:

@kalexand-rh
Copy link
Contributor Author

Thank you for reminding me @jianlinliu, @umohnani8, do you have another suggestion for getting your customer back on track?

@umohnani8
Copy link

@kalexand-rh yeah we are just working on confirming the detail about the ENV variable. I will comment back here in a bit. But the oc adm release extract command is definitely wrong and not needed in the disconnected case.

@wking
Copy link
Member

wking commented Oct 24, 2019

Using the official installer without alteration is what we want to have work. Testing in openshift/release#5567. But until we get that green, extracting from the mirrored release like the master docs have is certainly more official than using the environment variable override.

@kalexand-rh
Copy link
Contributor Author

@wking, let me know when that merges so that we can account for it in doc. @umohnani8, I'm not going to merge this change as-is, but if there's additional information to present instead, please let me know so I can amend this PR.

@kalexand-rh
Copy link
Contributor Author

I'm going to close this PR. @umohnani8, please let me know if you have more information that you'd like me to incorporate.

@umohnani8
Copy link

@kalexand-rh can we reopen this. We confirmed that this works as expected. We need to remove the oc adm release extract command from the steps.

@kalexand-rh
Copy link
Contributor Author

@umohnani8, is it supported now? I hesitate to bring a change in that both Abhinav and Jianlin have declined.

@umohnani8
Copy link

Yeah, we don't want to add the OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE into the docs, so that should be removed.
But the oc adm release extract command should either be removed or moved up so that users know they have to run that on a machine that has access to the internet and then they can copy the artifacts over to the machine that is disconnected.
@wking @abhinavdahiya @christianh814 please correct me if I am mistaken.

@kalexand-rh kalexand-rh reopened this Nov 12, 2019
@openshift-ci-robot openshift-ci-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 12, 2019
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 22, 2019
@umohnani8
Copy link

LGTM
@wking PTAL

@kalexand-rh kalexand-rh changed the title don't extract the release image extract the release image on a machine with internet Nov 26, 2019
@kalexand-rh
Copy link
Contributor Author

Trevor says that this looks ok to him. @jianlinliu, are you ok with this change?

@jianlinliu
Copy link

But the oc adm release extract command should either be removed or moved up so that users know they have to run that on a machine that has access to the internet and then they can copy the artifacts over to the machine that is disconnected.

Actually I still can not figure out why user have to extract installer on a machine that has access to the internet. I agree Mirror the repository should be run on a machine that has access to the internet (In original doc, Complete the following steps on the bastion host already indicates that machine has access to the internet), but I can not agree extract installer have to be run on a machine that has access to the internet. Once release repository is mirrored onto mirror registry, any other disconnected machine can extract installer from the mirrored release repository, the connectivity between mirror registry and disconnected machine should be available, right? That is why we call the mirror registry machine as a bastion host. Do I miss something? Based on the PR is harmless for original process, I do not object to this PR too much.

@kalexand-rh
Copy link
Contributor Author

@jianlinliu, that's about where I am with this PR - I think that the existing direction to perform the steps on the bastion host was enough, but adding a reminder in a different location is harmless.

@kalexand-rh kalexand-rh added this to the Next Release milestone Nov 27, 2019
@kalexand-rh kalexand-rh added the peer-review-needed Signifies that the peer review team needs to review this PR label Nov 27, 2019
@@ -74,4 +74,6 @@ $ oc adm release extract --command=openshift-install "${LOCAL_REGISTRY}/${LOCAL_
To ensure that you use the correct images for the version of {product-title}
that you selected, you must extract the installation program from the mirrored
content.

You must perform this step on a machine with an active internet connection.
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider combining this with the previous sentence into a single admonition: "...you must extract the installation program from the mirrored content using a machine with an active internet connection."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If the major point of the PR wasn't "people are missing that you need to do this on a machine with internet," I'd take that improvement.

@bobfuru
Copy link
Contributor

bobfuru commented Nov 27, 2019

One small comment; otherwise, LGTM!

@bobfuru bobfuru added peer-review-done Signifies that the peer review team has reviewed this PR and removed peer-review-needed Signifies that the peer review team needs to review this PR labels Nov 27, 2019
@kalexand-rh kalexand-rh merged commit c85870c into openshift:master Nov 27, 2019
@kalexand-rh
Copy link
Contributor Author

/cherrypick enterprise-4.2

@openshift-cherrypick-robot

@kalexand-rh: new pull request created: #18340

In response to this:

/cherrypick enterprise-4.2

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@kalexand-rh
Copy link
Contributor Author

/cherrypick enterprise-4.3

@openshift-cherrypick-robot

@kalexand-rh: new pull request created: #18341

In response to this:

/cherrypick enterprise-4.3

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@jianlinliu
Copy link

Today someone reported similar issue - https://bugzilla.redhat.com/show_bug.cgi?id=1777890. I reproduced it, refer to that bug for more details. So now this PR sound reasonable for me now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch/enterprise-4.2 branch/enterprise-4.3 peer-review-done Signifies that the peer review team has reviewed this PR 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.

None yet

8 participants