While setting up OCIM, I got this error: “No package matching llvm is available” while Ansible was provisioning the instance, at the steps for pyenv. It seems for the Ubuntu version of the base image, which is xenial, the only llvm package available is llvm-3.8. When I changed the llvm dependency in <ansible>/roles/pyenv/defaults/main.yml to llvm-3.8 it worked.
Sounds like you’ve found an issue that’s arisen since we create those playbook variables. You’re welcome to create a task to fix this issue, and submit a PR.
Check out these docs for details on how to create a task (this will be in the handbook once MR! merges). Probably the best Epic use is SE-2292 Ocim Tech Debt & Bugs, and see the other tasks in that epic for which Account to use.
@giang, thanks for reporting this issue. I was the person who created that role and added the list of dependency packages.
I downloaded the latest ubuntu/xenial64 vagrant base box and set up the devstack afresh today and it worked fine without running into the error you have mentioned.
There is an llvm package in the universe section of the repository (which is enabled by default in the vagrant base image) in the xenial, xenial-updates release (see here and here). So I’m not entirely sure why you ran into this issue.
Can you check if the universe section of the repository is enabled on your Vagrant VM and if it is able to access it when running the apt-get update command?
Just for future reference if this issue ever comes up again: I ran into the “No package matching llvm is available” error today trying to setup OCIM for the first time and was referred to this forum post. I deleted everything and reinstalled a few separate times and confirmed that llvm (and other packages) were all up to date. The underlying problem is still a mystery to me, but changing “llvm” to “llvm-3.8” in main.yml did finally get it working, so that does seem to be a valid work-around.