<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div style="margin: 0;"><span style="font-size: 16px;">Hi Mark :</span></div><div style="margin: 0;"><br></div><div style="margin: 0;"><span style="font-size: 16px;">I have read further on external-mariadb-guide.html .</span></div><div style="margin: 0;"><br></div><div style="margin: 0;"><div style="margin: 0;"><span style="font-size: 16px;">if setting  "use_preconfigured_databases = yes" and  and "use_common_mariadb_user = yes " , </span></div><div style="margin: 0;"><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: 0;"><span style="font-size: 16px;">the more openstack serivces  enabled , the more databases have to be created .</span></div><div style="margin: 0;"><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: 0;"><span style="font-size: 16px;">what would be this case ?</span></div><div style="margin: 0;"><br></div><div style="margin: 0;"><span style="font-size: 16px;">IMHO, the blueprint (https://blueprints.launchpad.net/kolla-ansible/+spec/external-mariadb-support) maybe more likely to be:</span></div><div style="margin: 0;"><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: 0;"><span style="font-size: 16px;">then kolla-ansible use  it as  a common user across databases</span></div></div><p style="margin: 0;"><br></p><div style="position:relative;zoom:1"></div><div id="divNeteaseMailCard"></div><p style="margin: 0;"><br></p><p>ÔÚ 2020-09-02 16:35:24£¬"Mark Goddard" <mark@stackhpc.com> Ð´µÀ£º</p><blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><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:4d210cf0$1$17451b03b86$Coremail$sosogh$126.com" 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:1c72b760$2$17451b03b86$Coremail$sosogh$126.com" 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:3ea813fc$3$17451b03b86$Coremail$sosogh$126.com" 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:4356d7c7$4$17451b03b86$Coremail$sosogh$126.com" 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 , no need to add it into 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></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>