<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 Thu, 3 Sep 2020 at 05:04, 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"><div style="margin:0px"><span style="font-size:16px">Hi Mark :</span></div><div style="margin:0px"><br></div><div style="margin:0px"><span style="font-size:16px">I have read further on external-mariadb-guide.html .</span></div><div style="margin:0px"><br></div><div style="margin:0px"><div style="margin:0px"><span style="font-size:16px">if setting  "<span class="gmail_default" style="font-family:verdana,sans-serif"></span>use_preconfigured_databases = yes" and  and "use_common_mariadb_user = yes " , </span></div><div style="margin:0px"><span style="font-size:16px">people has to create the " new fresh " DB (nova , glance ,keystone etc) </span><span style="font-size:16px">manually </span><span style="font-size:16px"> .</span></div><div style="margin:0px"><span style="font-size:16px">the more openstack serivces  enabled , the more databases have to be created .</span></div><div style="margin:0px"><span style="font-size:16px">so why people will want to create the </span><span style="font-size:16px">" new fresh " DB </span><span style="font-size:16px">manually</span><span style="font-size:16px">  </span><span style="font-size:16px">rather than letting kolla-ansible to do it ?</span></div><div style="margin:0px"><span style="font-size:16px">what would be this case ?</span></div></div></div></blockquote><div><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">The use case is where the DBMS is entirely managed outside of Kolla Ansible, and the DB user does not have privileges required to create a database. If you set <span class="gmail_default"></span><span style="font-family:Arial,Helvetica,sans-serif">use_preconfigured_databases to no (the default), Kolla Ansible will create the necessary databases.</span></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 style="margin:0px"><div style="margin:0px"><br></div><div style="margin:0px"><span style="font-size:16px">IMHO, the blueprint (<a href="https://blueprints.launchpad.net/kolla-ansible/+spec/external-mariadb-support" target="_blank">https://blueprints.launchpad.net/kolla-ansible/+spec/external-mariadb-support</a>) maybe more likely to be:</span></div><div style="margin:0px"><span style="font-size:16px">people create ready-to-use mysql account , and apply  the mysql address/account  to  kolla-ansible , </span></div><div style="margin:0px"><span style="font-size:16px">then kolla-ansible use  it as  a common user across databases</span></div></div><p style="margin:0px"><br></p><div style="zoom:1"></div><div id="gmail-m_-8859164824547694735divNeteaseMailCard"></div><p style="margin:0px"><br></p><p>在 2020-09-02 16:35:24,"Mark Goddard" <<a href="mailto:mark@stackhpc.com" target="_blank">mark@stackhpc.com</a>> 写道:</p><blockquote id="gmail-m_-8859164824547694735isReplyContent" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204)"><div dir="ltr"><div dir="ltr"><div 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" target="_blank">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 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 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:17452e0df9bcb971f161" 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:17452e0df9bcb971f162" 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 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" target="_blank">https://review.opendev.org/749463</a></div><div 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:17452e0df9bcb971f163" 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:17452e0df9bcb971f164" 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" target="_blank">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 , no need to add it into inventory file(multinode)   </span></div></div></div></blockquote><div><br></div><div style="font-family:verdana,sans-serif">I agree, I did not expect to need to change the inventory for this use case.</div><div 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></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>
</blockquote></div><br><br><span title="neteasefooter"><p> </p></span></blockquote></div></div>