Skip to content

Conversation

@cgwalters
Copy link
Member

Fork the current rhel7 Dockerfile and port it to rhel8. This
makes it easier to use both python2 and python3 at the same time,
which we need for gcloud (python2) and azure (python3).

We need to land this, then try changing CI to actually use
it in a rehearsal job in openshift/release.

Fork the current rhel7 Dockerfile and port it to rhel8.  This
makes it easier to use both python2 and python3 at the same time,
which we need for gcloud (python2) and azure (python3).

We need to land this, then try changing CI to actually use
it in a rehearsal job in openshift/release.
@cgwalters
Copy link
Member Author

cgwalters commented Mar 23, 2021

So the proposal here is to land this PR and then do a separate PR to openshift/release which switches to it (and starts ignoring the current Dockerfile.upi.ci) and also fixes the from: there to use rhel8. Then we can test the jobs via rehearsals.

Alternatively, we could try powering through this:

  • Overwrite the Dockerfile.upi.ci here with this and force merge
  • Quickly merge the fix to openshift/release
  • See if there's any fallout that needs fixing and iterate on that in this repo

openssl \
python3-pyOpenSSL \
python2-pyyaml \
python3-pyyaml \
Copy link
Member Author

Choose a reason for hiding this comment

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

Note we can easily get both python2+3 pyyaml now too; there's a lot of stuff in openshift/release still using python (aka python2).

Copy link
Contributor

@staebler staebler left a comment

Choose a reason for hiding this comment

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

Long term I would like to separate out this image into smaller images that are built as supplemental CI images. But the changes in this PR seem reasonable as a short-term solution. Or I suppose even long-term we would still want to have the UPI image built on rhel8 rather than rhel7.


# Not packaged for Python 2, but required by gcloud. See https://cloud.google.com/sdk/crypto
RUN pip-2 install pyopenssl
ENV CLOUDSDK_PYTHON=/usr/bin/python
Copy link
Contributor

Choose a reason for hiding this comment

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

This may not be needed any more.

@cgwalters
Copy link
Member Author

Yeah, we could perhaps just do that now too - something like a new github.com/openshift/installer-upi-ci repo? Or just stick this Dockerfile inline into openshift/release ?

Or I suppose even long-term we would still want to have the UPI image built on rhel8 rather than rhel7.

Definitely, no reason to drag rhel7 around longer.

@staebler
Copy link
Contributor

Yeah, we could perhaps just do that now too - something like a new github.com/openshift/installer-upi-ci repo? Or just stick this Dockerfile inline into openshift/release ?

I was thinking about putting the images in https://github.com/openshift/release/tree/master/clusters/app.ci/supplemental-ci-images, which I just learned about today.

Copy link
Contributor

@staebler staebler 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 Mar 24, 2021
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: staebler

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-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 24, 2021
@openshift-bot
Copy link
Contributor

/retest

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

3 similar comments
@openshift-bot
Copy link
Contributor

/retest

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

@openshift-bot
Copy link
Contributor

/retest

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

@openshift-bot
Copy link
Contributor

/retest

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

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 24, 2021

@cgwalters: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-aws-workers-rhel7 a19894d link /test e2e-aws-workers-rhel7

Full PR test history. Your PR dashboard.

Details

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.

@openshift-bot
Copy link
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 796a990 into openshift:master Mar 24, 2021
cgwalters added a commit to cgwalters/release that referenced this pull request Mar 24, 2021
This actually starts making use of the new rhel8 Dockerfile from:
openshift/installer#4785

We need this to sanely use both python2 and python3 at the same time,
which we need for gcloud (python2) and azure (python3).
@cgwalters
Copy link
Member Author

PR to use this in openshift/release#17110

cgwalters added a commit to cgwalters/release that referenced this pull request Apr 7, 2021
This actually starts making use of the new rhel8 Dockerfile from:
openshift/installer#4785

We need this to sanely use both python2 and python3 at the same time,
which we need for gcloud (python2) and azure (python3).
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. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants