KernelCI VM is failing to boot
Issue Background
In booting a standalone VM running KernelCI and it seems that something has broken the initial setup and installation. I've tried this with the original Siemens GitHub repo and with the latest GitLab repo. I've also tried it on versions I had archived locally as "working"
Issue description
I see two problems right now preventing the boot process from moving forward. The boot fails on the second issue:
**1.) Two files have a Syntax Error in them preventing them from being compiled.**
==> default: building 'markupsafe._speedups' extension
==> default: x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c markupsafe/_speedups.c -o build/temp.linux-x86_64-2.7/markupsafe/_speedups.o
==> default: x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/markupsafe/_speedups.o -o build/lib.linux-x86_64-2.7/markupsafe/_speedups.so
==> default: Compiling /tmp/pip_build_root/jinja2/jinja2/asyncfilters.py ...
==> default: File "/tmp/pip_build_root/jinja2/jinja2/asyncfilters.py", line 7
==> default: async def auto_to_seq(value):
==> default: ^
==> default: SyntaxError: invalid syntax
==> default:
==> default: Compiling /tmp/pip_build_root/jinja2/jinja2/asyncsupport.py ...
==> default: File "/tmp/pip_build_root/jinja2/jinja2/asyncsupport.py", line 22
==> default: async def concat_async(async_gen):
==> default: ^
==> default: SyntaxError: invalid syntax
==> default:
2.) The whole boot-up process fails with the messages listed below:
==> default: TASK [setup] *******************************************************************
==> default: ok: [kernel-ci-backend]
==> default:
==> default: TASK [common : Tweak kernel configuration for performance] *********************
==> default: changed: [kernel-ci-backend]
==> default:
==> default: TASK [install-deps : Install OS dependencies] **********************************
==> default: failed: [kernel-ci-backend] (item=[u'build-essential', u'git', u'lsb-release', u'python-apt', u'python-pip', u'python-pycurl', u'python-virtualenv', u'python2.7-dev', u'sysfsutils', u'python3', u'python3-yaml', u'python3-setproctitle', u'python3-zmq']) => {"failed": true, "item": ["build-essential", "git", "lsb-release", "python-apt", "python-pip", "python-pycurl", "python-virtualenv", "python2.7-dev", "sysfsutils", "python3", "python3-yaml", "python3-setproctitle", "python3-zmq"], "msg": "No package matching 'python3-setproctitle' is available"}
==> default:
==> default: RUNNING HANDLER [common : reload-sysctl] ***************************************
==> default: to retry, use: --limit @/home/vagrant/git-repos/kernelci-backend/site.retry
==> default:
==> default: PLAY RECAP *********************************************************************
==> default: kernel-ci-backend : ok=2 changed=1 unreachable=0 failed=1
At this point the VM is frozen. It won't go on regardless of how long I wait and KernelCI isn't installed properly, so I can't do my work.
Per Don's email from Milo Casagrande:
For the 1st problem, I saw it before, but not with kernelci. It looks like one of the requirement in the requirements.txt file is not installing/compiling nicely. In this case the jinja2 package is expecting a python >3.5 syntax. I just did a "pip install -r requirements.txt" on Debian 8, and although I saw the same error on the output, it installed everything correctly.
For the 2nd problem the "python3-setproctitle" is not a package we install on our side, I think those are local changes you have made. Not sure which distro you are installing on, but that package is not available in your repos.
Ciao.
Acceptance criteria
This issue will be completed when we can successfully boot the VM and build a Kernel