network unreachable in riscv64 livefs build

Asked by Dimitri John Ledkov on 2020-11-23

https://launchpad.net/~xnox/+livefs/ubuntu/hirsute/any/+build/248055

https://launchpadlibrarian.net/508376443/buildlog_ubuntu_hirsute_riscv64_riscv64_any_BUILDING.txt.gz

Traceback (most recent call last):
  File "/usr/share/livecd-rootfs/get-ppa-fingerprint", line 14, in <module>
    lp = Launchpad.login_anonymously('livecd-rootfs')
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 400, in login_anonymously
    return cls(credentials, None, None, service_root=service_root,
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 209, in __init__
    super(Launchpad, self).__init__(
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/resource.py", line 485, in __init__
    self._wadl = self._browser.get_wadl_application(self._root_uri)
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 456, in get_wadl_application
    response, content = self._request(url, media_type=wadl_type)
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 398, in _request
    response, content = self._request_and_retry(
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 368, in _request_and_retry
    response, content = self._connection.request(
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1985, in request
    (response, content) = self._request(
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 137, in _request
    response, content = super(
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 193, in _request
    return super(RestfulHttp, self)._request(
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1650, in _request
    (response, content) = self._conn_request(
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1557, in _conn_request
    conn.connect()
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1391, in connect
    raise socket_err
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1324, in connect
    sock.connect((self.host, self.port))
OSError: [Errno 101] Network is unreachable

This is my first time building with extra_ppas: ["xnox/nonvirt"] metadata_override hence a request to launchpad is made to retrieve gpg key. Seems to fail.

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
2020-11-24
Last reply:
2020-11-24
Colin Watson (cjwatson) said : #1

I believe this is a livecd-rootfs bug, though I'm amazed it hasn't been noticed before now. get-ppa-fingerprint fails to specify a service_root to Launchpad.login_anonymously, which means it defaults to staging, and production builders indeed don't necessarily have access to api.staging.launchpad.net (though may happen to by coincidence, and I suspect scalingstack ones currently do). `Launchpad.login_anonymously('livecd-rootfs', 'production')` works fine.

Dimitri John Ledkov (xnox) said : #2

Fixing that get's passed the python script.... and ends up with

gpg: keybox '/tmp/tmp.if9OkzXoSK/pubring.gpg' created
gpg: keyserver receive failed: Connection timed out
Build failed

which basically tries to do

gpg --no-default-keyring --no-options --homedir "$gpg_tmpdir" \
     --secret-keyring "$gpg_tmpdir/secring.gpg" \
     --keyserver hkp://keyserver.ubuntu.com:80/ \
     --keyring "$gpg_tmpdir"/pubring.gpg \
     --recv 2D9DF1E22F3416238D46F49F157951FE4031D287

So it looks like there is still connectivity issue to at least hkp://keyserver.ubuntu.com:80 ?

Colin Watson (cjwatson) said : #4

Connectivity to the keyserver should be fixed now. Please retry.

Can you help with this problem?

Provide an answer of your own, or ask Dimitri John Ledkov for more information if necessary.

To post a message you must log in.