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

Ensure latest samba is installed #956

Merged
merged 2 commits into from
Apr 12, 2023
Merged

Conversation

bdunne
Copy link
Member

@bdunne bdunne commented Apr 10, 2023

  • Update CentOS release packages
  • dnf update system packages to allow for newer packages to be installed (samba-*) later in the dockerfile

This brings samba packages up to date:

samba-common-4.17.5-0.el8.noarch
libwbclient-4.17.5-0.el8.x86_64
samba-common-libs-4.17.5-0.el8.x86_64
samba-client-libs-4.17.5-0.el8.x86_64

bdunne added 2 commits April 10, 2023 17:05
Stay up to date in case older versions are purged from the repo.
This will allow for newer samba packages
@bdunne bdunne changed the title Ensure latest samba Ensure latest samba is installed Apr 12, 2023
@kbrock kbrock assigned kbrock and unassigned Fryguy Apr 12, 2023
@kbrock kbrock merged commit 1e331e5 into ManageIQ:master Apr 12, 2023
@bdunne bdunne deleted the ensure_latest_samba branch April 12, 2023 14:28
dnf config-manager --setopt=appstream*.exclude=*httpd*,mod_ssl --save \
; fi && \
dnf -y install \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm \
https://rpm.manageiq.org/release/17-quinteros/el8/noarch/manageiq-release-17.0-1.el8.noarch.rpm && \
dnf -y update && \
Copy link
Member

Choose a reason for hiding this comment

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

@bdunne can we do this on the appliance side as well to keep it consistent?

Copy link
Member Author

Choose a reason for hiding this comment

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

This shouldn't be necessary on the appliances since the installer will pick the latest available at installation time. We only need this because there may be changes since the base image was created.

@jrafanie
Copy link
Member

As an aside, what still uses smb shares? Log collection did but I think that's largely been replaced with collect-logs. Maybe pxe servers? I vaguely recall @Fryguy wanted to remove samba entirely from podified.

@Fryguy
Copy link
Member

Fryguy commented Apr 18, 2023

I narrowed it down here ManageIQ/manageiq-rpm_build#281 (comment)

@Fryguy
Copy link
Member

Fryguy commented Apr 26, 2023

@bdunne A conflict occurred during the backport of this pull request to petrosian.

If this pull request is based on another pull request that has not been marked for backport, add the appropriate labels to the other pull request. Otherwise, please create a new pull request direct to the petrosian branch in order to resolve this.

Conflict details:

diff --cc images/manageiq-base/Dockerfile
index 069ea53,cf417c9..0000000
--- a/images/manageiq-base/Dockerfile
+++ b/images/manageiq-base/Dockerfile
@@@ -46,9 -48,10 +48,14 @@@ RUN dnf config-manager --setopt=tsflags
      ; fi && \
      dnf -y install \
        https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm \
++<<<<<<< HEAD
 +      https://rpm.manageiq.org/release/16-petrosian/el8/noarch/manageiq-release-16.0-1.el8.noarch.rpm && \
++=======
+       https://rpm.manageiq.org/release/17-quinteros/el8/noarch/manageiq-release-17.0-1.el8.noarch.rpm && \
+     dnf -y update && \
++>>>>>>> 1e331e5 (Merge pull request #956 from bdunne/ensure_latest_samba)
      dnf -y module enable postgresql:13 ruby:3.0 && \
 -    if [[ "$RELEASE_BUILD" != "true" ]]; then dnf config-manager --enable manageiq-17-quinteros-nightly; fi && \
 +    if [[ "$RELEASE_BUILD" != "true" ]]; then dnf config-manager --enable manageiq-16-petrosian-nightly; fi && \
      dnf config-manager --setopt=ubi-8-*.exclude=dracut*,net-snmp*,perl-*,redhat-release* --save && \
      if [[ "$LOCAL_RPM" = "true" ]]; then /create_local_yum_repo.sh; fi && \
      dnf -y install \

bdunne pushed a commit that referenced this pull request Apr 26, 2023
Ensure latest samba is installed

(cherry picked from commit 1e331e5)
@bdunne
Copy link
Member Author

bdunne commented Apr 26, 2023

Backported to petrosian via 6665e6b

commit 6665e6b44fe0be557cc17fb2d3bd713e5cb54151
Author: Keenan Brock <[email protected]>
Date:   Wed Apr 12 10:26:31 2023 -0400

    Merge pull request #956 from bdunne/ensure_latest_samba
    
    Ensure latest samba is installed
    
    (cherry picked from commit 1e331e53b200a7d9f27cd065ef08f4fb713af8fe)

bdunne added a commit to bdunne/manageiq-pods that referenced this pull request Apr 27, 2023
httpd will still come from the UBI appstream repo due to the exclusion set above.

When the release RPM is swapped, the RPM scripts from that and shadow-utils
reset the contents of /etc/passwd causing the apache user to be removed and
httpd fails to start due to the missing user.

Based on changes in ManageIQ#956
bdunne added a commit to bdunne/manageiq-pods that referenced this pull request Apr 27, 2023
httpd will still come from the UBI appstream repo due to the exclusion set above.

When the release RPM is swapped, the RPM scripts from that and shadow-utils
reset the contents of /etc/passwd causing the apache user to be removed and
httpd fails to start due to the missing user.

Based on changes in ManageIQ#956
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants