<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div class="iNotesHistory iNotesForward" style="padding-left:5px;"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px;"><br><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"> <span>Hi All,<br><br>Thanks alot for your valuable feedback Jesse.<br><br><font color="#0000cc"><u><b>Point 1 :</b></u></font><br><br>I have made the appropriate Designate entry in the file here :<b> /playbooks/defaults/repo_packages/openstack_services.yml</b> and uploaded it for review here : <a target="_blank" href="https://github.com/sharmaswati6/designate_files/blob/master/playbooks/defaults/repo_packages/openstack_services.yml" title="https://github.com/sharmaswati6/designate_files/blob/master/playbooks/defaults/repo_packages/openstack_services.yml">https://github.com/sharmaswati6/designate_files/blob/master/playbooks/defaults/repo_packages/openstack_services.yml</a><br>Here, I have taken the<b> 'designate_git_install_branch:'</b> as the most recent one on '17.12.2015'<br><br></span><span><span><font color="#0000cc"><u><b>Point 2 :<br><br></b></u></font></span>The execution of tasks and handlers is very well explained in your answer. Thanks for that :)<br><br></span><span><span><font color="#0000cc"><u><b>Point 3 :<br><br></b></u></font></span>With regards to creating a DB user & DB, I have modeled the file from glance and placed it here: <a target="_blank" href="https://github.com/sharmaswati6/designate_files/blob/master/playbooks/roles/os_designate/tasks/designate_db_setup.yml" title="https://github.com/sharmaswati6/designate_files/blob/master/playbooks/roles/os_designate/tasks/designate_db_setup.yml">https://github.com/sharmaswati6/designate_files/blob/master/playbooks/roles/os_designate/tasks/designate_db_setup.yml</a><br><br></span><span><span><font color="#0000cc"><u><b>Point 4 :<br><br></b></u></font></span>I also raised that I am facing an error while running the playbook, for which I have pasted the results at <a target="_blank" href="http://paste.openstack.org/show/482171/" title="http://paste.openstack.org/show/482171/">http://paste.openstack.org/show/482171/</a> . On IRC, Jesse <osyssey4me:> recommended to attach the designate container first and check the internet connection. <br>I did attach the new designate_container and pinged some address for the connectivity check. This works fine here, but I get the same error while running playbook. <br><b>Any other probable cause? </b><br><br>Once this is done, I will checkout the next step suggested by Jesse, i.e. to see the designate service in the Keystone service catalog and  interact with it via the CLI?<br><br>Please share your suggestions.<br><br><font size="2">Thanks & Regards<br> </font><font size="2">Swati Sharma<br> </font><font size="2">System Engineer<br> </font><font size="2">Tata Consultancy Services<br> </font><font size="2">Mailto: sharma.swati6@tcs.com<br> </font><font size="2">Website: <a href="http://www.tcs.com">http://www.tcs.com</a><br> </font><font size="2">____________________________________________<br> </font><font size="2">Experience certainty.       IT Services<br> </font><font size="2">                    Business Solutions<br> </font><font size="2">                    Consulting<br> </font><font size="2">____________________________________________<br> </font></span><br><br><font color="#990099">-----Jesse Pretorius <jesse.pretorius@gmail.com> wrote: -----</font><div class="iNotesHistory" style="padding-left:5px;"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px;">To: "OpenStack Development Mailing List (not for usage questions)" <openstack-dev@lists.openstack.org><br>From: Jesse Pretorius <jesse.pretorius@gmail.com><br>Date: 12/17/2015 04:35PM<br>Cc: pandey.preeti1@tcs.com, Partha Datta <partha.datta@tcs.com><br>Subject: Re: [openstack-dev] Regarding Designate install through      Openstack-Ansible<br><br><div dir="ltr">Hi Swati,<div><br></div><div>It looks like you're doing well so far! In addition to my review feedback via IRC, let me try to answer your questions.<br><div><br></div><div>The directory containing the files which hold the SHA's is here:</div><div><a href="https://github.com/openstack/openstack-ansible/tree/master/playbooks/defaults/repo_packages">https://github.com/openstack/openstack-ansible/tree/master/playbooks/defaults/repo_packages</a></div><div><br></div><div>Considering that Designate is an OpenStack Service, the appropriate entries should be added into this file:</div><div><a href="https://github.com/openstack/openstack-ansible/blob/master/playbooks/defaults/repo_packages/openstack_services.yml">https://github.com/openstack/openstack-ansible/blob/master/playbooks/defaults/repo_packages/openstack_services.yml</a></div><div><br></div><div>The order of the services is generally alphabetic, so Designate should be added after Cinder and before Glance.</div><div><br></div><div>I'm not sure I understand your second question, but let me try and respond with what I think you're asking. Assuming a running system with all the other components, and an available container for Designate, the workflow will be:</div><div><br></div><div>1 - you execute the os-designate-install.yml playbook.</div><div>2 - Ansible executes the pre-tasks, then the role at <a href="https://github.com/sharmaswati6/designate_files/blob/master/playbooks/os-designate-install.yml#L64">https://github.com/sharmaswati6/designate_files/blob/master/playbooks/os-designate-install.yml#L64</a></div><div>3 - Ansible then executes <a href="https://github.com/sharmaswati6/designate_files/blob/master/playbooks/roles/os_designate/tasks/main.yml">https://github.com/sharmaswati6/designate_files/blob/master/playbooks/roles/os_designate/tasks/main.yml</a></div><div>4 - Handlers are triggered when you notify them, for example: <a href="https://github.com/sharmaswati6/designate_files/blob/master/playbooks/roles/os_designate/tasks/designate_post_install.yml#L54">https://github.com/sharmaswati6/designate_files/blob/master/playbooks/roles/os_designate/tasks/designate_post_install.yml#L54</a></div><div><br></div><div>Does that help you understand how the tasks and handlers are included for execution? Does that answer your question?</div><div><br></div><div>With regards to creating a DB user & DB - as you've modeled the role from Aodh, which doesn't use Galera, you're missing that part An example you can model from is here: <a href="https://github.com/openstack/openstack-ansible/blob/master/playbooks/roles/os_glance/tasks/glance_db_setup.yml">https://github.com/openstack/openstack-ansible/blob/master/playbooks/roles/os_glance/tasks/glance_db_setup.yml</a></div><div><br></div><div>Question 4 is a complex one, and I don't know enough about Designate to answer properly. From what I can see you're already doing the following in the role:</div><div><br></div><div>1 - preparing the host/container, RabbitMQ (and soon will be doing the DB) for a Designate deployment</div><div>2 - installing the apt and python packages required for Designate to be able to run</div><div>3 - placing down the config files and upstart scripts for Designate to run</div><div>4 - registering the Designate service endpoint</div><div><br></div><div>Once that's done, I'm not entirely sure what else needs to be done to make Designate do what it needs to do. At that point, are you able to see the service in the Keystone service catalog? Can you interact with it via the CLI?</div><div><div><br></div><div>A few housekeeping items relating to the use of email and the mailing list:</div><div><br></div><div>If you wish to gain the attention of particular communities on the openstack-dev mailing list, the best is to tag the subject line. In this particular case as you're targeting the OpenStack-Ansible community with questions you should add '[openstack-ansible]' as a tag in your subject line. If you were also targeting questions regarding Designate, or wish for the Designate community to also be informed then similarly add '[designate]' as a tag in the subject line.</div><div><br></div><div>Secondly, note that you're addressing a community of people. There's no need to single anyone out and very definitely no need to address or CC our email addresses. We're all members of the openstack-dev mailing list and will all respond to you via the mailing list.</div><div><br></div><div>I'd appreciate it if you could respect these conventions from now on. It'll help improve your experience in the OpenStack community.</div><div><br></div><div>Thanks,</div><div><br></div><div>Jesse</div><div>IRC: odyssey4me<br><div class="gmail_extra"><br><div class="gmail_quote">On 16 December 2015 at 04:46, Sharma Swati6 <span dir="ltr"><<a href="mailto:sharma.swati6@tcs.com" target="_blank">sharma.swati6@tcs.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"> <span><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><span>Hi <b>Major, Jean, Jesse and Kevin,<br></b><br>I have added some part of <b>Designate</b> code and uploaded it on </span></font></span><span><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><span><span><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><span><a href="https://github.com/sharmaswati6/designate_files" title="https://github.com/sharmaswati6/designate_files" target="_blank">https://github.com/sharmaswati6/designate_files</a><br><br></span></font></span>Could you please review this and help me in answering the following questions-<a href="https://github.com/sharmaswati6/designate_files" title="https://github.com/sharmaswati6/designate_files" target="_blank"></a><br></span></font></span><ol><li><span><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><span>Is there some specific location for the server-side code for all Openstack components? And whether I will downloading the actual designate git code to the same location?</span></font></span></li><li><span><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><span>Is there some specific file where I have to give the reference for "tasks:" and "handlers:", so that they can be called via roles.</span></font></span></li><li><span><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><span>To create Designate mysql database, is it reference to be given somewhere?</span></font></span></li><li><span><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><span>How are the hooks(setup details) of a new component associated to it in Openstack-Ansible. <b>Eg</b>- the setup details for Designate <a href="http://git.openstack.org/cgit/openstack/designate/tree/setup.cfg?wb48617274=B56AA8FF" title="http://git.openstack.org/cgit/openstack/designate/tree/setup.cfg?wb48617274=B56AA8FF" target="_blank">http://git.openstack.org/cgit/openstack/designate/tree/setup.cfg?wb48617274=B56AA8FF</a> should map to which file in Openstack-Ansible structure?</span></font></span></li></ol><p><font size="2"><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif">Thanks in advance.</font></font><br></p><span><font size="2"><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif">R</font>egards,<br> </font><font size="2">Swati Sharma<br> </font><font size="2">System Engineer<br> </font><font size="2">Tata Consultancy Services<br> </font><font size="2">Gurgaon - 122 004,Haryana<br> </font><font size="2">India<br> </font><font size="2">Cell:- <a href="tel:%2B91-9717238784" value="+919717238784" target="_blank">+91-9717238784</a><br> </font><font size="2">Mailto: <a href="mailto:sharma.swati6@tcs.com" target="_blank">sharma.swati6@tcs.com</a><br> </font><font size="2">Website: <a href="http://www.tcs.com" target="_blank">http://www.tcs.com</a><br> </font><font size="2">____________________________________________<br> </font><font size="2">Experience certainty.        IT Services<br> </font><font size="2">                        Business Solutions<br> </font><font size="2">                        Consulting<br> </font><font size="2">____________________________________________<br> </font></span><br><br><font color="#990099">-----Sharma Swati6/DEL/TCS wrote: -----</font><div style="padding-left:5px"><div style="padding-right:0px;padding-left:5px;border-left-style:solid;border-left-color:black;border-left-width:2px">To: <a href="mailto:major@mhtx.net" target="_blank">major@mhtx.net</a>, <a href="mailto:jean-philippe@evrard.me" target="_blank">jean-philippe@evrard.me</a>, <a href="mailto:jesse.pretorius@rackspace.co.uk" target="_blank">jesse.pretorius@rackspace.co.uk</a>, <a href="mailto:kevin.carter@rackspace.com" target="_blank">kevin.carter@rackspace.com</a><br>From: Sharma Swati6/DEL/TCS<br>Date: 12/08/2015 01:56PM<br>Cc: <a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>, Partha Datta/DEL/TCS@TCS, <a href="mailto:pandey.preeti1@tcsin.com" target="_blank">pandey.preeti1@tcsin.com</a><br>Subject: Regarding Designate install through Openstack-Ansible<br><br><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"> <span>Hi <b>Major, Jean, Jesse and Kevin,</b><br><br>Hope you are all doing well.<br><br>I have been interacting with you lately on openstack mailing lists and IRC chats regarding <b>Designate component inclusion in Openstack-Ansible</b>, so that its deployment can be made similar to other components.<br><br>As recommended, I have opened a <b>spec</b> also at : <a href="https://review.openstack.org/#/c/254161/" title="https://review.openstack.org/#/c/254161/" target="_blank">https://review.openstack.org/#/c/254161/</a> and uploaded the sample <b>designate.yml</b> file at <a href="https://github.com/prpandey26/Designate/blob/master/designate.yml#L3" title="https://github.com/prpandey26/Designate/blob/master/designate.yml#L3" target="_blank">https://github.com/prpandey26/Designate/blob/master/designate.yml#L3</a>.<br><br>To proceed with the configuration and role setup, I have the following queries-<br></span><ol><li><span>I believe for making the starting the initial setup, only conf.d and env.d needs to be altered. <b>In env.d, I edited the designate.yml file, then in conf.d, what host changes exactly I need to make for designate component?</b></span></li><li><span>Jean suggested that "after making changes in env.d and conf.d, ansible will create the new entries for your component". <b>Do I have to run anything for this? At what location will the new entries be created? Is it with respect to the roles for designate automatically created?</b></span></li><li>As a next step, I am planning to add role directories for designate component <b>'os-designate-yml' file in '/opt/openstack-ansible/playbooks'</b> and a seperate roles directory for <b>'os-designate' at '/opt/openstack-ansible/playbooks/roles'.</b> <b>Can you please let me know if this has to be created by us or env.d and conf.d will directly created it?</b><br></li></ol><p>I have not seen any document yet for the extra-containers to be added to openstack-ansible, however I checked only specs have been created for ironic, trove, etc. <br></p><p>Hence, any help from you regarding the steps in sequence will be highly appreciated.<br></p><span><br><br><font size="2">Thanks & Regards<br> </font><font size="2">Swati Sharma<br> </font><font size="2">System Engineer<br> </font><font size="2">Tata Consultancy Services<br> </font><font size="2">Mailto: <a href="mailto:sharma.swati6@tcs.com" target="_blank">sharma.swati6@tcs.com</a><br> </font><font size="2">Website: <a href="http://www.tcs.com" target="_blank">http://www.tcs.com</a><br> </font><font size="2">____________________________________________<br> </font><font size="2">Experience certainty.        IT Services<br> </font><font size="2">                        Business Solutions<br> </font><font size="2">                        Consulting<br> </font><font size="2">____________________________________________<br> </font></span><br><br><font color="#990099">-----Major Hayden <<a href="mailto:major@mhtx.net" target="_blank">major@mhtx.net</a>> wrote: -----</font><div style="padding-left:5px"><div style="padding-right:0px;padding-left:5px;border-left-style:solid;border-left-color:black;border-left-width:2px">To: "OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>><br>From: Major Hayden <<a href="mailto:major@mhtx.net" target="_blank">major@mhtx.net</a>><br>Date: 12/04/2015 06:53PM<br>Subject: Re: [openstack-dev] [openstack-ansible] Install Openstack-Ansible<br><br><div><font face="Courier New,Courier,monospace" size="2">On Fri, 2015-12-04 at 10:01 +0530, Sharma Swati6 wrote:<br>> To add a new container, we have followed the steps as mentioned in<br>> the extra_container.yml.example. Please find the sample designate.yml<br>> file attached and created as per the steps.<br><br>That's a good start.  However, you'll need to sign up[1] to be an<br>OpenStack developer (agreeing to some contracts and things so you can<br>commit this into the upstream repositories.<br><br>Once you do that, you'll want to assemble a spec for the changes you<br>want to make.  A spec defines what you hope to accomplish and gives<br>everyone on the project a chance to review the steps you're planning to<br>take.  You can look at a spec I wrote[2] for ideas and then use the<br>openstack-ansible-specs template[3] to begin working on your spec.<br><br>A spec isn't busywork -- it shows the intention of what you're trying<br>to do and allows other people on the project to point out areas of<br>concern and improvement.<br><br>> To add the new roles in openstack-ansible repository, shall I create<br>> the directory looking at what is there for keystone or other<br>> components and make the configuration changes only, or can I clone it<br>> from somewhere also?<br><br>There is a push lately to use independent role repositories, but I'm<br>not sure if that's a hard requirement at the moment.  Jesse Pretorius<br>or Kevin Carter may be better people to talk about that in this thread.<br><br>Details on independent role repositories are in a spec[4] as well.<br><br>> Thereafter, as suggested by you, I have to test this new container<br>> with the existing ones.<br>> <br>> I believe there is no such link available with such steps and 'how<br>> to' part for openstack-ansible. Please let me know if you/anyone else<br>> have already done this part to add a new component container<br>> similarly.<br><br>We can help you with this in IRC once you've completed the other steps<br>I've listed above.  Join us on Freenode in #openstack-ansible and we<br>will be happy to help you along the way!<br><br>[1] <a href="http://docs.openstack.org/infra/manual/developers.html" target="_blank">http://docs.openstack.org/infra/manual/developers.html</a><br>[2] <a href="http://specs.openstack.org/openstack/openstack-ansible-specs/specs/mitaka/security-hardening.html" target="_blank">http://specs.openstack.org/openstack/openstack-ansible-specs/specs/mitaka/security-hardening.html</a><br>[3] <a href="https://github.com/openstack/openstack-ansible-specs/blob/master/specs/template.rst" target="_blank">https://github.com/openstack/openstack-ansible-specs/blob/master/specs/template.rst</a><br>[4] <a href="http://specs.openstack.org/openstack/openstack-ansible-specs/specs/mitaka/independent-role-repositories.html" target="_blank">http://specs.openstack.org/openstack/openstack-ansible-specs/specs/mitaka/independent-role-repositories.html</a><br><br>-- <br>Major Hayden<br><br><br><br>__________________________________________________________________________<br>OpenStack Development Mailing List (not for usage questions)<br>Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br></font></div></div></div><div></div></font> </div></div><div></div></font><p>=====-----=====-----=====<br> Notice: The information contained in this e-mail<br> message and/or attachments to it may contain <br> confidential or privileged information. If you are <br> not the intended recipient, any dissemination, use, <br> review, distribution, printing or copying of the <br> information contained in this e-mail message <br> and/or attachments to it are strictly prohibited. If <br> you have received this communication in error, <br> please notify us by reply e-mail or telephone and <br> immediately and permanently delete the message <br> and any attachments. Thank you</p> <p></p><br>__________________________________________________________________________<br> OpenStack Development Mailing List (not for usage questions)<br> Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br> <br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Jesse Pretorius<br>mobile: +44 7586 906045<br>email: <a href="mailto:jesse.pretorius@gmail.com" target="_blank">jesse.pretorius@gmail.com</a><br>skype: jesse.pretorius</div></div></div> </div></div></div></div></div> <div><font face="Courier New,Courier,monospace" size="2">__________________________________________________________________________<br>OpenStack Development Mailing List (not for usage questions)<br>Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br></font></div></div></div><div></div></font> </div></div><div></div></font>