Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Ubuntu from 22.04 to 24.04 #133

Merged
merged 4 commits into from
Aug 21, 2024
Merged

Conversation

basil
Copy link
Contributor

@basil basil commented Jul 25, 2024

Testing done

jenkinsci/packaging Molecule tests pass with this image

@basil basil requested a review from a team as a code owner July 25, 2024 19:45
@@ -32,7 +32,7 @@ RUN apt-get update \
make \
openssh-server \
openssl \
python3-pip \
python3-jinja2 \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Newer versions of Python prevent pip from installing to externally managed environments, so install the package via apt.

libsodium-dev \
python3-dev \
&& SODIUM_INSTALL="system" python3 -m pip install --no-cache-dir pynacl \
# switch back to the package manager version once https://github.com/Azure/azure-cli/issues/7368 is resolved
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Azure/azure-cli#7368 was resolved in 2.46.0, and we are upgrading to the latest 2.62.0 because 2.46.0 is not available in the Ubuntu Noble package repository.

@@ -135,7 +133,7 @@ COPY ./macros.d /usr/lib/rpm/macros.d
ARG JENKINS_USERNAME=jenkins
ENV USER=${JENKINS_USERNAME}
ENV HOME=/home/"${JENKINS_USERNAME}"
RUN useradd -m -u 1000 "${JENKINS_USERNAME}"
RUN deluser ubuntu && useradd -m -u 1000 "${JENKINS_USERNAME}"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new Ubuntu image has an ubuntu user with UID 1000, so we have to delete this user first before we can use that UID.

@dduportal
Copy link
Contributor

Build is failing due to SSH timeout to pkg.origin.jenkins.io VM caused by actions for jenkins-infra/helpdesk#4196.
Should be fixed by jenkins-infra/aws#561: I'll re-trigger the build once NSG rules are updated to let infra.ci to reach pkg VM.

@dduportal
Copy link
Contributor

Build is going further, but it fails with the following error:

url: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to packages.microsoft.com:443

I'm trying to reproduce to understand this issue

@dduportal
Copy link
Contributor

Build is going further, but it fails with the following error:

url: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to packages.microsoft.com:443

I'm trying to reproduce to understand this issue

I can't reproduce this error locally, it is really weird :|

@dduportal
Copy link
Contributor

I'm replaying this build to investigate the failure: please don't take the checks in account until I comment below

@dduportal
Copy link
Contributor

dduportal commented Aug 21, 2024

Build is going further, but it fails with the following error:

url: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to packages.microsoft.com:443

I'm trying to reproduce to understand this issue

OK so the problem was reported on curl's issue tracker: curl/curl#14154
which then followed up on Ubuntu issue tracker: https://bugs.launchpad.net/ubuntu/+source/curl/+bug/2073448

=> This error happens with Ubuntu 24.04 and arm64. It should not block docker-packaging upgrade as we do not have any compelling reason to have arm64 (comes from #124 but it was a ponctual use).

I'll revert the arm64 change (side benefit: faster builds) and I'll update the PR here to get the build working.

dduportal added a commit that referenced this pull request Aug 21, 2024
@dduportal dduportal merged commit 577d522 into jenkins-infra:main Aug 21, 2024
2 checks passed
@basil basil deleted the ubuntu branch August 27, 2024 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants