[SERVER-77933] Install python3.9 from source for Antithesis images Created: 08/Jun/23  Updated: 29/Oct/23  Resolved: 15/Jun/23

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

Type: Bug Priority: Major - P3
Reporter: Tausif Rahman (Inactive) Assignee: Joy Wang (Inactive)
Resolution: Fixed Votes: 0
Labels: anthesis-hackathon
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

I tried building the antithesis workload image locally, but kept seeing this error when trying to install python3.9.

 => ERROR [11/11] RUN DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true apt-get install -qy python3.9 pyth  1.4s
------
 > [11/11] RUN DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true apt-get install -qy python3.9 python3.9-dev python3.9-venv git-all:
#0 0.354 Reading package lists...
#0 1.212 Building dependency tree...
#0 1.324 Reading state information...
#0 1.415 E: Unable to locate package python3.9
#0 1.415 E: Couldn't find any package by glob 'python3.9'
#0 1.415 E: Couldn't find any package by regex 'python3.9'
#0 1.415 E: Unable to locate package python3.9-dev
#0 1.415 E: Couldn't find any package by glob 'python3.9-dev'
#0 1.415 E: Couldn't find any package by regex 'python3.9-dev'
#0 1.415 E: Unable to locate package python3.9-venv
#0 1.415 E: Couldn't find any package by glob 'python3.9-venv'
#0 1.415 E: Couldn't find any package by regex 'python3.9-venv'

We use the deadsnakes ppa, which says that "The packages may also work on other versions of Ubuntu or Debian, but that is not tested or supported." Only 20.04 and 22.04 are supported.

Seems like an alternative is to install from source. We would need to replace this section of the Dockerfile.

We could upgrade to ubuntu 22.04 but that is going to require more changes & we would need to ensure Antithesis can run with 22.04. I think this is good for now – just to get things working again.



 Comments   
Comment by Githook User [ 14/Jun/23 ]

Author:

{'name': 'Joy Wang', 'email': 'joy.wang@mongodb.com', 'username': 'joyjwang'}

Message: SERVER-77933 Install python3.9 from source for Antithesis images
Branch: master
https://github.com/mongodb/mongo/commit/0099c56b292aad8b4dec07837f95b5f43018f72e

Comment by Tausif Rahman (Inactive) [ 08/Jun/23 ]

Confirmed that this is failing the same way in CI: https://parsley.mongodb.com/evergreen/mongodb_mongo_master_enterprise_ubuntu1804_64_libvoidstar_antithesis_image_build_patch_7c1579bf7ab3d29c58dfcadd5cfa53df86af95bb_648235860305b9589a703ab6_23_06_08_20_10_00/0/task?bookmarks=0,1547&shareLine=1534

Comment by Tausif Rahman (Inactive) [ 08/Jun/23 ]

Waiting for this task to finish just to make sure this is a real problem & not something just happening to me locally: https://spruce.mongodb.com/version/648235860305b9589a703ab6/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC 

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