Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] Can't find MA for host using dynamic mesh

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] Can't find MA for host using dynamic mesh


Chronological Thread 
  • From: "Andrew Lake" <>
  • To: "Remsik,Robert" <>
  • Cc:
  • Subject: Re: [perfsonar-user] Can't find MA for host using dynamic mesh
  • Date: Fri, 23 Oct 2015 13:04:04 -0700 (PDT)

Hi Robert,

It looks like it’s complaining because the hosts at https://perfsonar1.research-lan.colostate.edu/auto.json don't have measurement_archives for the owamp or ping types. As a result when you try to define a ping or owamp mesh, it complains about not being able to find an MA. 

For the OWAMP MA, I actually ran the lookup_hosts scripts locally using your exact lookup_hosts.conf, and it set the OWAMP MAs properly. Maybe you just need to run it again to get those?

For the ping tests you need to add “type pinger” to the <measurement_archive> blocks of one of the <query> blocks. Attached is the lookup_hosts.conf I used and corresponding auto.json that got generated. Let me know if you get different results. 

Hope that helps,
Andy


 




On Fri, Oct 23, 2015 at 3:24 PM, Remsik,Robert <> wrote:

My statically defined json(in case we need a reference):

http://perfsonar1.research-lan.colostate.edu/research.json


Dynamically created Json:

http://perfsonar1.research-lan.colostate.edu/dyn.json


json for the hosts:

https://perfsonar1.research-lan.colostate.edu/auto.json


No problem!


Robert Remsik

ACNS

Cell: 970 213 7219




From: Andrew Lake <>
Sent: Friday, October 23, 2015 12:59 PM
To: Remsik,Robert
Cc:
Subject: Re: [perfsonar-user] Can't find MA for host using dynamic mesh
 
Hi Robert,

Could you send me a link to the generated JSON (or attach it into a file if its firewalled off)? It looks like in theory it should be able to find an MA as you said.

Thanks,
Andy









On Fri, Oct 23, 2015 at 1:32 PM, Remsik,Robert <> wrote:

Hello!


I'm trying to use a dynamic mesh to run tests on and update maddash to display with no luck so far.  Any help is appreciated.


I'm getting the below error when I try to run ( /opt/perfsonar_ps/mesh_config/bin/generate_gui_configuration ) to update maddash.  When I run generate_configuration I don't notice the tests being created.  My hunch is it's the lookup_hosts file not providing the correct measurement archive, but I think I've asked all the hosts to point to perfsonar1-research-lan.colostate.edu instead of using their local MAs(which would be cool to do as well).


perfsonar1.research-lan.colostate.edu/dyn.json - dynamic tests

perfsonar1.research-lan.colostate.edu/auto.json - list of hosts


2015/10/23 11:25:52 (8008) ERROR> GUIAgent.pm:285 perfSONAR_PS::MeshConfig::GUIAgent::__generate_maddash_config - Problem generating maddash configuration: Couldn't find ma for host: perfSONAR_PS::MeshConfig::Config::Address=HASH(0xa951770) at /opt/perfsonar_ps/mesh_config/bin/../lib/perfSONAR_PS/MeshConfig/Generators/MaDDash.pm line 291.
2015/10/23 11:25:52 (8008) ERROR> GUIAgent.pm:231 perfSONAR_PS::MeshConfig::GUIAgent::__configure_guis - Problem generating maddash configuration: Problem generating maddash configuration: Couldn't find ma for host: perfSONAR_PS::MeshConfig::Config::Address=HASH(0xa951770) at /opt/perfsonar_ps/mesh_config/bin/../lib/perfSONAR_PS/MeshConfig/Generators/MaDDash.pm line 291.


lookup_hosts.conf file:


ls_instance http://ps-west.es.net:8090/lookup/records
ls_instance http://ps-east.es.net:8090/lookup/records

<query>
    service_type bwctl

    <filter>
        filter_key group-communities
        filter_value frgp
    </filter>
    <output_settings>
        organization_name FRGP
        <measurement_archive>
            type perfsonarbuoy/bwctl
            type traceroute
            read_url http://perfsonar1.research-lan.colostate.edu/esmond/perfsonar/archive
            write_url http://perfsonar1.research-lan.colostate.edu/esmond/perfsonar/archive
        </measurement_archive>
        organization_tag frgp
        site_tag bwctl_site
        host_tag linux
        host_tag throughput_host
        address_tag bwctl
    </output_settings>
</query>



<query>
    service_type owamp
    <filter>
        filter_key group-communities
        filter_value frgp
    </filter>
    <output_settings>
        organization_name FRGP
        <measurement_archive>
            type perfsonarbuoy/owamp
            type traceroute
            read_url http://perfsonar1.research-lan.colostate.edu/esmond/perfsonar/archive
            write_url http://perfsonar1.research-lan.colostate.edu/esmond/perfsonar/archive
        </measurement_archive>
        address_tag owamp
        site_tag owamp_site
        host_tag linux
        host_tag latency_host
        organization_tag frgp
    </output_settings>
</query>


Batch file I'm using to update all the configs and restart services for testing:
#!/bin/bash
cd /opt/perfsonar_ps/mesh_config/doc

#/opt/perfsonar_ps/mesh_config/bin/lookup_hosts --input /opt/perfsonar_ps/mesh_config/etc/lookup_hosts.conf --output /var/www/html/dynamic_host_list.json

echo "Generating .json configs"
echo "Generating research.json"
/opt/perfsonar_ps/mesh_config/bin/build_json -o /var/www/html/research.json research.conf


echo "Generating auto.json"
/opt/perfsonar_ps/mesh_config/bin/lookup_hosts --input /opt/perfsonar_ps/mesh_config/etc/lookup_hosts.conf --output /var/www/html/auto.json
echo "Generating dyn.json"
/opt/perfsonar_ps/mesh_config/bin/build_json -o /var/www/html/dyn.json dyn.conf


echo "Generating .yaml config"
echo "Agent Configuration"
/opt/perfsonar_ps/mesh_config/bin/generate_configuration
echo "GUIConfiguration"
/opt/perfsonar_ps/mesh_config/bin/generate_gui_configuration

echo "Restarting Services"
service maddash-server restart
~                                                                                                                                                                                                                                            
~                                                                                                                                                                                                                                            
~                                                                                                                                                                                                                                            
~                                             



Robert Remsik

ACNS

Cell: 970 213 7219



ls_instance http://ps-west.es.net:8090/lookup/records
ls_instance http://ps-east.es.net:8090/lookup/records

<query>
service_type bwctl
<filter>
filter_key group-communities
filter_value frgp
</filter>
<output_settings>
organization_name FRGP
<measurement_archive>
type perfsonarbuoy/bwctl
type traceroute
read_url
http://perfsonar1.research-lan.colostate.edu/esmond/perfsonar/archive
write_url
http://perfsonar1.research-lan.colostate.edu/esmond/perfsonar/archive
</measurement_archive>
organization_tag frgp
site_tag bwctl_site
host_tag linux
host_tag throughput_host
address_tag bwctl
</output_settings>
</query>




<query>
service_type owamp
<filter>
filter_key group-communities
filter_value frgp
</filter>
<output_settings>
organization_name FRGP
<measurement_archive>
type perfsonarbuoy/owamp
type traceroute
type pinger
read_url
http://perfsonar1.research-lan.colostate.edu/esmond/perfsonar/archive
write_url
http://perfsonar1.research-lan.colostate.edu/esmond/perfsonar/archive
</measurement_archive>
address_tag owamp
site_tag owamp_site
host_tag linux
host_tag latency_host
organization_tag frgp
</output_settings>
</query>

Attachment: auto.json
Description: application/json




Archive powered by MHonArc 2.6.16.

Top of Page