<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 1 Sep 2020 at 15:48, sosogh <<a href="mailto:sosogh@126.com">sosogh@126.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"><div style="line-height:1.7;color:rgb(0,0,0);font-size:14px;font-family:Arial"><p style="margin:0px"><span style="font-size:16px">Hi list:</span></p><div><br></div><div style="margin:0px"><span style="font-size:16px">I want to use kolla-ansible to deploy openstack , but using external mysql. </span></div><div style="margin:0px"><span style="font-size:16px">I am following these docs:  </span></div><p style="margin:0px"><span style="font-size:16px"><a href="https://docs.openstack.org/kolla-ansible/latest/user/quickstart.html" target="_blank">https://docs.openstack.org/kolla-ansible/latest/user/quickstart.html</a></span></p><p style="margin:0px"><span style="font-size:16px"><a href="https://docs.openstack.org/kolla-ansible/latest/reference/databases/external-mariadb-guide.html" target="_blank">https://docs.openstack.org/kolla-ansible/latest/reference/databases/external-mariadb-guide.html</a>.</span></p></div></blockquote><div><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Hi, could you start by telling us which version or branch of Kolla Ansible you are using?</div><div class="gmail_default" style="font-family:verdana,sans-serif"></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="line-height:1.7;color:rgb(0,0,0);font-size:14px;font-family:Arial"><p style="margin:0px"><br></p><p style="margin:0px"><span style="font-size:16px">I have some questions:</span></p><div style="margin:0px"><br></div><div style="margin:0px">################</div><div style="margin:0px">##  <span style="font-size:16px">Question 1 </span>##</div><div style="margin:0px">################</div><div style="margin:0px"><br></div><p style="margin:0px"><span style="font-size:16px"> According to the offical doc , if setting it  in inventory file(multinode), </span></p><p style="margin:0px"><img src="cid:1744de8f7a7cb971f161" style="width: 307px; height: 59px;"></p><p style="margin:0px"><br></p><p style="margin:0px"><span style="font-size:16px">kolla-ansible -i ./multinode deploy will throw out error:</span></p><p style="margin:0px"><img src="cid:1744de8f7a7cb971f162" style="width: 1588px; height: 334px; border: none;"></p><p style="margin:0px"><br></p><p style="margin:0px"><span style="font-size:16px">I guest when kolla-ansible running the playbook against <a href="http://myexternalmariadbloadbalancer.com" target="_blank">myexternalmariadbloadbalancer.com</a> , </span></p><p style="margin:0px"><span style="font-size:16px">the """register: find_custom_fluentd_inputs""" in """TASK [common : Find custom fluentd input config files]"""  maybe null .</span></p></div></blockquote><div><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">I think this could be an issue with a recent change to the common role, where the condition for the 'Find custom fluentd input config files' task changed slightly. I have proposed a potential fix for this, could you try it out and report back? <a href="https://review.opendev.org/749463">https://review.opendev.org/749463</a></div><div class="gmail_default" style="font-family:verdana,sans-serif"></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="line-height:1.7;color:rgb(0,0,0);font-size:14px;font-family:Arial"><p style="margin:0px"><br></p><div style="margin:0px">################</div><div style="margin:0px">##  <span style="font-size:16px">Question 2 </span>##</div><div style="margin:0px">################</div><p style="margin:0px"><span style="font-size:16px"> According to the offical doc , If the MariaDB username is not root, set database_username in /etc/kolla/globals.yml file:  </span></p><p style="margin:0px"><img src="cid:1744de8f7a7cb971f163" style="width: 342px; height: 41px;"></p><p style="margin:0px"><br></p><p style="margin:0px"><span style="font-size:16px">But in kolla-ansible/ansible/roles/xxxxxx/tasks/bootstrap.yml  , they use  ''' login_user: "{{ database_user }}"  ''' , for example :</span></p><div><img src="cid:1744de8f7a7cb971f164" style="width: 595px; height: 237px;"></div><div><br></div></div></blockquote><div><span class="gmail_default" style="font-family:verdana,sans-serif">You are correct, this is an issue in the documentation. I have proposed a fix here: <a href="https://review.opendev.org/749464">https://review.opendev.org/749464</a></span></div><div><span class="gmail_default" style="font-family:verdana,sans-serif"></span> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="line-height:1.7;color:rgb(0,0,0);font-size:14px;font-family:Arial"><div></div><div><div><span style="font-size:16px">So at last  , I took the following steps:</span></div><div><span style="font-size:16px">1. """not""" setting [mariadb] in inventory file(multinode)   </span></div><div><span style="font-size:16px">2. set "database_user: openstack" for  "privillegeduser"</span></div><div><br></div><div>PS: </div><div><span style="font-size:16px">My idea is that if using an external ready-to-use mysql (cluster),  </span></div><div><span style="font-size:16px">it is enough to tell kolla-ansible only the address/user/password of the external DB.</span></div><div><span style="font-size:16px">i.e. setting them in the file /etc/kolla/globals.yml and passwords.yml</span><span style="font-size:16px"> , no need to add it into </span><span style="font-size:16px">inventory file(multinode)   </span></div></div></div></blockquote><div><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">I agree, I did not expect to need to change the inventory for this use case.</div><div class="gmail_default" style="font-family:verdana,sans-serif"></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="line-height:1.7;color:rgb(0,0,0);font-size:14px;font-family:Arial"><div><div><br></div><div><span style="font-size:16px">Finally , it is successful to  deploy openstack via kolla-ansible</span><span style="font-size:16px"> </span><span style="font-size:16px">. </span></div><div><span style="font-size:16px">So far I have not found any problems.   </span></div><div><span style="font-size:16px"> Are the steps what I took  good ( enough ) ? </span></div></div><div><span style="font-size:16px">Thank you !</span></div><div><br></div><div><br></div></div></blockquote></div></div>