14 Jun
2021
14 Jun
'21
1:40 a.m.
Hi Mark, I followed this guide to do a "git clone" specifying the branch "-b" to "stable/wallaby" [1]. What additional steps do I need to do to get the latest commits? [1] OpenStack Docs: Overcloud <https://docs.openstack.org/kayobe/wallaby/configuration/scenarios/all-in-one/overcloud.html> Kind regards, Tony Pearce On Mon, 14 Jun 2021 at 16:10, Mark Goddard <mark@stackhpc.com> wrote: > On Mon, 14 Jun 2021 at 07:21, Tony Pearce <tonyppe@gmail.com> wrote: > > > > Hi Pierre, thanks for replying to my message. > > > > To install kayobe I followed the documentation which summarise: > installing a few system packages and setting up the kayobe virtual > environment and then pulling the correct kayobe git version for the > openstack to be installed. After configuring the yaml files I have run > these commands: > > > > - kayobe control host bootstrap > > - kayobe overcloud host configure -> this one is failing with > /usr/libexec/platform-python: not found > > > > After reading your message on the weekend I concluded that maybe I had > done something wrong. Today, I re-pulled the kayobe wallaby git and > manually transferred the configuration over to the new directory structure > on the ansible host and set up again as per the guide but the same issue is > seen. > > > > What I ended up doing to try and resolve was finding where this > "platform-python" is coming from. It is coming from the virtual environment > which is being set up during the kayobe ansible host bootstrap. Initially, > I found the base.yml and it looks like it tries to match what the host is. > I noticed that there is no ubuntu 20 listed there so I created it however > it did not resolve the issue. > > > > So then I tried systematically replacing this reference in the other > files found in the same location "venvs\kayobe\share\kayobe\ansible". The > file I changed which allowed it to progress is "kayobe-target-venv.yml" > > > > But unfortunately it fails a bit further on, failing to find an selinux > package [1] > > > > Seeing as the error is mentioning selinux (a RedHat security feature not > installed on ubuntu) could the root cause issue be that kayobe is not > matching the host as ubuntu? I did already set in kayobe that I am using > ubuntu OS distribution within globals.yml [2]. > > > > Are there any extra steps that I need to complete that maybe are not > listed in the documentation / guide? > > > > [1] TASK [MichaelRigart.interfaces : Debian | install current/latest > network package - Pastebin.com > > [2] ---# Kayobe global > configuration.######################################### - Pastebin.com > > Hi Tony, > > That's definitely not a recent Wallaby checkout you're using. Ubuntu > no longer uses that MichaelRigart.interfaces role. Check that you have > recent commits. Here is the most recent on stable/wallaby: > 13169077aaec0f7a28ae1f15b419dafc2456faf7. > > Mark > > > > > Regards, > > > > Tony Pearce > > > > > > > > On Fri, 11 Jun 2021 at 21:05, Pierre Riteau <pierre@stackhpc.com> wrote: > >> > >> Hi Tony, > >> > >> Kayobe doesn't use platform-python anymore, on both stable/wallaby and > >> stable/victoria: > >> https://review.opendev.org/q/I0d477325e0edd13d1aba211c13dc2e8b7a9b4c98 > >> > >> Can you double-check what version you are using, and share how you > >> installed it? Note that only stable/wallaby supports Ubuntu 20 hosts. > >> > >> Best wishes, > >> Pierre > >> > >> On Fri, 11 Jun 2021 at 13:20, Tony Pearce <tonyppe@gmail.com> wrote: > >> > > >> > I'm trying to run "kayobe overcloud host configure" against an ubuntu > 20 machine to deploy Wallaby. I'm getting an error that python is not found > during the host configure part. > >> > > >> > PLAY [Verify that the Kayobe Ansible user account is accessible] > >> > TASK [Verify that a command can be executed] > >> > > >> > fatal: [juc-ucsb-5-p]: FAILED! => {"changed": false, "module_stderr": > "/bin/sh: 1: /usr/libexec/platform-python: not found\n", "module_stdout": > "", "msg": "The module failed to execute correctly, you probably need to > set the interpreter.\nSee stdout/stderr for the exact error", "rc": 127} > >> > > >> > Python3 is installed on the host. When searching where this > platform-python is coming from it returns the kolla-ansible virtual envs: > >> > > >> > $ grep -rni -e "platform-python" > >> > > venvs/kolla-ansible/lib/python3.8/site-packages/ansible/config/base.yml:1450: > '8': /usr/libexec/platform-python > >> > > venvs/kolla-ansible/lib/python3.8/site-packages/ansible/config/base.yml:1470: > - /usr/libexec/platform-python > >> > > >> > I had a look through the deployment guide for Kayobe Wallaby and > didnt see a note about changing this. > >> > > >> > Do I need to do further steps to support the ubuntu overcloud host? I > have already set (as per the doc): > >> > > >> > os_distribution: ubuntu > >> > os_release: focal > >> > > >> > Regards, > >> > > >> > Tony Pearce > >> > >