[SERVER-71472] mongodb-enterprise package for rhel 7 enterprise 4.2 is broken due to the dependency problem Created: 17/Nov/22  Updated: 29/Oct/23  Resolved: 20/Jan/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: Tural Farhadov Assignee: Ryan Egesdahl (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
is related to SERVER-71250 Nightly package tests fail due to mis... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 49

 Description   

Error: Package: mongodb-enterprise-4.2.23-1.el7.x86_64 (mongodb)
           Requires: mongodb-enterprise-tools = 4.2.23
           Available: mongodb-enterprise-tools-4.2.6-1.el7.x86_64 (mongodb)
               mongodb-enterprise-tools = 4.2.6-1.el7

You can reproduce by building this docker image:

FROM artifactory.corp.mongodb.com/release-tools-container-registry-virtual/rhel7/rhel
RUN echo $'\n\
[mongodb]\n\
name=MongoDB Repository\n\
baseurl=https://repo.mongodb.com/yum/redhat/$releasever/mongodb-enterprise/4.2/x86_64/\n\
gpgcheck=1\n\
enabled=1\n\
gpgkey=https://www.mongodb.org/static/pgp/server-4.2.asc' > /etc/yum.repos.d/mongodb.repo
RUN bash -c $'\n\
subscription-manager register --username <rheluser> --password <rhelpwd> --auto-attach \n\
yum install -y mongodb-enterprise\n\
exit_code=$? \n\
subscription-manager remove --all \n\
subscription-manager unregister \n\
exit $exit_code \n\
' 

Change the rheuser and rhelpwd with credentials to be able to build that image.



 Comments   
Comment by Githook User [ 20/Jan/23 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-71472 Add tools and mongosh packages to test_packages_complete
Branch: master
https://github.com/mongodb/mongo/commit/0a909d3764ccb4e24d3edd09ea9dc94a10821b99

Comment by Ryan Egesdahl (Inactive) [ 01/Dec/22 ]

It looks like the real problem was that there were some missing packages in the v4.2 RPM repository for some reason. This has happened off and on in the past, and the lack of package testing is probably the reason it went unnoticeed. dylan.richardson@mongodb.com checked and made sure the packages are present, so we're going to treat this ticket as a reminder that the new package testing infrastructure needs to cover this scenario.

Comment by Ryan Egesdahl (Inactive) [ 18/Nov/22 ]

alexander.neben@mongodb.com We have a RHEL 7 docker image, and we're currently using it for builds from master, in fact. No, the problem here is essentially the same as in SERVER-71250: we're just not downloading the packages. I think I've found the cause for that, and I'm going to put my analysis in SERVER-71250. I think this ticket depends on that one, since we can't effectively test older server versions right now.

Generated at Thu Feb 08 06:19:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.