Bug 13673 - python3 too old on perf-centos7
Summary: python3 too old on perf-centos7
Status: RESOLVED FIXED
Alias: None
Product: AutoBuilder
Classification: Infrastructure
Component: autobuilder (show other bugs)
Version: 3.1
Hardware: x86 Multiple
: High normal
Target Milestone: 3.1 M1
Assignee: Michael Halstead
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-12-04 13:01 UTC by Richard Purdie
Modified: 2019-12-05 18:16 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Purdie 2019-12-04 13:01:52 UTC
We switched to hashequiv on by default. I isolated the buildperf workers to use their own hashequiv server to isolate them from the wider system. This resulted in:
https://autobuilder.yoctoproject.org/typhoon/#/builders/91/builds/1651

and on the machine itself:

Process ProcessServer-1:
Traceback (most recent call last):
  File "/usr/lib64/python3.4/multiprocessing/process.py", line 254, in _bootstrap
    self.run()
  File "/home/pokybuild/yocto-worker/buildperf-centos7/build/bitbake/lib/bb/server/process.py", line 113, in run
    ret = self.main()
  File "/home/pokybuild/yocto-worker/buildperf-centos7/build/bitbake/lib/bb/server/process.py", line 118, in main
    self.cooker.pre_serve()
  File "/home/pokybuild/yocto-worker/buildperf-centos7/build/bitbake/lib/bb/cooker.py", line 1639, in pre_serve
    self.handlePRServ()
  File "/home/pokybuild/yocto-worker/buildperf-centos7/build/bitbake/lib/bb/cooker.py", line 396, in handlePRServ
    self.hashserv = hashserv.create_server(self.hashservaddr, dbfile, sync=False)
  File "/home/pokybuild/yocto-worker/buildperf-centos7/build/bitbake/lib/hashserv/__init__.py", line 70, in create_server
    from . import server
  File "/home/pokybuild/yocto-worker/buildperf-centos7/build/bitbake/lib/hashserv/server.py", line 117
    async def process_requests(self):
            ^
SyntaxError: invalid syntax

which is due to python3.4 being too old for the hash equiv server code. We probably should use python3 from the buildtools tarball instead.
Comment 1 Tim Orling 2019-12-05 15:56:32 UTC
Python 3.6 is available either from EPEL or SCL.

https://linuxize.com/post/how-to-install-python-3-on-centos-7/
Comment 2 Michael Halstead 2019-12-05 18:16:51 UTC
perf-centos7 is now running Python 3.7.5 from Yocto Project buildtools 3.0.1. 

We could switch to 3.6 from EPEL if there a compelling reason.