<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(102,102,102)">> <span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)">Perhaps you somehow lost this file:</span></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(102,102,102)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(102,102,102)">I thought that too, but I did not change those files at all. But also I duplicated the value from that file and inserted it (pasted the values) above the network config for the individual nodes. It did not have any change on the outcome at all, so I removed that. </div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(102,102,102)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(102,102,102)">I was able to fix this issue by deleting the nodes and redeploying from the same ACH, in the end. </div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(102,102,102)"><br></div><div><div dir="ltr" class="gmail_signature"><div dir="ltr">Tony Pearce<br><br><br></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 1 Jul 2021 at 16:31, Mark Goddard <<a href="mailto:mark@stackhpc.com">mark@stackhpc.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 29 Jun 2021 at 12:03, Tony Pearce <<a href="mailto:tonyppe@gmail.com" target="_blank">tonyppe@gmail.com</a>> wrote:<br>
><br>
> I had a successful deployment of Openstack Victoria via Kayobe with an all-in-one node running controller and compute roles. I wanted to then add 2 controller nodes to make 3 controllers and one compute. The 2 additional controllers have a different interface naming so I needed to modify the inventory. I checked this ansible documentation to figure out the changes I’d need to make [1]. The first try, I misunderstood the layout because kayobe tried to configure the new nodes interfaces with incorrect naming.<br>
><br>
> In my first try I tried this inventory layout:<br>
><br>
><br>
> Move existing configuration:<br>
><br>
><br>
> [kayobe config] / Inventory / *<br>
><br>
> To<br>
><br>
> [kayobe config] / Inventory / Ciscohosts /<br>
><br>
><br>
> Create new from copy of existing:[kayobe config] / Inventory / Ciscohosts / ><br>
><br>
> [kayobe config] / Inventory / Otherhosts /<br>
><br>
><br>
> The Otherhosts had its own host file with the 2 controllers and group_vars/controllers network interface configuration as per these two hosts. But anyway it didnt achieve the desired result so I rechecked the ansible doc [1] and decided to do this another way as follows:<br>
><br>
><br>
> In my second try I first reversed the inventory change:<br>
><br>
><br>
> Delete the new dir: [kayobe config] / Inventory / Otherhosts /<br>
><br>
> Move back the config: [kayobe config] / Inventory / Ciscohosts / * > [kayobe config] / Inventory /<br>
><br>
> Delete the empty dir: [kayobe config] / Inventory / Ciscohosts /<br>
><br>
><br>
> Then create host_vars for the two individual hosts:<br>
><br>
> [kayobe config] / Inventory / host_vars / cnode2<br>
><br>
> [kayobe config] / Inventory / host_vars / cnode3<br>
><br>
><br>
> And updated the single hosts inventory file [kayobe config] / Inventory / hosts<br>
><br>
><br>
> This seemed to work fine, the “kayobe overcloud host configure” was successful and the hosts interfaces were set up as I desired.<br>
><br>
><br>
> The issue came when doing the “kayobe overcloud service deploy” and failed with "/usr/bin/python3", "-c", "import docker” = ModuleNotFoundError: No module named 'docker' for all three nodes, where previously it (the deployment) had been successful for the all-in-one node. I do not know if this task had run or skipped before but the task is run against "baremetal" group and controllers and compute are in this group so I assume that it had been ran successfully in previous deployments and this is the weird thing because no other changes have been made apart from as described here.<br>
<br>
Perhaps you somehow lost this file:<br>
<a href="https://opendev.org/openstack/kayobe-config/src/branch/master/etc/kayobe/inventory/group_vars/overcloud/ansible-python-interpreter" rel="noreferrer" target="_blank">https://opendev.org/openstack/kayobe-config/src/branch/master/etc/kayobe/inventory/group_vars/overcloud/ansible-python-interpreter</a><br>
<br>
><br>
> Verbose error output: [3]<br>
><br>
><br>
> After the above error, I reverted the inventory back to the “working” state, which is basically to update the inventory hosts and removed the 2 controllers. As well as remove the whole host_vars directory. After doing this however, the same error is still seen /usr/bin/python3", "-c", "import docker” = ModuleNotFoundError.<br>
><br>
><br>
> I logged into the host and tried to run this manually on the CLI and I see the same output. What I don’t understand is why this error is occurring now after previous successful deployments.<br>
><br>
><br>
> To try and resolve /workaround this issue I have tried to no avail:<br>
> - recreating virtual environments on all-in-one node<br>
><br>
> - recreating virtual environments on ACH<br>
><br>
> - deleting the [kolla config] directory<br>
><br>
> - deleting .ansible and /tmp/ caches<br>
><br>
> - turning off pipelining<br>
><br>
><br>
> After doing the above I needed to do the control host bootstrap and host configure before service deploy however the same error persisted and I could not work around it with any of the above steps being performed.<br>
><br>
><br>
> As a test, I decided to turn off this task in the playbook [4] and the yml file runs as follows: [2]. This results in a (maybe pseudo) successful deployment again, in a sense that it deploys without failure because that task does not run.<br>
><br>
> After this was successful in deploying once again as it had previously had been, I added the two controller nodes using the “host_vars” and then I was able to successfully deploy again with HA controllers. Well, it is successful apart from Designate issue due to Designate already having the config [5]. I can log in to the horizon dashboard and under system information I can see all three controllers there.<br>
><br>
><br>
> Could I ask the community for help with:<br>
><br>
> Regarding the kayobe inventory, is anything wrong with the 2nd attempt in line with Kayobe?<br>
><br>
> Has anyone come across this docker issue (or similar within this context of failing after being successful) and can suggest?<br>
><br>
><br>
> I repeatedly get these odd issues where successful deployments then fail in the future. This often occurs after making a config change and then rolling back but the roll back does not return to a working deployment state. The fix/workaround for me in these cases is to “kayobe overcloud service destroy --yes-i-really-really-mean-it” and also re-deploy the host.<br>
><br>
><br>
> [1] Best Practices — Ansible Documentation<br>
><br>
> [2] modified Checking docker SDK version# command: "{{ ansible_python.execut - Pastebin.com<br>
><br>
> [3] TASK [prechecks : Checking docker SDK version] ********************************* - Pastebin.com<br>
><br>
> [4] /home/cv-user/kayobe-victoria/venvs/kolla-ansible/share/kolla-ansible/ansible/roles/prechecks/tasks/package_checks.yml<br>
><br>
> [5] TASK [designate : Update DNS pools] ******************************************** - Pastebin.com<br>
><br>
><br>
> Kind regards,<br>
><br>
><br>
</blockquote></div>