Re: [openstack-dev] Regarding Designate install through Openstack-Ansible

2015-12-17 Thread Jesse Pretorius
Hi Swati,

It looks like you're doing well so far! In addition to my review feedback
via IRC, let me try to answer your questions.

The directory containing the files which hold the SHA's is here:
https://github.com/openstack/openstack-ansible/tree/master/playbooks/defaults/repo_packages

Considering that Designate is an OpenStack Service, the appropriate entries
should be added into this file:
https://github.com/openstack/openstack-ansible/blob/master/playbooks/defaults/repo_packages/openstack_services.yml

The order of the services is generally alphabetic, so Designate should be
added after Cinder and before Glance.

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:

1 - you execute the os-designate-install.yml playbook.
2 - Ansible executes the pre-tasks, then the role at
https://github.com/sharmaswati6/designate_files/blob/master/playbooks/os-designate-install.yml#L64
3 - Ansible then executes
https://github.com/sharmaswati6/designate_files/blob/master/playbooks/roles/os_designate/tasks/main.yml
4 - Handlers are triggered when you notify them, for example:
https://github.com/sharmaswati6/designate_files/blob/master/playbooks/roles/os_designate/tasks/designate_post_install.yml#L54

Does that help you understand how the tasks and handlers are included for
execution? Does that answer your question?

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:
https://github.com/openstack/openstack-ansible/blob/master/playbooks/roles/os_glance/tasks/glance_db_setup.yml

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:

1 - preparing the host/container, RabbitMQ (and soon will be doing the DB)
for a Designate deployment
2 - installing the apt and python packages required for Designate to be
able to run
3 - placing down the config files and upstart scripts for Designate to run
4 - registering the Designate service endpoint

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?

A few housekeeping items relating to the use of email and the mailing list:

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.

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.

I'd appreciate it if you could respect these conventions from now on. It'll
help improve your experience in the OpenStack community.

Thanks,

Jesse
IRC: odyssey4me

On 16 December 2015 at 04:46, Sharma Swati6  wrote:

> Hi
> *Major, Jean, Jesse and Kevin,*
> I have added some part of *Designate* code and uploaded it on
> https://github.com/sharmaswati6/designate_files
>
> Could you please review this and help me in answering the following
> questions- 
>
>1. 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?
>2. Is there some specific file where I have to give the reference for
>"tasks:" and "handlers:", so that they can be called via roles.
>3. To create Designate mysql database, is it reference to be given
>somewhere?
>4. How are the hooks(setup details) of a new component associated to
>it in Openstack-Ansible. *Eg*- the setup details for Designate
>
> http://git.openstack.org/cgit/openstack/designate/tree/setup.cfg?wb48617274=B56AA8FF
>should map to which file in Openstack-Ansible structure?
>
> Thanks in advance.
> Regards,
> Swati Sharma
> System Engineer
> Tata Consultancy Services
> Gurgaon - 122 004,Haryana
> India
> Cell:- +91-9717238784
> Mailto: sharma.swa...@tcs.com
> Website: http://www.tcs.com
> 
> Experience certainty. IT Services
> Business Solutions
> Consulting
> 
>
>
> -Sharma Swati6/DEL/TCS wrote: -
> To: ma...@mhtx.net, 

Re: [openstack-dev] Regarding Designate install through Openstack-Ansible

2015-12-15 Thread Sharma Swati6
 Hi Major, Jean, Jesse and Kevin,

I have added some part of Designate code and uploaded it on 
https://github.com/sharmaswati6/designate_files

Could you please review this and help me in answering the following questions-
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?
Is there some specific file 
where I have to give the reference for "tasks:" and "handlers:", so that they 
can be called via roles.To create Designate mys
ql database, is it reference to be given somewhere?How are the hooks(setup 
details) of a new comp
onent associated to it in Openstack-Ansible. Eg- the setup details for 
Designate 
http://git.openstack.org/cgit/openstack/designate/tree/setup.cfg?wb48617274=B56AA8FF
 should map to which file in Openstack-Ansible structure?Thanks in advance.
Regards,
 Swati Sharma
 System Engineer
 Tata Consultancy Services
 Gurgaon - 122 004,Haryana
 India
 Cell:- +91-9717238784
 Mailto: sharma.swa...@tcs.com
 Website: http://www.tcs.com
 
 Experience certainty.  IT Services
Business Solutions
Consulting
 
 

