Wallaby install via kayobe onto ubuntu 20 all in one host

Tony Pearce tonyppe at gmail.com
Mon Jun 14 06:20:09 UTC 2021


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 <https://pastebin.com/GDizpJRg>
[2] ---# Kayobe global
configuration.######################################### - Pastebin.com
<https://pastebin.com/1BvNQSkK>

Regards,

Tony Pearce



On Fri, 11 Jun 2021 at 21:05, Pierre Riteau <pierre at 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 at 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
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20210614/63337f47/attachment-0001.html>


More information about the openstack-discuss mailing list