DLPX-93224 Remove unnecessary tasks related to python3.11 added by previous os-upgrade PRs #784
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
In my previous PRs on this branch, I added
python3.11
as a dependency in the bootstrap role.Prakash pointed out that this was not required since it is already listed as a build dependency of
the virtualization package and will be installed at build time. As such, I am undoing my previous changes
around python3.11 and the associated PPA.
Prakash also pointed out that unattended-upgrades should be stopped and removed before we install
any packages.
This PR also addresses some other bugs found during testing using the resulting DE-based buildserver:
passlib
to be installed. I tried installing it directly in the role but ansible still could not find the module. I tried installing it in the chroot env via apt and also via pip, none of those worked. I finally resorted to installing it via bootstrap.aws
commands because it's not available in the path. It was found thatsnapd
is not installed on DE-based buildservers and is in fact installed via a dependency by the bootstrap role. The bootstrap role then goes on to installaws-cli
via snap but the Jenkins job continues to use the same shell which is why the path is not updated. When I tried to update the path and run the job, I realized that snap didn't allow theaws
command to run because the home directory on a DE-based buildserver is not in/home
:I finally resorted to installing awscli via pip, system-wide.
Testing Done
https://ops-jenkins.eng-tools-prd.aws.delphixcloud.com/job/appliance-build/job/os-upgrade/job/pre-push/137/console