Unable to fetch git repos via python subprocess with proxy configured git 2.17.0-1ubuntu1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Fix Released
|
Medium
|
Po-Hsu Lin |
Bug Description
All the tests that need to fetch a git repo for testing failed with error message like:
CmdError: Command <git clone https:/
* Command:
git clone https:/
Exit status: 128
Duration: 0.254368066788
stderr:
Cloning into 'xfstests-bld'...
fatal: unable to access 'https:/
Step to reproduce:
1. Deploy a Bionic system and install the python-minimal package
2. Run the following python code:
import subprocess
import os
proxysets = [{'addr': 'squid.internal', 'desc': 'Running in the Canonical CI environment'},
for proxy in proxysets:
cmd = ['nc', '-w' ,'2', proxy['addr'], '3128']
try:
print proxy['desc']
break
except:
pass
subprocess.
4. Update the git package from 2.15.1-1ubuntu2 to 2.17.0-1ubuntu1
5. Remove the xfstests-bld dir and try step 3 again
Result:
* Step 1 - 3 with git 2.15.1 will work, but you will see the error message with git updated to 2.17.0 (this code works without proxy configured)
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-
ProcVersionSign
Uname: Linux 4.15.0-15-generic s390x
NonfreeKernelMo
AlsaDevices: Error: command ['ls', '-l', '/dev/snd/'] failed with exit code 2: ls: cannot access '/dev/snd/': No such file or directory
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.9-0ubuntu4
Architecture: s390x
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 'arecord'
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
CurrentDmesg:
Date: Tue Apr 10 11:35:24 2018
HibernationDevice: RESUME=
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
Lsusb: Error: command ['lsusb'] failed with exit code 1:
PciMultimedia:
ProcFB: Error: [Errno 2] No such file or directory: '/proc/fb'
ProcKernelCmdLine: root=UUID=
RelatedPackageV
linux-
linux-
linux-firmware 1.173
RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
status: | Incomplete → Confirmed |
tags: | added: kernel-da-key |
summary: |
- Unable to fetch git repos using autotest framework with Bionic kernel + Unable to fetch git repos using autotest framework with git + 2.17.0-1ubuntu1 |
description: | updated |
Tested with an older kernel on the same s390x node (kernel02), this issue still exists.
Must be something else.