I tried to build a bzr repo "test-snapd-sh-core20" snap today that uses "base: core20".
When trying this I got a crash from bzr during the build, the full build log is here:
https://launchpadlibrarian.net/478363687/buildlog_snap_ubuntu_focal_s390x_test-snapd-sh-core20_BUILDING.txt.gz
The crash is:
"""
Running repo phase...
brz: ERROR: AttributeError: can't set attribute
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/breezy/commands.py", line 1016, in exception_to_return_code
return the_callable(*args, **kwargs)
File "/usr/lib/python3/dist-packages/breezy/commands.py", line 1202, in run_bzr
ret = run(*run_argv)
File "/usr/lib/python3/dist-packages/breezy/commands.py", line 759, in run_argv_aliases
return self.run(**all_cmd_args)
File "/usr/lib/python3/dist-packages/breezy/commands.py", line 784, in run
return self._operation.run_simple(*args, **kwargs)
File "/usr/lib/python3/dist-packages/breezy/cleanup.py", line 136, in run_simple
return _do_with_cleanups(
File "/usr/lib/python3/dist-packages/breezy/cleanup.py", line 166, in _do_with_cleanups
result = func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/breezy/builtins.py", line 1465, in run
accelerator_tree, br_from = controldir.ControlDir.open_tree_or_branch(
File "/usr/lib/python3/dist-packages/breezy/controldir.py", line 799, in open_tree_or_branch
controldir = klass.open(location)
File "/usr/lib/python3/dist-packages/breezy/controldir.py", line 705, in open
t = _mod_transport.get_transport(base, possible_transports)
File "/usr/lib/python3/dist-packages/breezy/transport/__init__.py", line 1573, in get_transport
_mod_location.location_to_url(base, purpose=purpose),
File "/usr/lib/python3/dist-packages/breezy/location.py", line 61, in location_to_url
location = directories.dereference(location, purpose)
File "/usr/lib/python3/dist-packages/breezy/directory_service.py", line 89, in dereference
return directory.look_up(name, url, purpose=purpose)
File "/usr/lib/python3/dist-packages/breezy/plugins/launchpad/lp_directory.py", line 122, in look_up
return self._resolve(url)
File "/usr/lib/python3/dist-packages/breezy/plugins/launchpad/lp_directory.py", line 178, in _resolve
result = self._resolve_via_xmlrpc(path, url, _request_factory)
File "/usr/lib/python3/dist-packages/breezy/plugins/launchpad/lp_directory.py", line 154, in _resolve_via_xmlrpc
result = resolve.submit(service)
File "/usr/lib/python3/dist-packages/breezy/plugins/launchpad/lp_registration.py", line 244, in submit
return service.send_request(self._methodname, self._request_params())
File "/usr/lib/python3/dist-packages/breezy/plugins/launchpad/lp_registration.py", line 173, in send_request
result = method(*method_params)
File "/usr/lib/python3.8/xmlrpc/client.py", line 1109, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python3.8/xmlrpc/client.py", line 1450, in __request
response = self.__transport.request(
File "/usr/lib/python3/dist-packages/breezy/plugins/launchpad/lp_registration.py", line 100, in request
response = self._opener.open(request)
File "/usr/lib/python3.8/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/usr/lib/python3.8/urllib/request.py", line 542, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/usr/lib/python3/dist-packages/breezy/transport/http/_urllib2_wrappers.py", line 942, in https_open
connect = _ConnectRequest(request)
File "/usr/lib/python3/dist-packages/breezy/transport/http/_urllib2_wrappers.py", line 583, in __init__
Request.__init__(self, 'CONNECT', request.get_full_url(),
File "/usr/lib/python3/dist-packages/breezy/transport/http/_urllib2_wrappers.py", line 528, in __init__
urllib_request.Request.__init__(
File "/usr/lib/python3.8/urllib/request.py", line 328, in __init__
self.full_url = url
File "/usr/lib/python3.8/urllib/request.py", line 354, in full_url
self._parse()
File "/usr/lib/python3.8/urllib/request.py", line 384, in _parse
self.host, self.selector = _splithost(rest)
AttributeError: can't set attribute
brz 3.0.2 on python 3.8.2 (Linux-4.4.0-178-generic-s390x-with-glibc2.29)
arguments: ['/usr/bin/bzr', 'branch', 'lp:~snappy-dev/snappy-hub/test-snapd-
sh-core20', 'test-snapd-sh-core20']
plugins: bash_completion[3.0.2], changelog_merge[3.0.2],
commitfromnews[3.0.2], cvs[3.0.2], darcs[3.0.2], email[3.0.2],
fastimport[3.0.2], launchpad[3.0.2], mtn[3.0.2],
netrc_credential_store[3.0.2], news_merge[3.0.2], po_merge[3.0.2],
propose[3.0.2], repodebug[3.0.2], stats[3.0.2], upload[3.0.2],
weave_fmt[3.0.2]
encoding: 'utf-8', fsenc: 'utf-8', lang: 'C.UTF-8'
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at
https://bugs.launchpad.net/brz/+filebug
including this traceback and a description of the problem.
Build failed
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/lpbuildd/target/build_snap.py", line 256, in run
self.repo()
File "/usr/lib/python2.7/dist-packages/lpbuildd/target/build_snap.py", line 175, in repo
self.vcs_fetch(self.args.name, cwd="/build", env=env)
File "/usr/lib/python2.7/dist-packages/lpbuildd/target/vcs.py", line 94, in vcs_fetch
self.backend.run(cmd, cwd=cwd, env=full_env)
File "/usr/lib/python2.7/dist-packages/lpbuildd/target/lxd.py", line 537, in run
subprocess.check_call(cmd, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['lxc', 'exec', 'lp-focal-s390x', '--env', 'LANG=C.UTF-8', '--env', 'SHELL=/bin/sh', '--env', 'http_proxy=http://10.10.10.1:8222/', '--env', 'https_proxy=http://10.10.10.1:8222/', '--env', 'GIT_PROXY_COMMAND=/usr/local/bin/snap-git-proxy', '--', '/bin/sh', '-c', "cd /build && linux64 bzr branch 'lp:~snappy-dev/snappy-hub/test-snapd-sh-core20' test-snapd-sh-core20"]' returned non-zero exit status 4
Revoking proxy token...
RUN: /usr/share/launchpad-buildd/bin/in-target scan-for-processes --backend=lxd --series=focal --arch=s390x SNAPBUILD-940030
Scanning for processes to kill in build SNAPBUILD-940030
"""
I worked around it by just using git but I wanted to report it as a low priority issue.
Most properbly it is about the proxy setting. I have the same issue, but if I do it without environment vars "http_proxy" and "https_proxy" it does work.