[SERVER-17517] mongodb-org rpm packages no longer "provide" mongo-10gen-server Created: 09/Mar/15  Updated: 18/Sep/15  Resolved: 11/Mar/15

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: None
Fix Version/s: 3.0.1, 3.1.0

Type: Bug Priority: Major - P3
Reporter: Justin Stallard Assignee: Ernie Hershey
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-19893 Generate packages on their own platforms Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Steps To Reproduce:

Add mongodb-org-3.0.0 rpm to our repo
yum install mongodb-10gen-server
yum tries to install 2.4.x packages

Participants:

 Description   

Up until the 3.0 release, the mongodb-org rpm packages had a "Provides" line for "mongo-10gen-server". This ensured "yum install mongo-10gen-server" would install the latest "mongodb-org" package, despite the name difference. This is no longer the case.



 Comments   
Comment by Josef Wegner [ 11/Mar/15 ]

Thank you, ernie.hershey@10gen.com. The 3.0.0-3 and 3.0.1-0.3.rc0 RPMs work fine now.

Comment by Ernie Hershey [ 11/Mar/15 ]

The latest issue has been corrected in master and backported to 3.0. I've re-generated 3.0.1-rc0 packages and 3.0.0 packages as 3.0.1-0.3.rc0 and 3.0.0-3 package versions. jwegne can you run 'yum clean all' to clear your local repo cache and try again?

Comment by Githook User [ 11/Mar/15 ]

Author:

{u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}

Message: SERVER-17517 Revert RPM conflicts to match 2.6

(cherry picked from commit 665f406b79678fda71a66e2d4aed63dfeddbc648)
Branch: v3.0
https://github.com/mongodb/mongo/commit/51155cf3524b8faa5736cb16a29e54ac19bf045c

Comment by Githook User [ 11/Mar/15 ]

Author:

{u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}

Message: SERVER-17517 Revert RPM conflicts to match 2.6
Branch: master
https://github.com/mongodb/mongo/commit/665f406b79678fda71a66e2d4aed63dfeddbc648

Comment by Ernie Hershey [ 11/Mar/15 ]

I'm looking into that error now.

Comment by Josef Wegner [ 11/Mar/15 ]

Hi,

It seems that this change caused some issues for me. I get a conflict error for mongodb-org 3.0.0-2 and 3.0.1-0.1.rc0.

The system is a custom docker images based on the official centos7 docker image.

# cat /etc/yum.repos.d/mongodb-org-3.0.repo
[mongodb-org-3.0]
name=MongoDB 3.0 Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/testing/$basearch/
gpgcheck=0
enabled=1
 
# yum install mongodb-org
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.strencom.net
 * extras: mirror.sov.uk.goscomb.net
 * updates: mirror.strencom.net
Resolving Dependencies
--> Running transaction check
---> Package mongodb-org.x86_64 0:3.0.1-0.1.rc0.el7 will be installed
--> Processing Dependency: mongodb-org-tools = 3.0.1 for package: mongodb-org-3.0.1-0.1.rc0.el7.x86_64
--> Processing Dependency: mongodb-org-mongos = 3.0.1 for package: mongodb-org-3.0.1-0.1.rc0.el7.x86_64
--> Processing Dependency: mongodb-org-server = 3.0.1 for package: mongodb-org-3.0.1-0.1.rc0.el7.x86_64
--> Processing Dependency: mongodb-org-shell = 3.0.1 for package: mongodb-org-3.0.1-0.1.rc0.el7.x86_64
--> Running transaction check
---> Package mongodb-org-mongos.x86_64 0:3.0.1-0.1.rc0.el7 will be installed
---> Package mongodb-org-server.x86_64 0:3.0.1-0.1.rc0.el7 will be installed
--> Processing Dependency: openssl for package: mongodb-org-server-3.0.1-0.1.rc0.el7.x86_64
---> Package mongodb-org-shell.x86_64 0:3.0.1-0.1.rc0.el7 will be installed
---> Package mongodb-org-tools.x86_64 0:3.0.1-0.1.rc0.el7 will be installed
--> Running transaction check
---> Package openssl.x86_64 1:1.0.1e-34.el7_0.7 will be installed
--> Processing Dependency: make for package: 1:openssl-1.0.1e-34.el7_0.7.x86_64
--> Running transaction check
---> Package make.x86_64 1:3.82-21.el7 will be installed
--> Processing Conflict: mongodb-org-shell-3.0.1-0.1.rc0.el7.x86_64 conflicts mongo-10gen-server
--> Processing Conflict: mongodb-org-shell-3.0.1-0.1.rc0.el7.x86_64 conflicts mongo-10gen
--> Processing Conflict: mongodb-org-mongos-3.0.1-0.1.rc0.el7.x86_64 conflicts mongo-10gen-server
--> Processing Conflict: mongodb-org-mongos-3.0.1-0.1.rc0.el7.x86_64 conflicts mongo-10gen
--> Processing Conflict: mongodb-org-tools-3.0.1-0.1.rc0.el7.x86_64 conflicts mongo-10gen-server
--> Processing Conflict: mongodb-org-tools-3.0.1-0.1.rc0.el7.x86_64 conflicts mongo-10gen
--> Processing Conflict: mongodb-org-server-3.0.1-0.1.rc0.el7.x86_64 conflicts mongo-10gen
--> Processing Conflict: mongodb-org-3.0.1-0.1.rc0.el7.x86_64 conflicts mongo-10gen-server
--> Finished Dependency Resolution
Error: mongodb-org-shell conflicts with mongodb-org-3.0.1-0.1.rc0.el7.x86_64
Error: mongodb-org-tools conflicts with mongodb-org-3.0.1-0.1.rc0.el7.x86_64
Error: mongodb-org-server conflicts with mongodb-org-3.0.1-0.1.rc0.el7.x86_64
Error: mongodb-org-mongos conflicts with mongodb-org-server-3.0.1-0.1.rc0.el7.x86_64
Error: mongodb-org conflicts with mongodb-org-server-3.0.1-0.1.rc0.el7.x86_64
Error: mongodb-org-shell conflicts with mongodb-org-server-3.0.1-0.1.rc0.el7.x86_64
Error: mongodb-org-mongos conflicts with mongodb-org-3.0.1-0.1.rc0.el7.x86_64
Error: mongodb-org-tools conflicts with mongodb-org-server-3.0.1-0.1.rc0.el7.x86_64
 You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
fakesystemd-1-17.el7.centos.noarch has installed conflicts systemd: fakesystemd-1-17.el7.centos.noarch

# cat /etc/yum.repos.d/mongodb-org-3.0.repo
[mongodb-org-3.0]
name=MongoDB 3.0 Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.0/$basearch/
gpgcheck=0
enabled=1
 
# yum install mongodb-org
Loaded plugins: fastestmirror
base                                                                                                                                                                                                                                                                                                   | 3.6 kB  00:00:00
extras                                                                                                                                                                                                                                                                                                 | 3.4 kB  00:00:00
mongodb-org-3.0                                                                                                                                                                                                                                                                                        |  951 B  00:00:00
updates                                                                                                                                                                                                                                                                                                | 3.4 kB  00:00:00
(1/4): extras/7/x86_64/primary_db                                                                                                                                                                                                                                                                      |  43 kB  00:00:00
(2/4): base/7/x86_64/group_gz                                                                                                                                                                                                                                                                          | 157 kB  00:00:00
(3/4): base/7/x86_64/primary_db                                                                                                                                                                                                                                                                        | 4.9 MB  00:00:01
(4/4): updates/7/x86_64/primary_db                                                                                                                                                                                                                                                                     | 6.6 MB  00:00:03
mongodb-org-3.0/7/x86_64/primary                                                                                                                                                                                                                                                                       | 3.3 kB  00:00:00
Determining fastest mirrors
 * base: centosr4.centos.org
 * extras: mirror.bytemark.co.uk
 * updates: mirror.bytemark.co.uk
mongodb-org-3.0                                                                                                                                                                                                                                                                                                         10/10
Resolving Dependencies
--> Running transaction check
---> Package mongodb-org.x86_64 0:3.0.0-2.el7 will be installed
---> Package mongodb-org-mongos.x86_64 0:3.0.0-2.el7 will be installed
---> Package mongodb-org-server.x86_64 0:3.0.0-2.el7 will be installed
--> Processing Dependency: openssl for package: mongodb-org-server-3.0.0-2.el7.x86_64
---> Package mongodb-org-shell.x86_64 0:3.0.0-2.el7 will be installed
---> Package mongodb-org-tools.x86_64 0:3.0.0-2.el7 will be installed
--> Running transaction check
---> Package openssl.x86_64 1:1.0.1e-34.el7_0.7 will be installed
--> Processing Dependency: make for package: 1:openssl-1.0.1e-34.el7_0.7.x86_64
--> Running transaction check
---> Package make.x86_64 1:3.82-21.el7 will be installed
--> Processing Conflict: mongodb-org-server-3.0.0-2.el7.x86_64 conflicts mongo-10gen
--> Processing Conflict: mongodb-org-shell-3.0.0-2.el7.x86_64 conflicts mongo-10gen-server
--> Processing Conflict: mongodb-org-shell-3.0.0-2.el7.x86_64 conflicts mongo-10gen
--> Processing Conflict: mongodb-org-3.0.0-2.el7.x86_64 conflicts mongo-10gen-server
--> Processing Conflict: mongodb-org-mongos-3.0.0-2.el7.x86_64 conflicts mongo-10gen-server
--> Processing Conflict: mongodb-org-mongos-3.0.0-2.el7.x86_64 conflicts mongo-10gen
--> Processing Conflict: mongodb-org-tools-3.0.0-2.el7.x86_64 conflicts mongo-10gen-server
--> Processing Conflict: mongodb-org-tools-3.0.0-2.el7.x86_64 conflicts mongo-10gen
--> Finished Dependency Resolution
Error: mongodb-org conflicts with mongodb-org-server-3.0.0-2.el7.x86_64
Error: mongodb-org-mongos conflicts with mongodb-org-server-3.0.0-2.el7.x86_64
Error: mongodb-org-tools conflicts with mongodb-org-server-3.0.0-2.el7.x86_64
Error: mongodb-org-server conflicts with mongodb-org-3.0.0-2.el7.x86_64
Error: mongodb-org-tools conflicts with mongodb-org-3.0.0-2.el7.x86_64
Error: mongodb-org-mongos conflicts with mongodb-org-3.0.0-2.el7.x86_64
Error: mongodb-org-shell conflicts with mongodb-org-server-3.0.0-2.el7.x86_64
Error: mongodb-org-shell conflicts with mongodb-org-3.0.0-2.el7.x86_64
 You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
fakesystemd-1-17.el7.centos.noarch has installed conflicts systemd: fakesystemd-1-17.el7.centos.noarch

Comment by Githook User [ 09/Mar/15 ]

Author:

{u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}

Message: SERVER-17517 Re-add Obsoletes and Provides RPM tags

(cherry picked from commit ff83bfcc085a777b7368a70b12bb874f0e24123d)
Branch: v3.0
https://github.com/mongodb/mongo/commit/95d9052efa2111bd1dc902122ff8d2817c08f0e8

Comment by Githook User [ 09/Mar/15 ]

Author:

{u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}

Message: SERVER-17517 Re-add Obsoletes and Provides RPM tags
Branch: master
https://github.com/mongodb/mongo/commit/ff83bfcc085a777b7368a70b12bb874f0e24123d

Generated at Thu Feb 08 03:44:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.