Re: CloudStack-BIND dns integration

2014-04-17 Thread Ihor Kravchuk
Lucian,

You are completely right.
I found events messaging system description right after I finished the
script. I will use it in next version.

Igor


On Wed, Apr 16, 2014 at 2:42 PM, Nux!  wrote:

> On 16.04.2014 17:05, Ihor Kravchuk wrote:
>
>> Hi ,
>>
>> I made a small python program that  solves DNS integration issues between
>> CloudStack VR's DNS service and BIND DNS.
>> This program assumes that you are using one sub-domain per network(each
>> network has own sub-domain) (IMHO the best way fro naming instances in
>> CloudStack)
>> How it works:
>> This program runs on CloudStack management server and listen for the new
>> vm
>> deployment using CloudStack catalina.out log.
>> On event (new host deployed) program calls CloudStack API and gets list of
>> Networks and list of VM. Using theses lists and preconfigured domain
>> settings it creates the zone file for BIND, push it to server and refresh
>> BIND
>> The source code for the event driven version on GitHub:
>>  https://github.com/IhorKravchuk/cloudstack_ingvar/
>> All parameters load from dns_builder.conf file and local and remote (from
>> CloudStack mgmt server prospective) BIND DNS servers supported.
>> Igor
>>
>
> Pretty neat, but have you looked at this?
> https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/
> 4.1.0/html/Admin_Guide/events.html
>
> It sounds like you are not using that facility which to me (non-dev) seems
> more elegant.
>
> Lucian
>
> --
> Sent from the Delta quadrant using Borg technology!
>
> Nux!
> www.nux.ro
>


Re: CloudStack-BIND dns integration

2014-04-16 Thread Nux!

On 16.04.2014 17:05, Ihor Kravchuk wrote:

Hi ,

I made a small python program that  solves DNS integration issues 
between

CloudStack VR's DNS service and BIND DNS.
This program assumes that you are using one sub-domain per 
network(each

network has own sub-domain) (IMHO the best way fro naming instances in
CloudStack)
How it works:
This program runs on CloudStack management server and listen for the 
new vm

deployment using CloudStack catalina.out log.
On event (new host deployed) program calls CloudStack API and gets 
list of

Networks and list of VM. Using theses lists and preconfigured domain
settings it creates the zone file for BIND, push it to server and 
refresh

BIND
The source code for the event driven version on GitHub:
 https://github.com/IhorKravchuk/cloudstack_ingvar/
All parameters load from dns_builder.conf file and local and remote 
(from

CloudStack mgmt server prospective) BIND DNS servers supported.
Igor


Pretty neat, but have you looked at this?
https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html/Admin_Guide/events.html

It sounds like you are not using that facility which to me (non-dev) 
seems more elegant.


Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


Re: CloudStack-BIND dns integration

2014-04-16 Thread Francois Gaudreault

Well done Ihor :)

FG

On 2014-04-16, 2:25 PM, ilya musayev wrote:

This is pretty cool.

I’ll give it a try soon, thanks for contributing, I forked your repo on
github.

-ilya

On Wednesday, April 16, 2014, Ihor Kravchuk  wrote:

Hi ,

I made a small python program that  solves DNS integration issues between
CloudStack VR's DNS service and BIND DNS.
This program assumes that you are using one sub-domain per network(each
network has own sub-domain) (IMHO the best way fro naming instances in
CloudStack)
How it works:
This program runs on CloudStack management server and listen for the new

vm

deployment using CloudStack catalina.out log.
On event (new host deployed) program calls CloudStack API and gets list of
Networks and list of VM. Using theses lists and preconfigured domain
settings it creates the zone file for BIND, push it to server and refresh
BIND
The source code for the event driven version on GitHub:
  https://github.com/IhorKravchuk/cloudstack_ingvar/
All parameters load from dns_builder.conf file and local and remote (from
CloudStack mgmt server prospective) BIND DNS servers supported.
Igor




--
Francois Gaudreault
Architecte de Solution Cloud | Cloud Solutions Architect
fgaudrea...@cloudops.com
514-629-6775
- - -
CloudOps
420 rue Guy
Montréal QC  H3J 1S6
www.cloudops.com
@CloudOps_



Re: CloudStack-BIND dns integration

2014-04-16 Thread ilya musayev
This is pretty cool.

I’ll give it a try soon, thanks for contributing, I forked your repo on
github.

-ilya

On Wednesday, April 16, 2014, Ihor Kravchuk  wrote:
> Hi ,
>
> I made a small python program that  solves DNS integration issues between
> CloudStack VR's DNS service and BIND DNS.
> This program assumes that you are using one sub-domain per network(each
> network has own sub-domain) (IMHO the best way fro naming instances in
> CloudStack)
> How it works:
> This program runs on CloudStack management server and listen for the new
vm
> deployment using CloudStack catalina.out log.
> On event (new host deployed) program calls CloudStack API and gets list of
> Networks and list of VM. Using theses lists and preconfigured domain
> settings it creates the zone file for BIND, push it to server and refresh
> BIND
> The source code for the event driven version on GitHub:
>  https://github.com/IhorKravchuk/cloudstack_ingvar/
> All parameters load from dns_builder.conf file and local and remote (from
> CloudStack mgmt server prospective) BIND DNS servers supported.
> Igor
>


CloudStack-BIND dns integration

2014-04-16 Thread Ihor Kravchuk
Hi ,

I made a small python program that  solves DNS integration issues between
CloudStack VR's DNS service and BIND DNS.
This program assumes that you are using one sub-domain per network(each
network has own sub-domain) (IMHO the best way fro naming instances in
CloudStack)
How it works:
This program runs on CloudStack management server and listen for the new vm
deployment using CloudStack catalina.out log.
On event (new host deployed) program calls CloudStack API and gets list of
Networks and list of VM. Using theses lists and preconfigured domain
settings it creates the zone file for BIND, push it to server and refresh
BIND
The source code for the event driven version on GitHub:
 https://github.com/IhorKravchuk/cloudstack_ingvar/
All parameters load from dns_builder.conf file and local and remote (from
CloudStack mgmt server prospective) BIND DNS servers supported.
Igor