Merge ~sergiodj/ubuntu/+source/ubuntu-fan:fix-https-proxy-impish into ubuntu/+source/ubuntu-fan:ubuntu/impish-devel

Proposed by Sergio Durigan Junior
Status: Merged
Merged at revision: 6de6f03b0e6eb28a0f83289d2205641e818bf9a4
Proposed branch: ~sergiodj/ubuntu/+source/ubuntu-fan:fix-https-proxy-impish
Merge into: ubuntu/+source/ubuntu-fan:ubuntu/impish-devel
Diff against target: 53 lines (+16/-5)
2 files modified
debian/changelog (+7/-0)
debian/tests/docker (+9/-5)
Reviewer Review Type Date Requested Status
Lucas Kanashiro Pending
Andy Whitcroft Pending
Canonical Server Pending
Review via email: mp+419232@code.launchpad.net

Description of the change

This MP fixes ubuntu-fan's "docker" dep8 test and makes it properly set the $https_proxy environment variable when running on autopkgtest.u.c.

This is the MP for Impish.

This problem came to our attention when the docker.io upload got blocked on Focal due to ubuntu-fan's failure to "docker pull" the Ubuntu image while running the aforementioned test. The problem is only reproducible when we run the test in the infrastructure, so it took a long time to debug. The interesting part is that this code has been like this forever, and although we can see some random failures in the past, for the most part it worked fine. I believe there was a recent change on docker.io that uncover this issue once and for all, and now we should fix it.

You can find a PPA with the proposed changes here:

https://launchpad.net/~sergiodj/+archive/ubuntu/ubuntu-fan-proxy-fix

You can take a look at the autopkgtest results attached to the PPA:

https://autopkgtest.ubuntu.com/results/autopkgtest-impish-sergiodj-ubuntu-fan-proxy-fix/?format=plain

To post a comment you must log in.
Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

We have version 0.12.15 in Impish and Jammy, I think the best would be to use 0.12.15ubuntu0.21.10.1 to make explicit that this is being introduced in Impish. However, this version is still greater than the version in Jammy. Hopefully, we will have 0.12.16 in Jammy. WDYT?

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

On Monday, April 11 2022, Lucas Kanashiro wrote:

> We have version 0.12.15 in Impish and Jammy, I think the best would be
> to use 0.12.15ubuntu0.21.10.1 to make explicit that this is being
> introduced in Impish. However, this version is still greater than the
> version in Jammy. Hopefully, we will have 0.12.16 in Jammy. WDYT?

Hm, I think we will need to wait for apw's reply on the Jammy MP before
going forward. I don't feel comfortable uploading a version that's
greater in Impish without knowing whether we will be able to bump the
Jammy version as well.

Thanks, Lucas.

--
Sergio
GPG key ID: E92F D0B3 6B14 F1F4 D8E0 EB2F 106D A1C8 C3CB BF14

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

I've adopted Lucas' suggestion regarding the version number. I've recently uploaded Jammy's package which will bump its version to 0.12.16 and resolve the conflict with Impish.

Uploaded:

$ dput ubuntu-fan_0.12.15ubuntu0.21.10.1_source.changes
Trying to upload package to ubuntu
Checking signature on .changes
gpg: /home/sergio/work/ubuntu-fan/ubuntu-fan_0.12.15ubuntu0.21.10.1_source.changes: Valid signature from 106DA1C8C3CBBF14
Checking signature on .dsc
gpg: /home/sergio/work/ubuntu-fan/ubuntu-fan_0.12.15ubuntu0.21.10.1.dsc: Valid signature from 106DA1C8C3CBBF14
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading ubuntu-fan_0.12.15ubuntu0.21.10.1.dsc: done.
  Uploading ubuntu-fan_0.12.15ubuntu0.21.10.1.tar.xz: done.
  Uploading ubuntu-fan_0.12.15ubuntu0.21.10.1_source.buildinfo: done.
  Uploading ubuntu-fan_0.12.15ubuntu0.21.10.1_source.changes: done.
Successfully uploaded packages.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 6f9c9cb..3a4e0e1 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+ubuntu-fan (0.12.15ubuntu0.21.10.1) impish; urgency=medium
7+
8+ * d/t/docker: Don't use "https://" for $https_proxy. Set
9+ HTTPS_PROXY for docker.service as well. (LP: #1968387)
10+
11+ -- Sergio Durigan Junior <sergio.durigan@canonical.com> Mon, 11 Apr 2022 15:26:05 -0400
12+
13 ubuntu-fan (0.12.15) hirsute; urgency=medium
14
15 * Drop dh-systemd build dependency.
16diff --git a/debian/tests/docker b/debian/tests/docker
17index 9fa160b..94c7227 100644
18--- a/debian/tests/docker
19+++ b/debian/tests/docker
20@@ -11,15 +11,15 @@ https_proxy=""
21 if echo "" | nc -w 2 squid.internal 3128 >/dev/null 2>&1; then
22 INFO="Running in the Canonical CI environment"
23 http_proxy="http://squid.internal:3128"
24- https_proxy="https://squid.internal:3128"
25+ https_proxy="http://squid.internal:3128"
26 elif echo "" | nc -w 2 10.245.64.1 3128 >/dev/null 2>&1; then
27 INFO="Running in the Canonical enablement environment"
28 http_proxy="http://10.245.64.1:3128"
29- https_proxy="https://10.245.64.1:3128"
30+ https_proxy="http://10.245.64.1:3128"
31 elif echo "" | nc -w 2 91.189.89.216 3128 >/dev/null 2>&1; then
32 INFO="Running in the Canonical enablement environment"
33 http_proxy="http://91.189.89.216:3128"
34- https_proxy="https://91.189.89.216:3128"
35+ https_proxy="http://91.189.89.216:3128"
36 fi
37 export http_proxy
38 export https_proxy
39@@ -36,8 +36,12 @@ if [ -n "$http_proxy" ]; then
40 if [ ! -d /etc/systemd/system/docker.service.d ]; then
41 mkdir /etc/systemd/system/docker.service.d
42 fi
43- echo -ne "[Service]\nEnvironment=\"HTTP_PROXY=$http_proxy\"\n" \
44- >/etc/systemd/system/docker.service.d/http-proxy.conf
45+ cat > /etc/systemd/system/docker.service.d/http-proxy.conf << _EOF_
46+[Service]
47+Environment="HTTP_PROXY=$http_proxy"
48+Environment="HTTPS_PROXY=$https_proxy"
49+_EOF_
50+
51 systemctl daemon-reload
52 systemctl restart docker.service
53 fi

Subscribers

People subscribed via source and target branches