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

Fix default EPEL location for CentOS 7. #252

Merged
merged 1 commit into from
Jun 16, 2020

Conversation

codenrhoden
Copy link
Contributor

A recent change (#218) made it possible to set the EPEL location to an empty
string to skip installing EPEL. Since this var is now always set by
Packer, not setting it makes it be an empty string, and since extra-vars
take precedence in Ansible, the net effect is that the var was always
set to an empty string, even though a default is set in the Ansible
role.

This patch sets the default value for CentOS 7 back as it was. The
addition is only the CentOS 7 file for OVAs, so it does not effect AL2,
and if needed in a future CentOS 8 distro, a release specific version
can be set there as well.

/assign @detiber
/cc @voor

@k8s-ci-robot
Copy link
Contributor

@codenrhoden: GitHub didn't allow me to request PR reviews from the following users: voor.

Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

A recent change (#218) made it possible to set the EPEL location to an empty
string to skip installing EPEL. Since this var is now always set by
Packer, not setting it makes it be an empty string, and since extra-vars
take precedence in Ansible, the net effect is that the var was always
set to an empty string, even though a default is set in the Ansible
role.

This patch sets the default value for CentOS 7 back as it was. The
addition is only the CentOS 7 file for OVAs, so it does not effect AL2,
and if needed in a future CentOS 8 distro, a release specific version
can be set there as well.

/assign @detiber
/cc @voor

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.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 15, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: codenrhoden

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

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 15, 2020
@voor
Copy link
Member

voor commented Jun 15, 2020

Well look at that, it's quietly skipping on AL2 and CentOS7 on AWS as well. EPEL is not actually needed in those environments, so we probably need to consider whether these changes are similarly necessary in AWS as well, since it was an unexpected change.

@codenrhoden
Copy link
Contributor Author

Well look at that, it's quietly skipping on AL2 and CentOS7 on AWS as well. EPEL is not actually needed in those environments, so we probably need to consider whether these changes are similarly necessary in AWS as well, since it was an unexpected change.

@voor If EPEL isn't need for the AMI builds, just adding it back for OVA should be enough, yes? I haven't been doing any AWS builds, but I am no setup to do so. So I could try to do the builds with and without this change.

I was definitely thinking that this was only needed for OVAs. But I should check the AMIs!

@voor
Copy link
Member

voor commented Jun 15, 2020

I'm wrong, it is needed for CentOS7 in AWS because python2-pip is not available in the CentOS7 repositories anymore.

@voor
Copy link
Member

voor commented Jun 15, 2020

Building right now with "redhat_epel_rpm": "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm", added to images/capi/packer/ami/packer.json that should solve the problem for AWS

There's no CentOS7 build in Azure yet.

@voor
Copy link
Member

voor commented Jun 15, 2020

Yes, same change in images/capi/packer/ami/packer.json fixes CentOS7 on AWS.

image

@codenrhoden
Copy link
Contributor Author

Perfect. Let me know if that fixes things (I'm certain it will). That's the same issue I hit when building CentOS OVAs. I'll update this PR with that change when you give it a 👍 .

A recent change made it possible to set the EPEL location to an empty
string to skip installing EPEL. Since this var is now always set by
Packer, not setting it makes it be an empty string, and since extra-vars
take precedence in Ansible, the net effect is that the var was *always*
set to an empty string, even though a default is set in the Ansible
role.

This patch sets the default value for CentOS 7 back as it was. The
addition is only the CentOS 7 file for OVAs, so it does not effect AL2,
and if needed in a future CentOS 8 distro, a release specific version
can be set there as well.
@codenrhoden
Copy link
Contributor Author

Thanks for looking, @voor! Something something...I need to add PR CI...Something Something...

@voor
Copy link
Member

voor commented Jun 15, 2020

Yes, we should probably also remove all python2 dependencies from these images.

@codenrhoden
Copy link
Contributor Author

Yes, we should probably also remove all python2 dependencies from these images.

Yeah... Was just talking about that today: #249 (comment)

Once you are happy, any chance you can /lgtm? Not sure if you can without being in kubernetes-sigs...

@voor
Copy link
Member

voor commented Jun 16, 2020

/lgtm

@k8s-ci-robot
Copy link
Contributor

@voor: changing LGTM is restricted to collaborators

In response to this:

/lgtm

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.

@randomvariable
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 16, 2020
@k8s-ci-robot k8s-ci-robot merged commit 7720f19 into kubernetes-sigs:master Jun 16, 2020
@codenrhoden codenrhoden deleted the epel-default branch June 16, 2020 14:48
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants