-
Notifications
You must be signed in to change notification settings - Fork 59
base/*: Set skip_missing_names_on_install=0 in /etc/yum.conf #11
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
base/*: Set skip_missing_names_on_install=0 in /etc/yum.conf #11
Conversation
2dac391 to
d1a1afb
Compare
base/Dockerfile.rhel
Outdated
| yum install -y --setopt=tsflags=nodocs ${INSTALL_PKGS} && \ | ||
| yum clean all && rm -rf /var/cache/* | ||
| yum clean all && rm -rf /var/cache/* && \ | ||
| echo 'skip_missing_names_on_install=0' >> /etc/yum.conf |
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.
Do we need a leading newline?
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.
Not that I saw when I tested in the container manually.
|
/retest |
|
/lgtm |
pecameron
left a comment
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.
Do we need to set the yum.conf file before the yum install?
|
/lgtm cancel
Good idea, I think the main goal was to fix downstream images but I think reordering things here as well makes sense. |
base/Dockerfile
Outdated
| yum clean all && \ | ||
| mkdir -p /var/lib/origin | ||
| mkdir -p /var/lib/origin && \ | ||
| echo 'skip_missing_names_on_install=0' >> /etc/yum.conf |
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.
Yeah move this up and then nuke rpm INSTALL_PKGS
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.
sounds good
Ensure yum install fails if a package is missing.
d1a1afb to
56fc2fe
Compare
|
Updated to move the config option before yum install. |
|
/lgtm |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chancez, sdodson, smarterclayton The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This is a dependency of the ironic packages (via the python2-oslo-db package) already, and copying this dependency to the downstream el8 based dockerfile has caused issues since[1] made some of the image building checks stricter, I assume this is because the package name is different but I don't have a specfile reference atm. This has led to [2] failing CI, and rather than just fix that downstream we should probably make things consistent and remove this spuruious install, then let RPM dependencies defined by the package maintainers do the right thing on each platform? [1] openshift/images#11 [2] openshift#15
This is a dependency of the ironic packages (via the python2-oslo-db package) already, and copying this dependency to the downstream el8 based dockerfile has caused issues since[1] made some of the image building checks stricter, I assume this is because the package name is different but I don't have a specfile reference atm. This has led to [2] failing CI, and rather than just fix that downstream we should probably make things consistent and remove this spuruious install, then let RPM dependencies defined by the package maintainers do the right thing on each platform? [1] openshift/images#11 [2] openshift#15
Ensure yum install fails if a package is missing.