[SERVER-9016] In redhat, installing old version of mongo-10gen-server package installs newer client package Created: 18/Mar/13  Updated: 04/Apr/17  Resolved: 07/Apr/14

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: 2.4.0-rc3
Fix Version/s: 2.5.5

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

Issue Links:
Duplicate
is duplicated by SERVER-13506 Upgrading RPM metapackage from RC doe... Closed
Related
related to SERVER-24459 Dependencies from meta package do not... Closed
is related to SERVER-17408 Debian installer for 2.6.8 does not i... Closed
is related to SERVER-28536 Ubuntu mongodb-org metapackage does n... Closed
is related to SERVER-13506 Upgrading RPM metapackage from RC doe... Closed
Backwards Compatibility: Fully Compatible
Operating System: Linux
Participants:

 Description   

For example, tested in Fedora 18:
Running "sudo yum install mongo-10gen-server-2.0.7"
will install mongo-10gen 2.4.0 to satisfy the dependency. It should install mongo-10gen 2.0.7 to match the version of the server package mongo-10gen-server-2.0.7



 Comments   
Comment by Githook User [ 20/Dec/13 ]

Author:

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

Message: SERVER-9016 Make meta-package rpm require same version sub-packages (unstable)
Branch: master
https://github.com/mongodb/mongo/commit/82bc60e052b4d226632bf2c9d73e8fb2c3b509ec

Comment by Ernie Hershey [ 06/Dec/13 ]

If I specify the versions of sub-packages in the control file as Depends or Pre-Depends, I get an error in Ubuntu. I don't think this is going to be fixable easily in Debian/Ubuntu. I'll dig into it more if anyone other than me shows interest in this problem.

Using test packages:

# Line from control file: 
# Pre-Depends: mongodb-enterprise-unstable-shell (= ${source:Version}), mongodb-enterprise-unstable-server (= ${source:Version}), mongodb-enterprise-unstable-mongos (= ${source:Version}), mongodb-enterprise-unstable-tools (= ${source:Version})
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
 
The following packages have unmet dependencies:
 mongodb-org-unstable : PreDepends: mongodb-org-unstable-shell (= 2.5.3) but 2.5.4 is to be installed
                        PreDepends: mongodb-org-unstable-server (= 2.5.3) but 2.5.4 is to be installed
                        PreDepends: mongodb-org-unstable-mongos (= 2.5.3) but 2.5.4 is to be installed
                        PreDepends: mongodb-org-unstable-tools (= 2.5.3) but 2.5.4 is to be installed
E: Unable to correct problems, you have held broken packages.
ubuntu@ip-10-238-189-24:~$

Comment by Ernie Hershey [ 06/Dec/13 ]

Also reproduced in Ubuntu -

ubuntu@ip-10-238-189-24:/etc/apt/sources.list.d$ sudo apt-get install mongodb-org-unstable=2.5.3
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  mongodb-org-unstable-mongos mongodb-org-unstable-server mongodb-org-unstable-shell mongodb-org-unstable-tools
The following NEW packages will be installed:
  mongodb-org-unstable mongodb-org-unstable-mongos mongodb-org-unstable-server mongodb-org-unstable-shell mongodb-org-unstable-tools
0 upgraded, 5 newly installed, 0 to remove and 123 not upgraded.
Need to get 109 MB of archives.
After this operation, 278 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://downloads-distro.mongodb.org/repo/ubuntu-upstart/ dist/10gen mongodb-org-unstable-shell amd64 2.5.4 [3,824 kB]
Get:2 http://downloads-distro.mongodb.org/repo/ubuntu-upstart/ dist/10gen mongodb-org-unstable-server amd64 2.5.4 [9,054 kB]
Get:3 http://downloads-distro.mongodb.org/repo/ubuntu-upstart/ dist/10gen mongodb-org-unstable-mongos amd64 2.5.4 [6,703 kB]
Get:4 http://downloads-distro.mongodb.org/repo/ubuntu-upstart/ dist/10gen mongodb-org-unstable-tools amd64 2.5.4 [89.9 MB]
Get:5 http://downloads-distro.mongodb.org/repo/ubuntu-upstart/ dist/10gen mongodb-org-unstable amd64 2.5.3 [3,184 B]
Fetched 109 MB in 3s (30.4 MB/s)
Selecting previously unselected package mongodb-org-unstable-shell.
(Reading database ... 47617 files and directories currently installed.)
Unpacking mongodb-org-unstable-shell (from .../mongodb-org-unstable-shell_2.5.4_amd64.deb) ...
Selecting previously unselected package mongodb-org-unstable-server.
Unpacking mongodb-org-unstable-server (from .../mongodb-org-unstable-server_2.5.4_amd64.deb) ...
Selecting previously unselected package mongodb-org-unstable-mongos.
Unpacking mongodb-org-unstable-mongos (from .../mongodb-org-unstable-mongos_2.5.4_amd64.deb) ...
Selecting previously unselected package mongodb-org-unstable-tools.
Unpacking mongodb-org-unstable-tools (from .../mongodb-org-unstable-tools_2.5.4_amd64.deb) ...
Selecting previously unselected package mongodb-org-unstable.
Unpacking mongodb-org-unstable (from .../mongodb-org-unstable_2.5.3_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up mongodb-org-unstable-shell (2.5.4) ...
Setting up mongodb-org-unstable-server (2.5.4) ...
mongod start/running, process 10167
Setting up mongodb-org-unstable-mongos (2.5.4) ...
Setting up mongodb-org-unstable-tools (2.5.4) ...
Setting up mongodb-org-unstable (2.5.3) ...
ubuntu@ip-10-238-189-24:/etc/apt/sources.list.d$

Comment by Ernie Hershey [ 06/Dec/13 ]

I just reproduced with 2.5.x -

[root@ip-10-149-5-14 ~]# yum install mongodb-org-unstable-2.5.2
Loaded plugins: amazon-id, rhui-lb, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mongodb-org-unstable.x86_64 0:2.5.2-mongodb_1 will be installed
--> Processing Dependency: mongodb-org-unstable-mongos for package: mongodb-org-unstable-2.5.2-mongodb_1.x86_64
--> Processing Dependency: mongodb-org-unstable-shell for package: mongodb-org-unstable-2.5.2-mongodb_1.x86_64
--> Processing Dependency: mongodb-org-unstable-tools for package: mongodb-org-unstable-2.5.2-mongodb_1.x86_64
--> Processing Dependency: mongodb-org-unstable-server for package: mongodb-org-unstable-2.5.2-mongodb_1.x86_64
--> Running transaction check
---> Package mongodb-org-unstable-mongos.x86_64 0:2.5.3-mongodb_1 will be installed
---> Package mongodb-org-unstable-server.x86_64 0:2.5.3-mongodb_1 will be installed
---> Package mongodb-org-unstable-shell.x86_64 0:2.5.3-mongodb_1 will be installed
---> Package mongodb-org-unstable-tools.x86_64 0:2.5.3-mongodb_1 will be installed
--> Finished Dependency Resolution
 
Dependencies Resolved
 
=================================================================================================================================================
 Package                                       Arch                     Version                             Repository                      Size
=================================================================================================================================================
Installing:
 mongodb-org-unstable                          x86_64                   2.5.2-mongodb_1                     mongodb-test                   3.6 k
Installing for dependencies:
 mongodb-org-unstable-mongos                   x86_64                   2.5.3-mongodb_1                     mongodb-test                   6.1 M
 mongodb-org-unstable-server                   x86_64                   2.5.3-mongodb_1                     mongodb-test                   8.3 M
 mongodb-org-unstable-shell                    x86_64                   2.5.3-mongodb_1                     mongodb-test                   3.5 M
 mongodb-org-unstable-tools                    x86_64                   2.5.3-mongodb_1                     mongodb-test                    83 M
 
Transaction Summary
=================================================================================================================================================
Install       5 Package(s)
 
Total download size: 101 M
Installed size: 256 M
Is this ok [y/N]:

Comment by Ernie Hershey [ 23/Jul/13 ]

I think this can be fixed by specifying the version of the client package in its specification as a requirement in the spec file here https://github.com/mongodb/mongo/blob/master/buildscripts/packager.py#L822

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