-Sharma Swati6/DEL/TCS wrote: -
To: ma...@mhtx.net, jean-phili...@evrard.me, jesse.pretor...@rackspace.co.uk, 
kevin.car...@rackspace.com
From: Sharma Swati6/DEL/TCS
Date: 12/08/2015 01:56PM
Cc: openstack-dev@lists.openstack.org, Partha Datta/DEL/TCS@TCS, 
pandey.pree...@tcsin.com
Subject: Regarding Designate install through Openstack-Ansible

 Hi Major, Jean, Jesse and Kevin,

Hope you are all doing well.

I have been interacting with you lately on openstack mailing lists and IRC 
chats regarding Designate component inclusion in Openstack-Ansible, so that its 
deployment can be made similar to other components.

As recommended, I have opened a spec also at : 
https://review.openstack.org/#/c/254161/ and uploaded the sample designate.yml 
file at https://github.com/prpandey26/Designate/blob/master/designate.yml#L3.

To proceed with the configuration and role setup, I have the following queries-
I believe for making the starting the initial setup, only conf.d and env.d 
needs to be altered. 
In env.d, I edited the designate.yml file, then in conf.d, what host changes 
exactly I need to make for designate component?Jean suggested that "after 
making changes in env.d and conf.d, ansible will create the new entries for 
your component". 
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?As 
a next step, I am planning to add role directories for designate component 
'os-designate-yml' file in '/opt/openstack-ansible/playbooks' and a seperate 
roles directory for 'os-designate' at '/opt/openstack-ansible/playbooks/roles'. 
Can you please let me know if this has to be created by us or env.d and conf.d 
will directly created it?
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. 

Hence, any help from you regarding the steps in sequence will be highly 
appreciated.


Thanks & Regards
 Swati Sharma
 System Engineer
 Tata Consultancy Services
 Mailto: sharma.swa...@tcs.com
 Website: http://www.tcs.com
 
 Experience certainty.  IT Services
Business Solutions
Consulting
 
 

-Major Hayden  wrote: -
To: "OpenStack Development Mailing List (not for usage questions)" 

From: Major Hayden 
Date: 12/04/2015 06:53PM
Subject: Re: [openstack-dev] [openstack-ansible] Install Openstack-Ansible

On Fri, 2015-12-04 at 10:01 +0530, Sharma Swati6 wrote:
> To add a new container, we have followed the steps as mentioned in
> the extra_container.yml.example. Please find the sample designate.yml
> file attached and created as per the steps.

That's a good start.  However, you'll need to sign up[1] to be an
OpenStack developer (agreeing to some contracts and things so you can
commit this into the upstream repositories.

Once you do that, you'll want to assemble a spec for the changes you
want to make.  A spec defines what you hope to accomplish and gives
everyone on the project a chance to review the steps you're planning to
take.  You can look at a spec I wrote[2] for ideas and then use the
openstack-ansible-specs template[3] to begin working on your spec.

A spec isn't busywork -- it shows the intention of what you're trying
to do and allows other people on the project to point out areas of
concern and improvement.

> To add the new roles in openstack-ansible repository, shall I create
> the directory looking at what is there for keystone or 

[openstack-dev] Regarding Designate install through Openstack-Ansible

2015-12-08 Thread Sharma Swati6
 Hi Major, Jean, Jesse and Kevin,

Hope you are all doing well.

I have been interacting with you lately on openstack mailing lists and IRC 
chats regarding Designate component inclusion in Openstack-Ansible, so that its 
deployment can be made similar to other components.

As recommended, I have opened a spec also at : 
https://review.openstack.org/#/c/254161/ and uploaded the sample designate.yml 
file at https://github.com/prpandey26/Designate/blob/master/designate.yml#L3.

To proceed with the configuration and role setup, I have the following queries-
I believe for making the starting the initial setup, only conf.d and env.d 
needs to be altered. 
In env.d, I edited the designate.yml file, then in conf.d, what host changes 
exactly I need to make for designate component?Jean suggested that "after 
making changes in env.d and conf.d, ansible will create the new entries for 
your component". 
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?As 
a next step, I am planning to add role directories for de
signate component 'os-designate-yml' file in '/opt/openstack-ansible/playbooks' 
and a seperate roles directory for 'os-designate' at 
'/opt/openstack-ansible/playbooks/roles'. Can you please let me know if this 
has to be created by us or env.d and conf.d will directly created it?
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. 

Hence, any help from you regarding the steps in sequence will be highly 
appreciated.


Thanks & Regards
 Swati Sharma
 System Engineer
 Tata Consultancy Services
 Mailto: sharma.swa...@tcs.com
 Website: http://www.tcs.com
 
 Experience certainty.  IT Services
Business Solutions
Consulting
 
 

-Major Hayden  wrote: -
To: "OpenStack Development Mailing List (not for usage questions)" 

From: Major Hayden 
Date: 12/04/2015 06:53PM
Subject: Re: [openstack-dev] [openstack-ansible] Install Openstack-Ansible

On Fri, 2015-12-04 at 10:01 +0530, Sharma Swati6 wrote:
> To add a new container, we have followed the steps as mentioned in
> the extra_container.yml.example. Please find the sample designate.yml
> file attached and created as per the steps.

That's a good start.  However, you'll need to sign up[1] to be an
OpenStack developer (agreeing to some contracts and things so you can
commit this into the upstream repositories.

Once you do that, you'll want to assemble a spec for the changes you
want to make.  A spec defines what you hope to accomplish and gives
everyone on the project a chance to review the steps you're planning to
take.  You can look at a spec I wrote[2] for ideas and then use the
openstack-ansible-specs template[3] to begin working on your spec.

A spec isn't busywork -- it shows the intention of what you're trying
to do and allows other people on the project to point out areas of
concern and improvement.

> To add the new roles in openstack-ansible repository, shall I create
> the directory looking at what is there for keystone or other
> components and make the configuration changes only, or can I clone it
> from somewhere also?

There is a push lately to use independent role repositories, but I'm
not sure if that's a hard requirement at the moment.  Jesse Pretorius
or Kevin Carter may be better people to talk about that in this thread.

Details on independent role repositories are in a spec[4] as well.

> Thereafter, as suggested by you, I have to test this new container
> with the existing ones.
> 
> I believe there is no such link available with such steps and 'how
> to' part for openstack-ansible. Please let me know if you/anyone else
> have already done this part to add a new component container
> similarly.

We can help you with this in IRC once you've completed the other steps
I've listed above.  Join us on Freenode in #openstack-ansible and we
will be happy to help you along the way!

[1] http://docs.openstack.org/infra/manual/developers.html
[2] 
http://specs.openstack.org/openstack/openstack-ansible-specs/specs/mitaka/security-hardening.html
[3] 
https://github.com/openstack/openstack-ansible-specs/blob/master/specs/template.rst
[4] 
http://specs.openstack.org/openstack/openstack-ansible-specs/specs/mitaka/independent-role-repositories.html

-- 
Major Hayden



__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
=-=-=
Notice: The information contained in this e-mail
message and/or 

Re: [openstack-dev] Regarding Designate install through Openstack-Ansible

2015-12-08 Thread Jesse Pretorius
On 8 December 2015 at 08:26, Sharma Swati6  wrote:

> Hi *Major, Jean, Jesse and Kevin,*


Howdy!


> I have been interacting with you lately on openstack mailing lists and IRC
> chats regarding *Designate component inclusion in Openstack-Ansible*, so
> that its deployment can be made similar to other components.
>
> As recommended, I have opened a *spec* also at :
> https://review.openstack.org/#/c/254161/ and uploaded the sample
> *designate.yml* file at
> https://github.com/prpandey26/Designate/blob/master/designate.yml#L3.
>

This is just the beginning, but thank you for getting started!


> To proceed with the configuration and role setup, I have the following
> queries-
>
>1. I believe for making the starting the initial setup, only conf.d
>and env.d needs to be altered. *In env.d, I edited the designate.yml
>file, then in conf.d, what host changes exactly I need to make for
>designate component?*
>
>
>1. Jean suggested that "after making changes in env.d and conf.d,
>ansible will create the new entries for your component". *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?*
>2. As a next step, I am planning to add role directories for designate
>component *'os-designate-yml' file in
>'/opt/openstack-ansible/playbooks'* and a seperate roles directory for 
> *'os-designate'
>at '/opt/openstack-ansible/playbooks/roles'.* *Can you please let me
>know if this has to be created by us or env.d and conf.d will directly
>created it?*
>
> 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.
>

It seems that you've misunderstood, so let me try and make this clear.

No code will be created for you. The creation of the role to deploy and
configure Designate will need to be created and developed by you. The
playbook to execute the role will need to be created and developed by you.
The environment group/container spec (env.d) and the assignment of a host
to the group (conf.d) will need to be done by you.
The only thing that will be done automatically is the creation of the
container with a base OS - and this will be based on your env.d/conf.d
files.

We've been discussing these details with you today on IRC [1] and I hope
that all your questions, for now, have been adequately answered. If not,
please feel free to ask more!

[1]
http://eavesdrop.openstack.org/irclogs/%23openstack-ansible/%23openstack-ansible.2015-12-08.log.html
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev