[SERVER-39595] mongoreplay is removed from linux packages in official mongodb-org repos Created: 14/Feb/19  Updated: 09/Aug/23  Resolved: 09/Aug/23

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: 3.2.9, 3.6.9, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5, 4.0.6
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Ali Molaei Assignee: [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
Resolution: Won't Do Votes: 1
Labels: distributions, linux, mongoreplay, repo, repositories
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux, Ubuntu, CentOS


Issue Links:
Depends
depends on TOOLS-2201 Mongoreplay support for new mongod tr... Closed
Assigned Teams:
Server Development Platform
Participants:

 Description   

mongoreplay does not exist in mongodb-org official repository for Linux distributions,  I tried to find out exact time that it is removed, but I couldn't, I traced it up to version 3.2.9 in the apt repo, none of -tools packages have it

https://repo.mongodb.org/apt/ubuntu/dists/xenial/mongodb-org/3.2/multiverse/binary-amd64/mongodb-org-tools_3.2.9_amd64.deb

http://repo.mongodb.org/apt/ubuntu/dists/xenial/mongodb-org/4.0/multiverse/binary-amd64/mongodb-org-tools_4.0.6_amd64.deb

 

And also taking a look at this in packager.py:

https://github.com/mongodb/mongo/blob/8d187a612ec0c74827947504a472ac65823dfcff/buildscripts/packager.py#L528-L531

# Remove the mongoreplay binary due to libpcap dynamic
# linkage.
if os.path.exists(sdir + "bin/mongoreplay"):
        os.unlink(sdir + "bin/mongoreplay")

It is wired for a team to develop a program and then not ship that with this weird if! (If it is our work there, delete it!)

 

I think libpcap can be simply a dependency for mongoreplay package, libpcap is available under any distro I checked!



 Comments   
Comment by Alex Neben [ 09/Aug/23 ]

Closing this issues as part of some SDP backlog cleanup. Please reopen if you feel this should be prioitized.

Comment by Matt Lord (Inactive) [ 19/Mar/19 ]

Once TOOLS-2201 is complete, we should then remove the code that explicitly extracts mongoreplay from our rpms and debs.

Comment by Matt Lord (Inactive) [ 19/Mar/19 ]

Hi ali.molaei,

So this removal from our rpms and debs was intentional – due to the fact that:

  1. Few people use mongoreplay
  2. mongoreplay requires libpcap
  3. Some companies don't allow libpcap to be installed on production servers

So in the short term – for the MongoDB PKGCONFIGs in Arch Linux's AUR – you can ignore this. It's a bigger issue that we hope to address in MongoDB 4.2+ via changes to mongoreplay so that the traffic capture happens on the server side rather than from the network (so no libpcap usage).

Thank you for the ticket and your work on the MongoDB packages in AUR!

Matt

Generated at Thu Feb 08 04:52:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.