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

[release-3.9] Fix version issue in openshift_facts when using custom image. #10413

Merged
merged 2 commits into from Oct 17, 2018

Conversation

patrickdillon
Copy link
Contributor

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1634004

This fixes a bug where customers using internal registry mirrors and custom images would fail to have the version added to openshift facts by passing the openshift_cli_image variable to openshift_facts. The openshift_cli_image will use a custom image or the default images; before it only used the default images, which might not be available in this case with an internal registry.

@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Oct 15, 2018
@sdodson
Copy link
Member

sdodson commented Oct 15, 2018

/cc @michaelgugino @sdodson @nak3

Copy link
Member

@sdodson sdodson left a comment

Choose a reason for hiding this comment

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

This LGTM, I'm slightly concerned about creating a recursion loop but I think given it's a default in openshift_facts it should be fine as long as that role has been imported already.

@@ -866,7 +864,13 @@ def get_openshift_version(facts):
image_tag = get_container_openshift_version(deployment_type)
if image_tag is None:
return version
cli_image = image_type_dict[deployment_type] + ":" + image_tag

try:
Copy link
Contributor

Choose a reason for hiding this comment

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

openshift_cli_image = facts['common'].get('openshift_cli_image')
if not openshift_cli_image:
    return version

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, if you want to take another look.

@openshift-ci-robot
Copy link

@patrickdillon: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/openshift-jenkins/gcp 584927d link /test gcp

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

Copy link
Contributor

@michaelgugino michaelgugino left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 16, 2018
@sdodson
Copy link
Member

sdodson commented Oct 16, 2018

/approve

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: michaelgugino, patrickdillon, sdodson
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:

If they are not already assigned, you can assign the PR to them by writing /assign in a comment when ready.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sdodson sdodson merged commit 6742c77 into openshift:release-3.9 Oct 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged. 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

4 participants