Re: DNS Config Tool with Mulitple Address Maps

Dmitry Kurochkin <dmitry.kurochkin-LbpN3Auhdh+Rtz+nHKFJDvXmoG9oyoYx@public.gmane.org> Wed, 16 Mar 2011 00:21:04 +0300
Newsgroups gmane.comp.web.web-polygraph.user
Message-ID <[email protected]>
Hi Michael.

On Tue, 15 Mar 2011 16:40:32 +1030, Michael Hendrie <pmix-HaiLnJIfpmJWo+R/V/U2/[email protected]> wrote:
> Hello List,
> 
> I am attempting to use a single configuration file to run a Polygraph workload that contains both normal HTTP and SSL robots/servers.  This appears to be working well, when I start the server process I see it creates the HTTP Server agents listening on port 80 and the SSL server agents listening on port 443.  I have started the client process and this loads the configuration file without complaining about errors.
> 
> The issue is generating the DNS configuration file for BIND.  When I run the polygraph-dns-cfg tool it errors out complaining about multiple address maps being used.  My understanding from http://www.web-polygraph.org/docs/reference/pgl/types.html#type:docs/reference/pgl/types/AddrMap is that multiple address maps should be able to be used.
> 
> The errors is:
> 
> bash-3.2# /usr/local/bin/polygraph-dns-cfg --config ../mymixed.pg 
> ../mymixed.pg: must use() exactly one address map, but 2 maps were used
> 

Currently, this is a limitation of dns-cfg tool. Polygraph client
supports multiple address maps but the DNS configuration tool does not.

As a workaround, you may use dns-cfg multiple times use()ing different
address maps in PGL workload and merge output by hand. Note: Only BIND
configuration (i.e. dns-cfg console output) needs merging, individual
zone files (e.g. tst and tst.rev) do not need any changes.

Added to FAQ on Launchpad [1].

Regards,
  Dmitry

[1] https://answers.launchpad.net/polygraph/+faq/1512

> 
> I have tested with both web-polygraph 4.0.10 and 4.3.1 but both produce the same error.
> 
> The relevant part of the workload file is:
> 
> AddrMap SslMap = {
> 	zone = "sslbench.tst";
> 	addresses = srvSsl.addresses;
> 	names = ipsToNames(addresses, zone);
> };
> 
> AddrMap HttpMap = {
>         zone = "httpbench.tst";
>         addresses = srvHttp.addresses;
>         names = ipsToNames(addresses, zone);
> };
> 
> ...
> ...<config removed>
> ...
> use(SslMap, HttpMap);
> 
> Does anyone know how to overcome this issue and generate a useful bind file with the tool when multiple address maps are used.
> 
> Thanks
> 
> Mick
> 
> _______________________________________________
> Users mailing list
> Users-mN9fGWdlm5pku/f+YMZH/di2O/[email protected]
> http://www.web-polygraph.org/mailman/listinfo/users
_______________________________________________
Users mailing list
Users-mN9fGWdlm5pku/f+YMZH/di2O/[email protected]
http://www.web-polygraph.org/mailman/listinfo/users